Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00411/0.004115, allocations: 371.3 kB / 15.97 MB, free: 6.195 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.087/4.087, allocations: 388.9 MB / 405.6 MB, free: 9.66 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.003551/0.003551, allocations: 218.6 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.5206/0.5206, allocations: 80.03 MB / 0.5627 GB, free: 19.78 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006508/0.0006512, allocations: 12 kB / 0.6265 GB, free: 96.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09706/0.09776, allocations: 54.87 MB / 0.6801 GB, free: 41.67 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.03434/0.1322, allocations: 29.38 MB / 0.7088 GB, free: 12.19 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01796/0.1502, allocations: 7.065 MB / 0.7157 GB, free: 5.105 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005419/0.1557, allocations: 131.7 kB / 0.7158 GB, free: 4.977 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004546/0.1603, allocations: 1.396 MB / 0.7172 GB, free: 3.574 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.3306/0.4909, allocations: 5.044 MB / 0.7221 GB, free: 13.29 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00287/0.4938, allocations: 490 kB / 0.7226 GB, free: 13.27 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.03038/0.5243, allocations: 14.8 MB / 0.737 GB, free: 12.01 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005498/0.5298, allocations: 2.658 MB / 0.7396 GB, free: 11.18 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002572/0.5325, allocations: 0.9764 MB / 0.7406 GB, free: 11.02 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003818/0.5363, allocations: 1.591 MB / 0.7421 GB, free: 10.69 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009888/0.5374, allocations: 111.2 kB / 0.7422 GB, free: 10.69 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003393/0.5408, allocations: 0.9558 MB / 0.7432 GB, free: 10.46 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002754/0.5436, allocations: 1.363 MB / 0.7445 GB, free: 10.12 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00169/0.5453, allocations: 0.6641 MB / 0.7452 GB, free: 9.984 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00761/0.553, allocations: 4.38 MB / 0.7494 GB, free: 7.688 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.553, allocations: 3.25 kB / 0.7494 GB, free: 7.688 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.553, allocations: 2.969 kB / 0.7494 GB, free: 7.688 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002351/0.5533, allocations: 0 / 0.7494 GB, free: 7.688 MB / 346.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.01142/0.5647, allocations: 3.292 MB / 0.7527 GB, free: 5.523 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.5648, allocations: 8.031 kB / 0.7527 GB, free: 5.516 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0326/0.5974, allocations: 2.818 MB / 0.7554 GB, free: 2.828 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007785/0.6052, allocations: 2.242 MB / 0.7576 GB, free: 1.07 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001968/0.6055, allocations: 176.1 kB / 0.7578 GB, free: 0.9727 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001119/0.6066, allocations: 235.9 kB / 0.758 GB, free: 0.8203 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02011/0.6267, allocations: 7.943 MB / 0.7658 GB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001561/0.627, allocations: 39.59 kB / 0.7658 GB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006356/0.6276, allocations: 114 kB / 0.7659 GB, free: 10.33 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004538/0.6322, allocations: 1.61 MB / 0.7675 GB, free: 8.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02132/0.6535, allocations: 6.768 MB / 0.7741 GB, free: 4.129 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05635/0.7099, allocations: 31.45 MB / 0.8048 GB, free: 5.328 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008064/0.7181, allocations: 2.336 MB / 0.8071 GB, free: 2.848 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002734/0.7208, allocations: 1.178 MB / 0.8082 GB, free: 1.66 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005396/0.7214, allocations: 327.4 kB / 0.8085 GB, free: 1.289 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.862e-05/0.7215, allocations: 47.05 kB / 0.8086 GB, free: 1.23 MB / 394.7 MB Notification: Performance of pre-optimization done (n=117): time 5.67e-06/0.7215, allocations: 0 / 0.8086 GB, free: 1.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=141): time 0.0752/0.7967, allocations: 12.32 MB / 0.8206 GB, free: 4.793 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000156/0.7969, allocations: 200.6 kB / 0.8208 GB, free: 4.555 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01461/0.8115, allocations: 3.686 MB / 0.8244 GB, free: 0.875 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005247/0.8121, allocations: 49.53 kB / 0.8244 GB, free: 0.8242 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004557/0.8167, allocations: 2.653 MB / 0.827 GB, free: 14.19 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001529/0.8183, allocations: 0.5622 MB / 0.8276 GB, free: 13.63 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00108/0.8194, allocations: 107.9 kB / 0.8277 GB, free: 13.52 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009813/0.8205, allocations: 0.5374 MB / 0.8282 GB, free: 12.98 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008684/0.8292, allocations: 1.779 MB / 0.83 GB, free: 11.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01352/0.8428, allocations: 5.211 MB / 0.835 GB, free: 4.27 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0127/0.8556, allocations: 2.99 MB / 0.838 GB, free: 1.289 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001678/0.8558, allocations: 32 kB / 0.838 GB, free: 1.258 MB / 426.7 MB Notification: Performance of matching and sorting (n=716) (initialization): time 0.03389/0.8897, allocations: 7.216 MB / 0.845 GB, free: 10.04 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001288/0.8899, allocations: 56 kB / 0.8451 GB, free: 9.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002112/0.8901, allocations: 120 kB / 0.8452 GB, free: 9.863 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003279/0.8934, allocations: 0.6745 MB / 0.8459 GB, free: 9.188 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008277/0.9017, allocations: 1.259 MB / 0.8471 GB, free: 7.926 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008182/0.91, allocations: 3.769 MB / 0.8508 GB, free: 4.023 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006304/0.9163, allocations: 303.4 kB / 0.8511 GB, free: 3.727 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001366/0.9177, allocations: 336 kB / 0.8514 GB, free: 3.398 MB / 442.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 (681): * Single equations (assignments): 677 * 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.00547/0.9232, allocations: 1.781 MB / 0.8531 GB, free: 1.609 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008839/0.9241, allocations: 306 kB / 0.8534 GB, free: 1.309 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00796/0.9321, allocations: 2.218 MB / 0.8556 GB, free: 15.08 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-05/0.9322, allocations: 11.92 kB / 0.8556 GB, free: 15.07 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.079e-05/0.9323, allocations: 4 kB / 0.8556 GB, free: 15.06 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002222/0.9345, allocations: 0.5477 MB / 0.8561 GB, free: 14.49 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001165/0.9357, allocations: 24 kB / 0.8562 GB, free: 14.47 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002945/0.9387, allocations: 83.89 kB / 0.8562 GB, free: 14.39 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005154/0.9393, allocations: 80.81 kB / 0.8563 GB, free: 14.31 MB / 458.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01007/0.9493, allocations: 2.792 MB / 0.859 GB, free: 11.53 MB / 458.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01025/0.9596, allocations: 3.884 MB / 0.8628 GB, free: 7.625 MB / 458.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002613/0.9623, allocations: 0.9544 MB / 0.8638 GB, free: 6.676 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006542/0.9689, allocations: 2.309 MB / 0.866 GB, free: 4.379 MB / 458.7 MB Notification: Performance of Backend: time 8.31e-07/0.969, allocations: 3.938 kB / 0.866 GB, free: 4.375 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01314/0.9821, allocations: 3.589 MB / 0.8695 GB, free: 0.8047 MB / 458.7 MB Notification: Performance of SimCode: time 0.02234/1.005, allocations: 8.863 MB / 0.8782 GB, free: 7.891 MB / 474.7 MB Notification: Performance of Templates: time 0.432/1.437, allocations: 37.01 MB / 0.9143 GB, free: 170.5 MB / 490.7 MB