Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_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.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+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.1_ModelicaTest.MultiBody.Sensors.RelativeSensor") translateModel(ModelicaTest.MultiBody.Sensors.RelativeSensor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_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.001383/0.001383, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001868/0.001868, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.695/1.695, allocations: 205.4 MB / 222.1 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.3593/0.3593, allocations: 38.04 MB / 308.4 MB, free: 10.46 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.1. 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.0005713/0.0005714, allocations: 19.94 kB / 376.4 MB, free: 15.2 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.131, allocations: 57.5 MB / 433.9 MB, free: 5.598 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.3243/0.4554, allocations: 79.75 MB / 0.5016 GB, free: 4.488 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.05103/0.5065, allocations: 19.62 MB / 0.5208 GB, free: 7.02 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01749/0.524, allocations: 429.6 kB / 0.5212 GB, free: 6.953 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01631/0.5404, allocations: 4.246 MB / 0.5253 GB, free: 5.523 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.04999/0.5904, allocations: 10.64 MB / 0.5357 GB, free: 276 kB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01346/0.6039, allocations: 1.838 MB / 0.5375 GB, free: 15.01 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.04775/0.6517, allocations: 29.36 MB / 0.5662 GB, free: 4.523 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05894/0.7107, allocations: 39.55 MB / 0.6048 GB, free: 12.86 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008151/0.7189, allocations: 3.061 MB / 0.6078 GB, free: 9.789 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009615/0.7286, allocations: 3.905 MB / 0.6116 GB, free: 5.871 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002713/0.7313, allocations: 0.5469 MB / 0.6122 GB, free: 5.324 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00695/0.7383, allocations: 1.67 MB / 0.6138 GB, free: 3.652 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01368/0.752, allocations: 6.079 MB / 0.6197 GB, free: 13.56 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009149/0.7613, allocations: 3.301 MB / 0.623 GB, free: 10.24 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5537/1.315, allocations: 28.2 MB / 0.6505 GB, free: 51.24 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/1.315, allocations: 0.5312 kB / 0.6505 GB, free: 51.24 MB / 494.1 MB Notification: Performance of FrontEnd: time 4.969e-06/1.315, allocations: 0 / 0.6505 GB, free: 51.24 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.001572/1.317, allocations: 0.5 kB / 0.6505 GB, free: 51.24 MB / 494.1 MB 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.05832/1.375, allocations: 16.08 MB / 0.6662 GB, free: 42.46 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.646e-05/1.375, allocations: 13.62 kB / 0.6662 GB, free: 42.46 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1801/1.555, allocations: 16.09 MB / 0.6819 GB, free: 36.93 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03372/1.589, allocations: 9.742 MB / 0.6914 GB, free: 34.52 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001453/1.591, allocations: 1.318 MB / 0.6927 GB, free: 34.48 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009822/1.6, allocations: 1.731 MB / 0.6944 GB, free: 34.46 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1122/1.713, allocations: 41.1 MB / 0.7345 GB, free: 9.105 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009621/1.714, allocations: 100.3 kB / 0.7346 GB, free: 9.051 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009775/1.723, allocations: 0.7589 MB / 0.7354 GB, free: 8.867 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006068/1.729, allocations: 4.17 MB / 0.7395 GB, free: 5.461 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07588/1.805, allocations: 33.74 MB / 0.7724 GB, free: 14.39 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5154/2.321, allocations: 119.2 MB / 0.8888 GB, free: 152.4 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07466/2.395, allocations: 22.3 MB / 0.9106 GB, free: 150 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04982/2.445, allocations: 27.49 MB / 0.9374 GB, free: 141.4 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.785e-05/2.445, allocations: 87 kB / 0.9375 GB, free: 141.3 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=372): time 8.235e-06/2.445, allocations: 0 / 0.9375 GB, free: 141.3 MB / 0.5763 GB Notification: Performance of matching and sorting (n=486): time 1.399/3.844, allocations: 327.3 MB / 1.257 GB, free: 83.25 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001483/3.844, allocations: 281.9 kB / 1.257 GB, free: 82.92 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0235/3.868, allocations: 10.44 MB / 1.268 GB, free: 72.49 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.003296/3.871, allocations: 103.2 kB / 1.268 GB, free: 72.38 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.008722/3.88, allocations: 10.81 MB / 1.278 GB, free: 61.57 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.005181/3.885, allocations: 1.889 MB / 1.28 GB, free: 59.7 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003505/3.889, allocations: 342.2 kB / 1.28 GB, free: 59.37 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.001177/3.89, allocations: 1.033 MB / 1.281 GB, free: 58.32 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02341/3.913, allocations: 15.97 MB / 1.297 GB, free: 42.34 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4091/4.323, allocations: 26.54 MB / 1.323 GB, free: 189.4 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03887/4.362, allocations: 19.99 MB / 1.343 GB, free: 180.1 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000673/4.362, allocations: 107.7 kB / 1.343 GB, free: 180.1 MB / 0.5763 GB Notification: Performance of matching and sorting (n=2205) (initialization): time 0.08628/4.449, allocations: 42.28 MB / 1.384 GB, free: 159.4 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003734/4.449, allocations: 164.2 kB / 1.384 GB, free: 159.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006777/4.45, allocations: 380.9 kB / 1.384 GB, free: 158.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002141/4.452, allocations: 1.004 MB / 1.385 GB, free: 158 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02409/4.476, allocations: 5.224 MB / 1.391 GB, free: 153.9 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007765/4.484, allocations: 6.528 MB / 1.397 GB, free: 147.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02461/4.508, allocations: 2.109 MB / 1.399 GB, free: 146.4 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006852/4.515, allocations: 1.02 MB / 1.4 GB, free: 145.4 MB / 0.5763 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 (2149): * Single equations (assignments): 2139 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0241/4.539, allocations: 7.836 MB / 1.408 GB, free: 138.5 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003527/4.543, allocations: 0.878 MB / 1.408 GB, free: 138.1 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04821/4.591, allocations: 30.47 MB / 1.438 GB, free: 111.2 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002187/4.592, allocations: 96.81 kB / 1.438 GB, free: 111.1 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.138e-05/4.592, allocations: 4 kB / 1.438 GB, free: 111.1 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001404/4.592, allocations: 23.91 kB / 1.438 GB, free: 111.1 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1171/4.709, allocations: 72.82 MB / 1.509 GB, free: 35.44 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.003e-05/4.709, allocations: 0 / 1.509 GB, free: 35.44 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01353/4.722, allocations: 2.047 MB / 1.511 GB, free: 33.39 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00147/4.724, allocations: 465.2 kB / 1.512 GB, free: 32.93 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002588/4.727, allocations: 79.98 kB / 1.512 GB, free: 32.85 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004724/4.731, allocations: 5.146 MB / 1.517 GB, free: 27.48 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/4.731, allocations: 7.875 kB / 1.517 GB, free: 27.48 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4674/5.199, allocations: 51.07 MB / 1.567 GB, free: 168.3 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01442/5.213, allocations: 3.978 MB / 1.571 GB, free: 166.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005925/5.219, allocations: 76.53 kB / 1.571 GB, free: 166.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01486/5.234, allocations: 1.592 MB / 1.572 GB, free: 166.7 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003764/5.238, allocations: 249.8 kB / 1.573 GB, free: 166.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003179/5.241, allocations: 133.1 kB / 1.573 GB, free: 166.6 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.0189/5.26, allocations: 6.5 MB / 1.579 GB, free: 164.4 MB / 0.5763 GB Notification: Performance of sort global known variables: time 5.51e-07/5.26, allocations: 0 / 1.579 GB, free: 164.4 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.02963/5.29, allocations: 4.305 MB / 1.583 GB, free: 164 MB / 0.5763 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004534/5.294, allocations: 317.8 kB / 1.584 GB, free: 163.9 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.05218/5.347, allocations: 35.27 MB / 1.618 GB, free: 135.6 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.283e-05/5.347, allocations: 4.625 kB / 1.618 GB, free: 135.6 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.0201/5.367, allocations: 15.06 MB / 1.633 GB, free: 122 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01098/5.378, allocations: 1.328 MB / 1.634 GB, free: 120.9 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1022/5.48, allocations: 54.69 MB / 1.687 GB, free: 67.96 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02982/5.51, allocations: 11.33 MB / 1.699 GB, free: 56.59 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.02596/5.536, allocations: 7.372 MB / 1.706 GB, free: 49.21 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008158/5.544, allocations: 0.6322 MB / 1.706 GB, free: 48.57 MB / 0.5763 GB Notification: Performance of SimCode: time 1.122e-06/5.544, allocations: 0 / 1.706 GB, free: 48.57 MB / 0.5763 GB Notification: Performance of Templates: time 0.5596/6.104, allocations: 144.4 MB / 1.847 GB, free: 100.4 MB / 0.5763 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.RelativeSensor.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & ./ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.RelativeSensor -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1) Environment - environmentSimulation: