Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/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.2_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.004294/0.004294, allocations: 371.4 kB / 15.97 MB, free: 6.199 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 4.03/4.03, allocations: 388.9 MB / 405.6 MB, free: 9.645 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.005512/0.005512, allocations: 222.3 kB / 451 MB, free: 145 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5292/0.5292, allocations: 80.03 MB / 0.5627 GB, free: 19.77 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004576/0.0004584, allocations: 8 kB / 0.6265 GB, free: 96.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09987/0.1004, allocations: 54.88 MB / 0.6801 GB, free: 41.65 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.05405/0.1545, allocations: 35.98 MB / 0.7152 GB, free: 5.559 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.4045/0.559, allocations: 8.215 MB / 0.7233 GB, free: 11.89 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007085/0.5661, allocations: 163.7 kB / 0.7234 GB, free: 11.89 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006288/0.5725, allocations: 1.72 MB / 0.7251 GB, free: 11.87 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02104/0.5936, allocations: 6.145 MB / 0.7311 GB, free: 11.48 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003341/0.597, allocations: 0.4912 MB / 0.7316 GB, free: 11.46 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.02994/0.6269, allocations: 15.11 MB / 0.7463 GB, free: 6.82 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006434/0.6334, allocations: 3.031 MB / 0.7493 GB, free: 5.824 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002577/0.6361, allocations: 1.062 MB / 0.7503 GB, free: 5.43 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003756/0.6399, allocations: 1.749 MB / 0.752 GB, free: 4.848 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007753/0.6407, allocations: 128.6 kB / 0.7522 GB, free: 4.848 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003067/0.6438, allocations: 0.9713 MB / 0.7531 GB, free: 4.586 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002164/0.646, allocations: 1.508 MB / 0.7546 GB, free: 3.406 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001013/0.647, allocations: 0.7324 MB / 0.7553 GB, free: 3.008 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007067/0.6541, allocations: 4.884 MB / 0.7601 GB, free: 14.76 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.919e-06/0.6542, allocations: 4 kB / 0.7601 GB, free: 14.75 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.6542, allocations: 0 / 0.7601 GB, free: 14.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001782/0.6544, allocations: 0 / 0.7601 GB, free: 14.75 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1364 * Number of variables: 1364 Notification: Performance of Generate backend data structure: time 0.01204/0.6664, allocations: 3.571 MB / 0.7636 GB, free: 11.42 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/0.6665, allocations: 8.828 kB / 0.7636 GB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03308/0.6996, allocations: 2.888 MB / 0.7664 GB, free: 8.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008268/0.7079, allocations: 2.38 MB / 0.7687 GB, free: 6.801 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002469/0.7082, allocations: 191.6 kB / 0.7689 GB, free: 6.695 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001318/0.7095, allocations: 260.4 kB / 0.7691 GB, free: 6.531 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0215/0.731, allocations: 8.807 MB / 0.7777 GB, free: 15.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000183/0.7313, allocations: 41.53 kB / 0.7778 GB, free: 15.45 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000648/0.7319, allocations: 130.5 kB / 0.7779 GB, free: 15.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005013/0.737, allocations: 1.775 MB / 0.7796 GB, free: 13.92 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02281/0.7598, allocations: 7.489 MB / 0.787 GB, free: 7.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06445/0.8243, allocations: 34.21 MB / 0.8204 GB, free: 4.707 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008644/0.833, allocations: 2.587 MB / 0.8229 GB, free: 1.977 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002823/0.8359, allocations: 1.18 MB / 0.824 GB, free: 0.7812 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005189/0.8364, allocations: 329.4 kB / 0.8244 GB, free: 420 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.097e-05/0.8365, allocations: 56.8 kB / 0.8244 GB, free: 356 kB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 5.39e-06/0.8365, allocations: 0 / 0.8244 GB, free: 356 kB / 410.7 MB Notification: Performance of matching and sorting (n=133): time 0.04409/0.8806, allocations: 9.776 MB / 0.834 GB, free: 6.477 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/0.8808, allocations: 192.6 kB / 0.8341 GB, free: 6.246 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008916/0.8897, allocations: 3.915 MB / 0.838 GB, free: 2.348 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003286/0.8901, allocations: 45.7 kB / 0.838 GB, free: 2.297 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003448/0.8936, allocations: 2.937 MB / 0.8409 GB, free: 15.38 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009614/0.8946, allocations: 0.5379 MB / 0.8414 GB, free: 14.85 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006359/0.8953, allocations: 120 kB / 0.8415 GB, free: 14.73 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005194/0.8958, allocations: 0.5539 MB / 0.8421 GB, free: 14.17 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005221/0.901, allocations: 1.772 MB / 0.8438 GB, free: 12.39 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009476/0.9106, allocations: 5.598 MB / 0.8493 GB, free: 4.879 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00807/0.9187, allocations: 3.082 MB / 0.8523 GB, free: 1.797 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000124/0.9189, allocations: 38.08 kB / 0.8523 GB, free: 1.762 MB / 442.7 MB Notification: Performance of matching and sorting (n=767) (initialization): time 0.02282/0.9417, allocations: 7.523 MB / 0.8596 GB, free: 10.23 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000136/0.9419, allocations: 67.95 kB / 0.8597 GB, free: 10.16 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002452/0.9422, allocations: 136 kB / 0.8598 GB, free: 10.03 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00315/0.9453, allocations: 0.6838 MB / 0.8605 GB, free: 9.344 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008233/0.9536, allocations: 1.347 MB / 0.8618 GB, free: 7.996 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01049/0.9641, allocations: 3.805 MB / 0.8655 GB, free: 4.062 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009149/0.9733, allocations: 319.5 kB / 0.8658 GB, free: 3.75 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001468/0.9749, allocations: 368 kB / 0.8662 GB, free: 3.391 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 616 * 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 (732): * Single equations (assignments): 728 * 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 {(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006397/0.9813, allocations: 1.931 MB / 0.8681 GB, free: 1.449 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001149/0.9824, allocations: 323.8 kB / 0.8684 GB, free: 1.129 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009417/0.9919, allocations: 2.065 MB / 0.8704 GB, free: 15.04 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.043e-05/0.992, allocations: 3.984 kB / 0.8704 GB, free: 15.04 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.319e-05/0.992, allocations: 3.953 kB / 0.8704 GB, free: 15.04 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002329/0.9944, allocations: 0.5513 MB / 0.871 GB, free: 14.46 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005025/0.9994, allocations: 25.62 kB / 0.871 GB, free: 14.44 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002863/1.002, allocations: 75.19 kB / 0.871 GB, free: 14.37 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003745/1.003, allocations: 80.53 kB / 0.8711 GB, free: 14.29 MB / 474.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.03794/1.041, allocations: 2.557 MB / 0.8736 GB, free: 11.74 MB / 474.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01154/1.052, allocations: 3.559 MB / 0.8771 GB, free: 8.16 MB / 474.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003293/1.056, allocations: 0.8521 MB / 0.8779 GB, free: 7.312 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008501/1.064, allocations: 2.432 MB / 0.8803 GB, free: 4.898 MB / 474.7 MB Notification: Performance of Backend: time 1.413e-06/1.064, allocations: 0 / 0.8803 GB, free: 4.898 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01676/1.081, allocations: 3.706 MB / 0.8839 GB, free: 1.219 MB / 474.7 MB Notification: Performance of SimCode: time 0.0244/1.105, allocations: 9.545 MB / 0.8932 GB, free: 7.629 MB / 490.7 MB Notification: Performance of Templates: time 0.4486/1.554, allocations: 36.77 MB / 0.9292 GB, free: 160.7 MB / 490.7 MB