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.Distance.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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadModel(ModelicaTest): time 1.821/1.821, allocations: 209.3 MB / 224.8 MB, free: 200 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008015/0.0008019, allocations: 8 kB / 282.5 MB, free: 9.641 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2861/0.2869, allocations: 48.71 MB / 331.2 MB, free: 6.469 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.0369/0.3238, allocations: 27.73 MB / 358.9 MB, free: 2.352 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0187/0.3426, allocations: 7.295 MB / 366.2 MB, free: 11.44 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005431/0.3481, allocations: 135.7 kB / 366.3 MB, free: 11.31 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004202/0.3523, allocations: 1.369 MB / 367.7 MB, free: 9.934 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01445/0.3668, allocations: 4.169 MB / 371.9 MB, free: 5.754 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002277/0.3691, allocations: 0.4913 MB / 372.4 MB, free: 5.262 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01996/0.3891, allocations: 9.286 MB / 381.7 MB, free: 11.96 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004921/0.3941, allocations: 2.641 MB / 384.3 MB, free: 9.27 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001535/0.3956, allocations: 0.8291 MB / 385.1 MB, free: 8.438 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001874/0.3975, allocations: 1.149 MB / 386.3 MB, free: 7.285 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004022/0.3979, allocations: 112 kB / 386.4 MB, free: 7.176 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002045/0.4, allocations: 0.9402 MB / 387.3 MB, free: 6.234 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001728/0.4018, allocations: 1.258 MB / 388.6 MB, free: 4.969 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008955/0.4027, allocations: 0.6675 MB / 389.3 MB, free: 4.293 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006949/0.4096, allocations: 4.54 MB / 393.8 MB, free: 15.74 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.509e-06/0.4097, allocations: 4 kB / 393.8 MB, free: 15.74 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.488e-06/0.4097, allocations: 0 / 393.8 MB, free: 15.74 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.719e-05/0.4098, allocations: 0 / 393.8 MB, free: 15.74 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1216 * Number of variables: 1216 Notification: Performance of Generate backend data structure: time 0.009494/0.4193, allocations: 3.416 MB / 397.2 MB, free: 12.25 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.4194, allocations: 12.03 kB / 397.2 MB, free: 12.24 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09476/0.5142, allocations: 8.227 MB / 405.4 MB, free: 4 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006601/0.5208, allocations: 2.447 MB / 407.9 MB, free: 1.5 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001981/0.521, allocations: 168.3 kB / 408.1 MB, free: 1.332 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007025/0.5218, allocations: 235.8 kB / 408.3 MB, free: 1.102 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01575/0.5375, allocations: 7.87 MB / 416.2 MB, free: 8.602 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001182/0.5377, allocations: 47.55 kB / 416.2 MB, free: 8.555 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004325/0.5381, allocations: 119.9 kB / 416.3 MB, free: 8.438 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00319/0.5413, allocations: 1.598 MB / 417.9 MB, free: 6.84 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01625/0.5576, allocations: 6.649 MB / 424.6 MB, free: 188 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04828/0.6059, allocations: 31.21 MB / 455.8 MB, free: 16 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006536/0.6125, allocations: 2.273 MB / 458.1 MB, free: 13.59 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005008/0.6131, allocations: 323.7 kB / 458.4 MB, free: 13.23 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.756e-05/0.6131, allocations: 51.06 kB / 458.4 MB, free: 13.17 MB / 394.7 MB Notification: Performance of pre-optimization done (n=117): time 6.063e-06/0.6132, allocations: 3.938 kB / 458.4 MB, free: 13.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=141): time 0.04503/0.6582, allocations: 11.66 MB / 470.1 MB, free: 1.316 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000146/0.6584, allocations: 200.5 kB / 470.3 MB, free: 1.078 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007183/0.6656, allocations: 3.825 MB / 474.1 MB, free: 13.25 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002455/0.6659, allocations: 41.7 kB / 474.1 MB, free: 13.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002733/0.6686, allocations: 2.616 MB / 476.8 MB, free: 10.56 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008372/0.6695, allocations: 0.5595 MB / 477.3 MB, free: 9.992 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003708/0.6699, allocations: 108 kB / 477.4 MB, free: 9.887 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000493/0.6704, allocations: 0.5301 MB / 478 MB, free: 9.348 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003737/0.6741, allocations: 1.673 MB / 479.6 MB, free: 7.668 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007225/0.6814, allocations: 5.088 MB / 484.7 MB, free: 0.8555 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2318/0.9133, allocations: 2.876 MB / 487.6 MB, free: 127.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.861e-05/0.9134, allocations: 33.78 kB / 487.6 MB, free: 127.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01512/0.9285, allocations: 6.628 MB / 494.3 MB, free: 125.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001213/0.9287, allocations: 57.38 kB / 494.3 MB, free: 125.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001754/0.9289, allocations: 121 kB / 494.4 MB, free: 125.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001239/0.9302, allocations: 418.9 kB / 494.8 MB, free: 125.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004862/0.935, allocations: 1.234 MB / 496.1 MB, free: 125 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004354/0.9394, allocations: 3.142 MB / 499.2 MB, free: 123 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00478/0.9442, allocations: 293.6 kB / 499.5 MB, free: 122.9 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006668/0.9449, allocations: 331 kB / 499.8 MB, free: 122.9 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 24 (BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (662): * Single equations (assignments): 658 * 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.003086/0.9481, allocations: 1.776 MB / 0.4898 GB, free: 122.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005947/0.9487, allocations: 312.7 kB / 0.4901 GB, free: 122.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003976/0.9527, allocations: 1.848 MB / 0.492 GB, free: 121.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.68e-05/0.9527, allocations: 17.09 kB / 0.492 GB, free: 121.3 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.92e-06/0.9527, allocations: 3.094 kB / 0.492 GB, free: 121.3 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.779e-05/0.9528, allocations: 10.03 kB / 0.492 GB, free: 121.3 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01153/0.9643, allocations: 5.617 MB / 0.4975 GB, free: 119.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-05/0.9644, allocations: 0 / 0.4975 GB, free: 119.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001446/0.9658, allocations: 215.1 kB / 0.4977 GB, free: 119.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009101/0.9668, allocations: 232.7 kB / 0.4979 GB, free: 119.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001329/0.9669, allocations: 27.19 kB / 0.4979 GB, free: 119 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003272/0.9702, allocations: 2.57 MB / 0.5004 GB, free: 117.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.079e-06/0.9702, allocations: 6.344 kB / 0.5004 GB, free: 117.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006197/0.9764, allocations: 3.869 MB / 0.5042 GB, free: 113.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001265/0.9777, allocations: 0.5438 MB / 0.5047 GB, free: 113 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004137/0.9782, allocations: 34.3 kB / 0.5048 GB, free: 113 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001468/0.9797, allocations: 71.98 kB / 0.5048 GB, free: 112.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001905/0.9799, allocations: 76.48 kB / 0.5049 GB, free: 112.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001242/0.98, allocations: 37.25 kB / 0.505 GB, free: 112.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003671/0.9837, allocations: 2.412 MB / 0.5073 GB, free: 110.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.029e-06/0.9837, allocations: 0 / 0.5073 GB, free: 110.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004818/0.9885, allocations: 0.83 MB / 0.5081 GB, free: 109.6 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 108 * 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.0004312/0.989, allocations: 155.7 kB / 0.5083 GB, free: 109.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00719/0.9962, allocations: 4.06 MB / 0.5122 GB, free: 105.4 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.9963, allocations: 2.297 kB / 0.5122 GB, free: 105.4 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001996/0.9983, allocations: 1.147 MB / 0.5134 GB, free: 104.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001838/1, allocations: 354.6 kB / 0.5137 GB, free: 103.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01376/1.014, allocations: 8.999 MB / 0.5225 GB, free: 94.82 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003159/1.017, allocations: 2.829 MB / 0.5252 GB, free: 91.96 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00104/1.018, allocations: 259.4 kB / 0.5255 GB, free: 91.71 MB / 410.7 MB Notification: Performance of SimCode: time 1.605e-06/1.018, allocations: 4 kB / 0.5255 GB, free: 91.71 MB / 410.7 MB Notification: Performance of Templates: time 0.07858/1.097, allocations: 61.37 MB / 0.5854 GB, free: 30.29 MB / 410.7 MB