Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.RelativeSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.RelativeSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.RelativeSensor") translateModel(ModelicaTest.MultiBody.Sensors.RelativeSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.RelativeSensor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006101/0.006101, allocations: 96.31 kB / 15.73 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 195.6 kB / 16.67 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.517/1.517, allocations: 205.1 MB / 222.6 MB, free: 4.492 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3663/0.3663, allocations: 39.95 MB / 309.9 MB, free: 9.379 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 67.91 kB / 435.8 MB, free: 2.449 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3364/0.3379, allocations: 56.87 MB / 492.7 MB, free: 19.42 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.0327/0.3706, allocations: 27.34 MB / 0.5078 GB, free: 15.61 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02546/0.3961, allocations: 8.755 MB / 0.5164 GB, free: 8.578 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00871/0.4049, allocations: 224.9 kB / 0.5166 GB, free: 8.547 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0435/0.4484, allocations: 22.09 MB / 0.5382 GB, free: 5.82 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01579/0.4643, allocations: 4.128 MB / 0.5422 GB, free: 1.676 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01201/0.4763, allocations: 4.826 MB / 0.5469 GB, free: 12.84 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.02183/0.4982, allocations: 11.18 MB / 0.5578 GB, free: 1.621 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05436/0.5526, allocations: 32.8 MB / 0.5899 GB, free: 0.6094 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01758/0.5702, allocations: 7.57 MB / 0.5973 GB, free: 9.023 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01809/0.5884, allocations: 9.55 MB / 0.6066 GB, free: 15.45 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01075/0.5992, allocations: 2.328 MB / 0.6089 GB, free: 13.12 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0131/0.6123, allocations: 3.638 MB / 0.6124 GB, free: 9.48 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01503/0.6274, allocations: 9.052 MB / 0.6213 GB, free: 420 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02279/0.6502, allocations: 10.29 MB / 0.6313 GB, free: 6.07 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.6939/1.344, allocations: 34.32 MB / 0.6648 GB, free: 62.25 MB / 0.4982 GB Notification: Performance of FrontEnd - DAE generated: time 8.887e-06/1.344, allocations: 0 / 0.6648 GB, free: 62.25 MB / 0.4982 GB Notification: Performance of FrontEnd: time 2.865e-06/1.344, allocations: 0.8125 kB / 0.6648 GB, free: 62.25 MB / 0.4982 GB Notification: Performance of Transformations before backend: time 0.002402/1.347, allocations: 0.5 kB / 0.6648 GB, free: 62.25 MB / 0.4982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5965 * Number of variables: 5965 Notification: Performance of Generate backend data structure: time 0.1017/1.448, allocations: 19.59 MB / 0.684 GB, free: 52.19 MB / 0.4982 GB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/1.448, allocations: 13.45 kB / 0.684 GB, free: 52.19 MB / 0.4982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04006/1.488, allocations: 4.76 MB / 0.6886 GB, free: 49.86 MB / 0.4982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03284/1.521, allocations: 9.546 MB / 0.6979 GB, free: 44.6 MB / 0.4982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001641/1.523, allocations: 1.315 MB / 0.6992 GB, free: 44.05 MB / 0.4982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01508/1.538, allocations: 1.735 MB / 0.7009 GB, free: 43.51 MB / 0.4982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1404/1.679, allocations: 40.95 MB / 0.7409 GB, free: 8 MB / 0.4982 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001345/1.68, allocations: 101.3 kB / 0.741 GB, free: 7.938 MB / 0.4982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01426/1.694, allocations: 0.7572 MB / 0.7418 GB, free: 7.246 MB / 0.4982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007178/1.702, allocations: 4.175 MB / 0.7458 GB, free: 3.125 MB / 0.4982 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1063/1.808, allocations: 33.62 MB / 0.7787 GB, free: 1.844 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7075/2.515, allocations: 118.7 MB / 0.8946 GB, free: 159.8 MB / 0.6232 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05796/2.573, allocations: 22.04 MB / 0.9161 GB, free: 157.4 MB / 0.6232 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007903/2.581, allocations: 7.066 MB / 0.923 GB, free: 157.3 MB / 0.6232 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04877/2.63, allocations: 27.93 MB / 0.9503 GB, free: 144.5 MB / 0.6232 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001179/2.63, allocations: 84.89 kB / 0.9503 GB, free: 144.4 MB / 0.6232 GB Notification: Performance of pre-optimization done (n=372): time 1.124e-05/2.63, allocations: 0 / 0.9503 GB, free: 144.4 MB / 0.6232 GB Notification: Performance of matching and sorting (n=486): time 1.502/4.132, allocations: 325.9 MB / 1.269 GB, free: 136.2 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/4.132, allocations: 282.6 kB / 1.269 GB, free: 135.9 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02232/4.155, allocations: 10.25 MB / 1.279 GB, free: 125.6 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.003146/4.158, allocations: 102.9 kB / 1.279 GB, free: 125.5 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.009327/4.167, allocations: 11.22 MB / 1.29 GB, free: 114.4 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.004978/4.172, allocations: 1.973 MB / 1.292 GB, free: 112.4 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01331/4.186, allocations: 3.817 MB / 1.296 GB, free: 108.6 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.437e-05/4.186, allocations: 301.1 kB / 1.296 GB, free: 108.3 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02293/4.209, allocations: 16.26 MB / 1.312 GB, free: 92.03 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03129/4.24, allocations: 26.91 MB / 1.338 GB, free: 59.85 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.5034/4.743, allocations: 45.24 MB / 1.382 GB, free: 203.5 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004844/4.744, allocations: 107.6 kB / 1.382 GB, free: 203.5 MB / 0.6544 GB Notification: Performance of matching and sorting (n=2243) (initialization): time 0.08386/4.828, allocations: 43.44 MB / 1.425 GB, free: 185.7 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002551/4.828, allocations: 165.9 kB / 1.425 GB, free: 185.7 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007183/4.829, allocations: 372.7 kB / 1.425 GB, free: 185.7 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004087/4.833, allocations: 1.47 MB / 1.427 GB, free: 185.5 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02592/4.859, allocations: 5.283 MB / 1.432 GB, free: 182.1 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009926/4.869, allocations: 8.389 MB / 1.44 GB, free: 174.5 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02628/4.895, allocations: 2.135 MB / 1.442 GB, free: 173.1 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007093/4.902, allocations: 1.036 MB / 1.443 GB, free: 172.1 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1713 * Number of states: 0 () * Number of discrete variables: 48 (relativeSensor.arrowColor[3],relativeSensor.arrowColor[2],relativeSensor.arrowColor[1],relative_b1.arrowColor[3],relative_b1.arrowColor[2],relative_b1.arrowColor[1],relative_b2.arrowColor[3],relative_b2.arrowColor[2],relative_b2.arrowColor[1],relative_a2.arrowColor[3],relative_a2.arrowColor[2],relative_a2.arrowColor[1],relative_a1.arrowColor[3],relative_a1.arrowColor[2],relative_a1.arrowColor[1],BodyBox2.color[3],BodyBox2.color[2],BodyBox2.color[1],BodyBox2.body.sphereColor[3],BodyBox2.body.sphereColor[2],BodyBox2.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (2187): * Single equations (assignments): 2177 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,10,100.0%), (2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.02567/4.928, allocations: 7.841 MB / 1.451 GB, free: 165.2 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00432/4.933, allocations: 0.9085 MB / 1.452 GB, free: 164.8 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05285/4.985, allocations: 31.23 MB / 1.482 GB, free: 137.4 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001745/4.986, allocations: 93.45 kB / 1.482 GB, free: 137.3 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.661e-05/4.986, allocations: 4 kB / 1.482 GB, free: 137.3 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000148/4.986, allocations: 31.84 kB / 1.482 GB, free: 137.3 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1444/5.13, allocations: 73.36 MB / 1.554 GB, free: 61.09 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.887e-05/5.13, allocations: 8 kB / 1.554 GB, free: 61.08 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01385/5.144, allocations: 2.043 MB / 1.556 GB, free: 59.03 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003206/5.147, allocations: 0.9574 MB / 1.557 GB, free: 58.07 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003078/5.151, allocations: 87.27 kB / 1.557 GB, free: 57.98 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007017/5.158, allocations: 6.908 MB / 1.564 GB, free: 50.85 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/5.158, allocations: 4 kB / 1.564 GB, free: 50.84 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5645/5.722, allocations: 51.91 MB / 1.614 GB, free: 217.8 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01134/5.734, allocations: 4.029 MB / 1.618 GB, free: 216.2 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006106/5.74, allocations: 80.03 kB / 1.618 GB, free: 216.2 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01498/5.755, allocations: 1.573 MB / 1.62 GB, free: 216.1 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00406/5.759, allocations: 250.8 kB / 1.62 GB, free: 216.1 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002979/5.762, allocations: 129.1 kB / 1.62 GB, free: 216.1 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.02733/5.789, allocations: 6.335 MB / 1.627 GB, free: 213.9 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.184e-06/5.789, allocations: 0 / 1.627 GB, free: 213.9 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.02908/5.818, allocations: 4.344 MB / 1.631 GB, free: 213.6 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.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 (444): * Single equations (assignments): 434 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003732/5.822, allocations: 309.5 kB / 1.631 GB, free: 213.4 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.05613/5.878, allocations: 35.82 MB / 1.666 GB, free: 191.7 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.705e-05/5.878, allocations: 448 / 1.666 GB, free: 191.7 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.02033/5.899, allocations: 15.25 MB / 1.681 GB, free: 178 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01653/5.915, allocations: 1.498 MB / 1.682 GB, free: 176.8 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09499/6.01, allocations: 48.52 MB / 1.73 GB, free: 132.8 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03202/6.042, allocations: 11.02 MB / 1.741 GB, free: 121.8 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0241/6.067, allocations: 7.351 MB / 1.748 GB, free: 114.4 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00827/6.075, allocations: 0.619 MB / 1.748 GB, free: 113.8 MB / 0.6544 GB Notification: Performance of SimCode: time 2.194e-06/6.075, allocations: 0 / 1.748 GB, free: 113.8 MB / 0.6544 GB Notification: Performance of Templates: time 0.6539/6.729, allocations: 163.6 MB / 1.908 GB, free: 169.8 MB / 0.6544 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.RelativeSensor.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & ./ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.RelativeSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1)