Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.851/1.851, allocations: 209.2 MB / 225.4 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000435/0.0004352, allocations: 16 kB / 283.1 MB, free: 9.695 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1074, allocations: 48.71 MB / 331.8 MB, free: 8.898 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4318/0.5393, allocations: 91.61 MB / 423.4 MB, free: 9.555 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003144/0.5397, allocations: 83.97 kB / 423.5 MB, free: 9.473 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7414/1.281, allocations: 79.3 MB / 0.491 GB, free: 89.26 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.865e-06/1.281, allocations: 1.375 kB / 0.491 GB, free: 89.26 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002311/1.281, allocations: 66.61 kB / 0.4911 GB, free: 89.26 MB / 410.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.01629/1.298, allocations: 3.765 MB / 0.4948 GB, free: 87.66 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/1.298, allocations: 12.45 kB / 0.4948 GB, free: 87.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03312/1.331, allocations: 4.325 MB / 0.499 GB, free: 87.41 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01763/1.349, allocations: 4.385 MB / 0.5033 GB, free: 86.87 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004688/1.349, allocations: 279.5 kB / 0.5035 GB, free: 86.86 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002301/1.351, allocations: 370.1 kB / 0.5039 GB, free: 86.86 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02463/1.376, allocations: 9.142 MB / 0.5128 GB, free: 84.25 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002164/1.376, allocations: 56.03 kB / 0.5129 GB, free: 84.25 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00121/1.378, allocations: 183.8 kB / 0.5131 GB, free: 84.25 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001749/1.379, allocations: 0.8934 MB / 0.5139 GB, free: 84.24 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01984/1.399, allocations: 7.398 MB / 0.5212 GB, free: 84.12 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05508/1.454, allocations: 42.65 MB / 0.5628 GB, free: 50.61 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007779/1.462, allocations: 2.516 MB / 0.5653 GB, free: 49.38 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004703/1.463, allocations: 328.8 kB / 0.5656 GB, free: 49.08 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.271e-05/1.463, allocations: 46.31 kB / 0.5656 GB, free: 49.04 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 4.038e-06/1.463, allocations: 0 / 0.5656 GB, free: 49.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=133): time 0.03549/1.498, allocations: 9.091 MB / 0.5745 GB, free: 44.76 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.664e-05/1.498, allocations: 201.4 kB / 0.5747 GB, free: 44.53 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00821/1.507, allocations: 3.907 MB / 0.5785 GB, free: 43.12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003018/1.507, allocations: 52.27 kB / 0.5786 GB, free: 43.08 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00238/1.509, allocations: 2.896 MB / 0.5814 GB, free: 40.77 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000771/1.51, allocations: 0.5472 MB / 0.5819 GB, free: 40.39 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006011/1.511, allocations: 114.4 kB / 0.582 GB, free: 40.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000384/1.511, allocations: 0.5503 MB / 0.5826 GB, free: 39.88 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004228/1.515, allocations: 1.643 MB / 0.5842 GB, free: 39.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006376/1.522, allocations: 5.447 MB / 0.5895 GB, free: 32.23 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00627/1.528, allocations: 2.934 MB / 0.5924 GB, free: 29.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.599e-05/1.528, allocations: 40 kB / 0.5924 GB, free: 29.56 MB / 410.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01564/1.544, allocations: 6.831 MB / 0.5991 GB, free: 23.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.495e-05/1.544, allocations: 60 kB / 0.5991 GB, free: 23.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001383/1.544, allocations: 136.9 kB / 0.5992 GB, free: 23.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001034/1.545, allocations: 372.6 kB / 0.5996 GB, free: 22.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006957/1.552, allocations: 1.323 MB / 0.6009 GB, free: 21.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004016/1.556, allocations: 2.778 MB / 0.6036 GB, free: 19.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005712/1.562, allocations: 304.9 kB / 0.6039 GB, free: 18.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007792/1.563, allocations: 374.5 kB / 0.6043 GB, free: 18.53 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.003947/1.567, allocations: 1.942 MB / 0.6062 GB, free: 16.81 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007006/1.568, allocations: 323.8 kB / 0.6065 GB, free: 16.49 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004077/1.572, allocations: 1.581 MB / 0.608 GB, free: 15.16 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.073e-05/1.572, allocations: 12 kB / 0.608 GB, free: 15.15 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/1.572, allocations: 4 kB / 0.608 GB, free: 15.15 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.633e-05/1.572, allocations: 10.09 kB / 0.608 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01276/1.585, allocations: 5.23 MB / 0.6131 GB, free: 10.85 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.507e-05/1.585, allocations: 4 kB / 0.6131 GB, free: 10.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001716/1.586, allocations: 195.7 kB / 0.6133 GB, free: 10.65 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007551/1.587, allocations: 157.5 kB / 0.6135 GB, free: 10.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001157/1.587, allocations: 31.94 kB / 0.6135 GB, free: 10.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003107/1.59, allocations: 2.198 MB / 0.6157 GB, free: 8.137 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/1.59, allocations: 3.938 kB / 0.6157 GB, free: 8.133 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007054/1.597, allocations: 3.369 MB / 0.6189 GB, free: 4.719 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001584/1.599, allocations: 0.5278 MB / 0.6195 GB, free: 4.168 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005955/1.6, allocations: 20 kB / 0.6195 GB, free: 4.148 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001765/1.601, allocations: 67.39 kB / 0.6195 GB, free: 4.086 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002323/1.602, allocations: 68.47 kB / 0.6196 GB, free: 4.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001199/1.602, allocations: 36 kB / 0.6196 GB, free: 3.984 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00482/1.607, allocations: 2.429 MB / 0.622 GB, free: 1.574 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.607, allocations: 0 / 0.622 GB, free: 1.574 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006031/1.613, allocations: 0.8398 MB / 0.6228 GB, free: 0.7344 MB / 410.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.0005063/1.613, allocations: 158.4 kB / 0.623 GB, free: 0.5742 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01032/1.624, allocations: 3.987 MB / 0.6269 GB, free: 12.61 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.625e-06/1.624, allocations: 3.938 kB / 0.6269 GB, free: 12.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002417/1.626, allocations: 0.9747 MB / 0.6278 GB, free: 11.61 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002874/1.629, allocations: 370 kB / 0.6282 GB, free: 11.26 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02361/1.653, allocations: 9.514 MB / 0.6375 GB, free: 1.703 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0064/1.659, allocations: 3.026 MB / 0.6404 GB, free: 14.65 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001357/1.66, allocations: 271.4 kB / 0.6407 GB, free: 14.39 MB / 442.7 MB Notification: Performance of SimCode: time 1.322e-06/1.66, allocations: 0 / 0.6407 GB, free: 14.39 MB / 442.7 MB Notification: Performance of Templates: time 0.4658/2.126, allocations: 64.28 MB / 0.7035 GB, free: 94.62 MB / 442.7 MB