Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+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: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002095/0.002095, allocations: 107 kB / 15.98 MB, free: 6.355 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.002431/0.002431, allocations: 189.2 kB / 16.91 MB, free: 6.191 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.431/1.431, allocations: 205.1 MB / 222.8 MB, free: 4.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3423/0.3423, allocations: 43.5 MB / 313.6 MB, free: 8.484 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: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 71.91 kB / 382.3 MB, free: 8.512 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1411, allocations: 57.77 MB / 440.1 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.3029/0.4441, allocations: 93.52 MB / 0.5211 GB, free: 4.363 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.05553/0.4997, allocations: 19.6 MB / 0.5403 GB, free: 7.184 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02802/0.5277, allocations: 433.9 kB / 0.5407 GB, free: 7.117 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03685/0.5646, allocations: 21.58 MB / 0.5617 GB, free: 4.527 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01452/0.5792, allocations: 3.842 MB / 0.5655 GB, free: 0.6719 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01134/0.5906, allocations: 4.621 MB / 0.57 GB, free: 12.04 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.01989/0.6105, allocations: 11.45 MB / 0.5812 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05027/0.6609, allocations: 34.6 MB / 0.615 GB, free: 13.84 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01699/0.6779, allocations: 7.624 MB / 0.6224 GB, free: 6.195 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3964/1.074, allocations: 10.31 MB / 0.6325 GB, free: 36.51 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01076/1.085, allocations: 2.33 MB / 0.6348 GB, free: 36.51 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01409/1.099, allocations: 3.655 MB / 0.6383 GB, free: 36.51 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01777/1.117, allocations: 9.136 MB / 0.6473 GB, free: 36.51 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0343/1.151, allocations: 10.48 MB / 0.6575 GB, free: 34.46 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04613/1.198, allocations: 34.11 MB / 0.6908 GB, free: 19.3 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/1.198, allocations: 0 / 0.6908 GB, free: 19.3 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.345e-06/1.198, allocations: 1.875 kB / 0.6908 GB, free: 19.3 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.001488/1.199, allocations: 0 / 0.6908 GB, free: 19.3 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.07081/1.27, allocations: 19.43 MB / 0.7098 GB, free: 6.695 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.422e-05/1.27, allocations: 15.23 kB / 0.7098 GB, free: 6.691 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01442/1.284, allocations: 2.971 MB / 0.7127 GB, free: 4.715 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.172/1.456, allocations: 13.85 MB / 0.7262 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02866/1.485, allocations: 10.25 MB / 0.7362 GB, free: 0.8867 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001902/1.487, allocations: 1.315 MB / 0.7375 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00882/1.496, allocations: 1.738 MB / 0.7392 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1125/1.609, allocations: 40.82 MB / 0.7791 GB, free: 4.18 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001001/1.61, allocations: 93.22 kB / 0.7792 GB, free: 4.125 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00787/1.617, allocations: 0.7589 MB / 0.7799 GB, free: 3.43 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007197/1.625, allocations: 4.18 MB / 0.784 GB, free: 15.31 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08073/1.705, allocations: 33.35 MB / 0.8166 GB, free: 14.28 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5318/2.237, allocations: 118.9 MB / 0.9327 GB, free: 88.95 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.05079/2.288, allocations: 21.93 MB / 0.9541 GB, free: 79.84 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007856/2.296, allocations: 6.946 MB / 0.9609 GB, free: 75.07 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03719/2.333, allocations: 27.29 MB / 0.9875 GB, free: 47.55 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.134e-05/2.333, allocations: 76.98 kB / 0.9876 GB, free: 47.47 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=372): time 9.408e-06/2.333, allocations: 0 / 0.9876 GB, free: 47.47 MB / 0.6075 GB Notification: Performance of matching and sorting (n=486): time 1.223/3.556, allocations: 323.5 MB / 1.304 GB, free: 105.4 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001201/3.556, allocations: 281.2 kB / 1.304 GB, free: 105.1 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01741/3.574, allocations: 10.25 MB / 1.314 GB, free: 94.85 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.002154/3.576, allocations: 100.2 kB / 1.314 GB, free: 94.75 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.005399/3.581, allocations: 10.82 MB / 1.324 GB, free: 83.94 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.003314/3.585, allocations: 1.889 MB / 1.326 GB, free: 82.07 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.009762/3.594, allocations: 3.711 MB / 1.33 GB, free: 78.34 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 4.721e-05/3.594, allocations: 309.1 kB / 1.33 GB, free: 78.04 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01844/3.613, allocations: 16.04 MB / 1.346 GB, free: 61.98 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2781/3.891, allocations: 26.67 MB / 1.372 GB, free: 249.4 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04482/3.936, allocations: 44.87 MB / 1.416 GB, free: 222.8 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003769/3.936, allocations: 107.8 kB / 1.416 GB, free: 222.8 MB / 0.6544 GB Notification: Performance of matching and sorting (n=2205) (initialization): time 0.07254/4.009, allocations: 42.42 MB / 1.457 GB, free: 204.8 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003003/4.009, allocations: 171 kB / 1.457 GB, free: 204.8 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006673/4.01, allocations: 374.9 kB / 1.458 GB, free: 204.8 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002132/4.012, allocations: 0.9544 MB / 1.459 GB, free: 204.7 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02137/4.033, allocations: 5.221 MB / 1.464 GB, free: 204.2 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006261/4.04, allocations: 6.935 MB / 1.471 GB, free: 198.4 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01683/4.057, allocations: 2.114 MB / 1.473 GB, free: 197 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003473/4.06, allocations: 1.021 MB / 1.474 GB, free: 196 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 (2149): * Single equations (assignments): 2139 * 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,11,100.0%), (1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01476/4.075, allocations: 7.835 MB / 1.481 GB, free: 189.1 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002189/4.077, allocations: 0.8717 MB / 1.482 GB, free: 188.7 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03535/4.112, allocations: 30.49 MB / 1.512 GB, free: 162.2 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.653e-05/4.113, allocations: 93.94 kB / 1.512 GB, free: 162.2 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.206e-05/4.113, allocations: 4 kB / 1.512 GB, free: 162.2 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.805e-05/4.113, allocations: 27.44 kB / 1.512 GB, free: 162.2 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08056/4.193, allocations: 72.82 MB / 1.583 GB, free: 87.93 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-05/4.193, allocations: 0 / 1.583 GB, free: 87.93 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01135/4.205, allocations: 2.055 MB / 1.585 GB, free: 85.88 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001259/4.206, allocations: 457.3 kB / 1.586 GB, free: 85.42 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001444/4.207, allocations: 81.7 kB / 1.586 GB, free: 85.34 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004436/4.212, allocations: 5.402 MB / 1.591 GB, free: 79.71 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/4.212, allocations: 0 / 1.591 GB, free: 79.71 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05709/4.269, allocations: 50.96 MB / 1.641 GB, free: 29.19 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00906/4.278, allocations: 3.959 MB / 1.645 GB, free: 25.36 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00348/4.282, allocations: 82.11 kB / 1.645 GB, free: 25.28 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01067/4.292, allocations: 1.544 MB / 1.646 GB, free: 23.73 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002377/4.295, allocations: 265.3 kB / 1.646 GB, free: 23.47 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009261/4.296, allocations: 125.9 kB / 1.647 GB, free: 23.35 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.2768/4.572, allocations: 6.359 MB / 1.653 GB, free: 250.3 MB / 0.6544 GB Notification: Performance of sort global known variables: time 5.41e-07/4.572, allocations: 0 / 1.653 GB, free: 250.3 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.02069/4.593, allocations: 4.281 MB / 1.657 GB, free: 250.3 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.07182/4.665, allocations: 51.8 MB / 1.708 GB, free: 229.2 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.07331/4.738, allocations: 49.51 MB / 1.756 GB, free: 193.1 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.135e-05/4.738, allocations: 7.969 kB / 1.756 GB, free: 193.1 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.01736/4.756, allocations: 15.08 MB / 1.771 GB, free: 179.5 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01072/4.767, allocations: 1.527 MB / 1.772 GB, free: 178.3 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.584/5.351, allocations: 269.8 MB / 2.036 GB, free: 184.5 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02738/5.378, allocations: 11.02 MB / 2.046 GB, free: 180.8 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.02521/5.403, allocations: 7.363 MB / 2.054 GB, free: 180.4 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01878/5.422, allocations: 7.781 MB / 2.061 GB, free: 173.7 MB / 0.6544 GB Notification: Performance of SimCode: time 1.172e-06/5.422, allocations: 7.938 kB / 2.061 GB, free: 173.7 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5338/5.956, allocations: 249.9 MB / 2.305 GB, free: 227 MB / 0.6544 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001653/5.956, allocations: 241.2 kB / 2.305 GB, free: 226.7 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.5/13.46, allocations: 0 / 2.305 GB, free: 226.7 MB / 0.6544 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/RelativeSensor/RelativeSensor.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.RelativeSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches