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.846/1.846, allocations: 209.3 MB / 224.9 MB, free: 192 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004465/0.0004466, allocations: 15.98 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2862/0.2867, allocations: 48.7 MB / 331.3 MB, free: 6.48 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1372/0.4239, allocations: 91.64 MB / 422.9 MB, free: 2.746 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002567/0.4242, allocations: 79.95 kB / 423 MB, free: 2.668 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5235/0.9477, allocations: 78.81 MB / 0.49 GB, free: 89.9 MB / 394.7 MB Notification: Performance of FrontEnd: time 4.239e-06/0.9477, allocations: 7.109 kB / 0.4901 GB, free: 89.9 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001727/0.9479, allocations: 66.67 kB / 0.4901 GB, free: 89.9 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.01113/0.9591, allocations: 3.769 MB / 0.4938 GB, free: 88.17 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.9591, allocations: 11.69 kB / 0.4938 GB, free: 88.17 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02325/0.9824, allocations: 4.318 MB / 0.498 GB, free: 87.91 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01337/0.9958, allocations: 4.366 MB / 0.5023 GB, free: 87.28 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003019/0.9962, allocations: 286.3 kB / 0.5026 GB, free: 87.23 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001634/0.9978, allocations: 376.7 kB / 0.5029 GB, free: 87.13 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01908/1.017, allocations: 9.116 MB / 0.5118 GB, free: 80.86 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002009/1.017, allocations: 56.31 kB / 0.5119 GB, free: 80.82 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001043/1.018, allocations: 188.6 kB / 0.5121 GB, free: 80.73 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001434/1.02, allocations: 0.8897 MB / 0.5129 GB, free: 80.42 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01578/1.035, allocations: 7.395 MB / 0.5201 GB, free: 73.84 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04367/1.079, allocations: 42.65 MB / 0.5618 GB, free: 29.97 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006028/1.085, allocations: 2.524 MB / 0.5643 GB, free: 27.3 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003902/1.086, allocations: 331.4 kB / 0.5646 GB, free: 26.93 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.011e-05/1.086, allocations: 43.12 kB / 0.5646 GB, free: 26.88 MB / 394.7 MB Notification: Performance of pre-optimization done (n=119): time 5.96e-06/1.086, allocations: 3.938 kB / 0.5646 GB, free: 26.87 MB / 394.7 MB Notification: Performance of matching and sorting (n=133): time 0.02591/1.112, allocations: 8.89 MB / 0.5733 GB, free: 17.82 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.46e-05/1.112, allocations: 200.5 kB / 0.5735 GB, free: 17.58 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006574/1.118, allocations: 3.493 MB / 0.5769 GB, free: 14.1 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002248/1.119, allocations: 45.7 kB / 0.577 GB, free: 14.05 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001849/1.121, allocations: 2.905 MB / 0.5798 GB, free: 11.15 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005597/1.121, allocations: 0.5452 MB / 0.5803 GB, free: 10.61 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003507/1.121, allocations: 116.2 kB / 0.5804 GB, free: 10.5 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003293/1.122, allocations: 0.5467 MB / 0.581 GB, free: 9.941 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003144/1.125, allocations: 1.647 MB / 0.5826 GB, free: 8.289 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00533/1.13, allocations: 5.43 MB / 0.5879 GB, free: 0.9375 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005964/1.136, allocations: 2.93 MB / 0.5907 GB, free: 14.01 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001225/1.136, allocations: 40 kB / 0.5908 GB, free: 13.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01749/1.154, allocations: 6.817 MB / 0.5974 GB, free: 7.148 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001244/1.154, allocations: 64 kB / 0.5975 GB, free: 7.086 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001974/1.154, allocations: 136.9 kB / 0.5976 GB, free: 6.953 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001062/1.155, allocations: 368.7 kB / 0.598 GB, free: 6.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005402/1.161, allocations: 1.329 MB / 0.5993 GB, free: 5.258 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004592/1.165, allocations: 2.785 MB / 0.602 GB, free: 2.344 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005435/1.171, allocations: 299.4 kB / 0.6023 GB, free: 2.051 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001123/1.172, allocations: 364 kB / 0.6026 GB, free: 1.695 MB / 410.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 () * Number of clocked 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.004815/1.177, allocations: 1.945 MB / 0.6045 GB, free: 15.73 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000792/1.178, allocations: 319.6 kB / 0.6048 GB, free: 15.42 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0042/1.182, allocations: 1.581 MB / 0.6064 GB, free: 13.82 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.693e-05/1.182, allocations: 16 kB / 0.6064 GB, free: 13.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/1.182, allocations: 4 kB / 0.6064 GB, free: 13.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.351e-05/1.182, allocations: 7.969 kB / 0.6064 GB, free: 13.79 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01411/1.196, allocations: 5.233 MB / 0.6115 GB, free: 8.504 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.038e-05/1.196, allocations: 7.984 kB / 0.6115 GB, free: 8.496 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001278/1.198, allocations: 191.7 kB / 0.6117 GB, free: 8.312 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006811/1.198, allocations: 160.8 kB / 0.6119 GB, free: 8.152 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001438/1.198, allocations: 30.64 kB / 0.6119 GB, free: 8.125 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003489/1.202, allocations: 2.199 MB / 0.614 GB, free: 5.793 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.285e-06/1.202, allocations: 4 kB / 0.614 GB, free: 5.789 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007076/1.209, allocations: 3.573 MB / 0.6175 GB, free: 2.137 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001693/1.211, allocations: 0.5279 MB / 0.618 GB, free: 1.586 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004614/1.211, allocations: 22.5 kB / 0.6181 GB, free: 1.566 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001456/1.213, allocations: 55.94 kB / 0.6181 GB, free: 1.512 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002325/1.213, allocations: 72.53 kB / 0.6182 GB, free: 1.441 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000142/1.213, allocations: 39.94 kB / 0.6182 GB, free: 1.402 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.2529/1.466, allocations: 2.425 MB / 0.6206 GB, free: 105.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.171e-06/1.466, allocations: 0 / 0.6206 GB, free: 105.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006463/1.473, allocations: 0.84 MB / 0.6214 GB, free: 105.9 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 () * Number of clocked 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.0005075/1.473, allocations: 158.1 kB / 0.6216 GB, free: 105.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008599/1.482, allocations: 3.989 MB / 0.6255 GB, free: 105.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.797e-06/1.482, allocations: 2.578 kB / 0.6255 GB, free: 105.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001925/1.484, allocations: 0.9735 MB / 0.6264 GB, free: 105.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002286/1.486, allocations: 354.7 kB / 0.6268 GB, free: 105.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0188/1.505, allocations: 9.481 MB / 0.636 GB, free: 101.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006143/1.511, allocations: 3.028 MB / 0.639 GB, free: 101.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001034/1.512, allocations: 270.4 kB / 0.6392 GB, free: 101.1 MB / 426.7 MB Notification: Performance of SimCode: time 2.488e-06/1.512, allocations: 0 / 0.6392 GB, free: 101.1 MB / 426.7 MB Notification: Performance of Templates: time 0.09382/1.606, allocations: 64.28 MB / 0.702 GB, free: 66 MB / 426.7 MB