Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.Distance2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadModel(ModelicaTest): time 1.893/1.893, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.806e-05/2.822e-05, allocations: 7.938 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08525/0.08531, allocations: 48.69 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3601/0.4455, allocations: 91.55 MB / 418.1 MB, free: 364 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002283/0.4458, allocations: 74.44 kB / 418.1 MB, free: 328 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.312/0.7578, allocations: 78.9 MB / 497 MB, free: 8.27 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.276e-06/0.7578, allocations: 0 / 497 MB, free: 8.27 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002051/0.758, allocations: 72 kB / 497.1 MB, free: 8.199 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1363 * Number of variables: 1363 Notification: Performance of Generate backend data structure: time 0.01164/0.7697, allocations: 3.527 MB / 0.4889 GB, free: 4.613 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/0.7698, allocations: 12.03 kB / 0.4889 GB, free: 4.602 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02399/0.7938, allocations: 4.324 MB / 0.4931 GB, free: 272 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01484/0.8087, allocations: 4.361 MB / 0.4974 GB, free: 11.84 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000432/0.8091, allocations: 279.3 kB / 0.4977 GB, free: 11.57 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001814/0.811, allocations: 371.8 kB / 0.498 GB, free: 11.2 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02232/0.8333, allocations: 9.023 MB / 0.5068 GB, free: 1.195 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002011/0.8336, allocations: 51.56 kB / 0.5069 GB, free: 1.145 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001155/0.8347, allocations: 179.9 kB / 0.5071 GB, free: 0.9688 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001767/0.8365, allocations: 0.8962 MB / 0.5079 GB, free: 76 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01852/0.8551, allocations: 7.257 MB / 0.515 GB, free: 8.805 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2895/1.145, allocations: 42.64 MB / 0.5567 GB, free: 65.73 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006327/1.151, allocations: 2.496 MB / 0.5591 GB, free: 65.07 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001948/1.153, allocations: 1.06 MB / 0.5601 GB, free: 65.04 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004448/1.154, allocations: 329.9 kB / 0.5604 GB, free: 64.75 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.443e-05/1.154, allocations: 47.08 kB / 0.5605 GB, free: 64.71 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 5.557e-06/1.154, allocations: 1.25 kB / 0.5605 GB, free: 64.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=133): time 0.02504/1.179, allocations: 7.476 MB / 0.5678 GB, free: 62.34 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.432e-05/1.179, allocations: 196.4 kB / 0.568 GB, free: 62.12 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007733/1.186, allocations: 3.46 MB / 0.5714 GB, free: 61.79 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002346/1.187, allocations: 45.98 kB / 0.5714 GB, free: 61.76 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002185/1.189, allocations: 2.91 MB / 0.5742 GB, free: 60.26 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006469/1.19, allocations: 0.5412 MB / 0.5748 GB, free: 59.97 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005203/1.19, allocations: 114.8 kB / 0.5749 GB, free: 59.97 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003873/1.191, allocations: 0.554 MB / 0.5754 GB, free: 59.65 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003158/1.194, allocations: 1.588 MB / 0.577 GB, free: 59.63 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005177/1.199, allocations: 5.386 MB / 0.5822 GB, free: 54.68 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005366/1.204, allocations: 2.935 MB / 0.5851 GB, free: 54.66 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001166/1.205, allocations: 39.03 kB / 0.5851 GB, free: 54.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01508/1.22, allocations: 6.728 MB / 0.5917 GB, free: 53.91 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001154/1.22, allocations: 65.16 kB / 0.5918 GB, free: 53.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001605/1.22, allocations: 135.8 kB / 0.5919 GB, free: 53.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009778/1.221, allocations: 371.1 kB / 0.5922 GB, free: 53.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005546/1.227, allocations: 1.32 MB / 0.5935 GB, free: 53.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003741/1.23, allocations: 2.736 MB / 0.5962 GB, free: 51.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005843/1.236, allocations: 297.9 kB / 0.5965 GB, free: 51.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001052/1.237, allocations: 370.1 kB / 0.5968 GB, free: 51.7 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 618 * Number of states: 0 () * Number of discrete variables: 28 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (715): * Single equations (assignments): 711 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001142/1.238, allocations: 0.5572 MB / 0.5974 GB, free: 51.24 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007216/1.239, allocations: 325.5 kB / 0.5977 GB, free: 51.06 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003566/1.243, allocations: 1.553 MB / 0.5992 GB, free: 50.44 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.089e-05/1.243, allocations: 22.3 kB / 0.5992 GB, free: 50.43 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.295e-05/1.243, allocations: 3.969 kB / 0.5992 GB, free: 50.43 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.807e-05/1.243, allocations: 7.031 kB / 0.5993 GB, free: 50.43 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01255/1.255, allocations: 5.208 MB / 0.6043 GB, free: 48.43 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.767e-05/1.256, allocations: 7.203 kB / 0.6043 GB, free: 48.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001342/1.257, allocations: 194.9 kB / 0.6045 GB, free: 48.41 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006759/1.258, allocations: 156.2 kB / 0.6047 GB, free: 48.37 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001507/1.258, allocations: 24.58 kB / 0.6047 GB, free: 48.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002717/1.26, allocations: 2.149 MB / 0.6068 GB, free: 46.71 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.21e-06/1.261, allocations: 3.875 kB / 0.6068 GB, free: 46.71 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005763/1.266, allocations: 3.52 MB / 0.6102 GB, free: 44.96 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001504/1.268, allocations: 0.5167 MB / 0.6107 GB, free: 44.61 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007173/1.269, allocations: 26.59 kB / 0.6108 GB, free: 44.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001608/1.27, allocations: 60.06 kB / 0.6108 GB, free: 44.58 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002113/1.27, allocations: 77.83 kB / 0.6109 GB, free: 44.56 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/1.271, allocations: 38.66 kB / 0.6109 GB, free: 44.55 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005004/1.276, allocations: 2.398 MB / 0.6133 GB, free: 43.73 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.095e-06/1.276, allocations: 1.969 kB / 0.6133 GB, free: 43.73 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006265/1.282, allocations: 0.8425 MB / 0.6141 GB, free: 43.62 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004351/1.282, allocations: 165.5 kB / 0.6143 GB, free: 43.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007281/1.29, allocations: 3.916 MB / 0.6181 GB, free: 42.09 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.037e-06/1.29, allocations: 3.469 kB / 0.6181 GB, free: 42.09 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001629/1.291, allocations: 0.9559 MB / 0.619 GB, free: 41.67 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002327/1.294, allocations: 358.4 kB / 0.6194 GB, free: 41.49 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01431/1.308, allocations: 6.636 MB / 0.6258 GB, free: 38.39 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00444/1.313, allocations: 3.024 MB / 0.6288 GB, free: 36.07 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009978/1.314, allocations: 270.4 kB / 0.6291 GB, free: 35.82 MB / 426.7 MB Notification: Performance of SimCode: time 2.014e-06/1.314, allocations: 0 / 0.6291 GB, free: 35.82 MB / 426.7 MB Notification: Performance of Templates: time 0.3383/1.652, allocations: 64.27 MB / 0.6918 GB, free: 106.9 MB / 442.7 MB