Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_RelativeSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009827/0.0009823, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001071/0.001071, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.25/1.25, allocations: 227.4 MB / 246.3 MB, free: 9.035 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2047/0.2047, allocations: 46.1 MB / 343.6 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 81.12 kB / 416.9 MB, free: 20.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09654/0.09794, allocations: 62.45 MB / 479.4 MB, free: 5.613 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.2457/0.3436, allocations: 73.3 MB / 0.5397 GB, free: 1.594 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03127/0.3749, allocations: 16.15 MB / 0.5555 GB, free: 6.566 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01195/0.3869, allocations: 358 kB / 0.5558 GB, free: 6.508 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03132/0.4183, allocations: 22.28 MB / 0.5776 GB, free: 2.734 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008178/0.4265, allocations: 3.597 MB / 0.5811 GB, free: 15.12 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007909/0.4344, allocations: 4.675 MB / 0.5857 GB, free: 10.44 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01708/0.4515, allocations: 18.68 MB / 0.6039 GB, free: 7.73 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03316/0.4847, allocations: 32.23 MB / 0.6354 GB, free: 7.312 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007326/0.492, allocations: 6.291 MB / 0.6415 GB, free: 1.008 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01031/0.5024, allocations: 9.5 MB / 0.6508 GB, free: 7.484 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002621/0.505, allocations: 1.613 MB / 0.6524 GB, free: 5.871 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004734/0.5097, allocations: 3.052 MB / 0.6554 GB, free: 2.816 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005841/0.5156, allocations: 8.057 MB / 0.6632 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.008074/0.5237, allocations: 9.194 MB / 0.6722 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02345/0.5471, allocations: 31.91 MB / 0.7034 GB, free: 1.508 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.5472, allocations: 4 kB / 0.7034 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.723e-06/0.5472, allocations: 0 / 0.7034 GB, free: 1.504 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0005736/0.5478, allocations: 0 / 0.7034 GB, free: 1.504 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5575 * Number of variables: 5575 Notification: Performance of Generate backend data structure: time 0.3274/0.8752, allocations: 18.52 MB / 0.7215 GB, free: 168.6 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.8752, allocations: 11.22 kB / 0.7215 GB, free: 168.6 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008202/0.8834, allocations: 2.809 MB / 0.7242 GB, free: 166.7 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1414/1.025, allocations: 13.62 MB / 0.7375 GB, free: 157.4 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02426/1.049, allocations: 9.392 MB / 0.7467 GB, free: 148 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001176/1.05, allocations: 1.271 MB / 0.7479 GB, free: 146.8 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006279/1.057, allocations: 1.682 MB / 0.7496 GB, free: 145.1 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07765/1.134, allocations: 38.37 MB / 0.7871 GB, free: 105.7 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009688/1.135, allocations: 96.55 kB / 0.7871 GB, free: 105.6 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006413/1.142, allocations: 0.7274 MB / 0.7879 GB, free: 104.9 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004644/1.146, allocations: 3.553 MB / 0.7913 GB, free: 101.3 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05968/1.206, allocations: 31.15 MB / 0.8217 GB, free: 70.16 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6292/1.835, allocations: 112.1 MB / 0.9312 GB, free: 126.4 MB / 0.5608 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06071/1.896, allocations: 21.49 MB / 0.9522 GB, free: 124.1 MB / 0.5608 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006899/1.903, allocations: 6.696 MB / 0.9587 GB, free: 124 MB / 0.5608 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03409/1.937, allocations: 26.43 MB / 0.9845 GB, free: 110.4 MB / 0.5608 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.22e-05/1.937, allocations: 74.52 kB / 0.9846 GB, free: 110.3 MB / 0.5608 GB Notification: Performance of pre-optimization done (n=336): time 7.634e-06/1.937, allocations: 0 / 0.9846 GB, free: 110.3 MB / 0.5608 GB Notification: Performance of matching and sorting (n=450): time 1.235/3.172, allocations: 321.1 MB / 1.298 GB, free: 130.5 MB / 0.6233 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.392e-05/3.173, allocations: 281.7 kB / 1.298 GB, free: 130.2 MB / 0.6233 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01325/3.186, allocations: 9.742 MB / 1.308 GB, free: 120.5 MB / 0.6233 GB Notification: Performance of collectPreVariables (initialization): time 0.001972/3.188, allocations: 93.7 kB / 1.308 GB, free: 120.4 MB / 0.6233 GB Notification: Performance of collectInitialEqns (initialization): time 0.004444/3.192, allocations: 10.19 MB / 1.318 GB, free: 110.2 MB / 0.6233 GB Notification: Performance of collectInitialBindings (initialization): time 0.002915/3.195, allocations: 1.752 MB / 1.32 GB, free: 108.4 MB / 0.6233 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006631/3.202, allocations: 3.524 MB / 1.323 GB, free: 104.9 MB / 0.6233 GB Notification: Performance of setup shared object (initialization): time 4.711e-05/3.202, allocations: 301.1 kB / 1.323 GB, free: 104.6 MB / 0.6233 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01827/3.22, allocations: 15.73 MB / 1.339 GB, free: 88.87 MB / 0.6233 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02335/3.244, allocations: 25.79 MB / 1.364 GB, free: 58.1 MB / 0.6233 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2959/3.539, allocations: 43.55 MB / 1.407 GB, free: 198.9 MB / 0.6233 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003404/3.54, allocations: 105.2 kB / 1.407 GB, free: 198.9 MB / 0.6233 GB Notification: Performance of matching and sorting (n=2078) (initialization): time 0.06298/3.603, allocations: 41.24 MB / 1.447 GB, free: 181.4 MB / 0.6233 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002122/3.603, allocations: 160 kB / 1.447 GB, free: 181.4 MB / 0.6233 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000459/3.604, allocations: 359.2 kB / 1.447 GB, free: 181.4 MB / 0.6233 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001731/3.605, allocations: 0.9295 MB / 1.448 GB, free: 181.3 MB / 0.6233 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01813/3.623, allocations: 4.972 MB / 1.453 GB, free: 180.8 MB / 0.6233 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006283/3.63, allocations: 6.391 MB / 1.459 GB, free: 176.1 MB / 0.6233 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01981/3.65, allocations: 2.063 MB / 1.461 GB, free: 174.8 MB / 0.6233 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004279/3.654, allocations: 0.9642 MB / 1.462 GB, free: 173.9 MB / 0.6233 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1622 * Number of states: 0 () * Number of discrete variables: 58 (relativeSensor.arrow.twoHeadedArrow,relativeSensor.arrow.headAtOrigin,relative_b1.arrow.twoHeadedArrow,relative_b1.arrow.headAtOrigin,relative_b2.arrow.twoHeadedArrow,relative_b2.arrow.headAtOrigin,relative_a2.arrow.twoHeadedArrow,relative_a2.arrow.headAtOrigin,relative_a1.arrow.twoHeadedArrow,relative_a1.arrow.headAtOrigin,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 (2022): * Single equations (assignments): 2012 * 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.01428/3.668, allocations: 7.443 MB / 1.47 GB, free: 167.3 MB / 0.6233 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002327/3.671, allocations: 0.8189 MB / 1.47 GB, free: 167 MB / 0.6233 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03496/3.706, allocations: 29.95 MB / 1.5 GB, free: 138.6 MB / 0.6233 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001199/3.706, allocations: 92.48 kB / 1.5 GB, free: 138.5 MB / 0.6233 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-05/3.706, allocations: 4 kB / 1.5 GB, free: 138.5 MB / 0.6233 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.81e-05/3.706, allocations: 19.92 kB / 1.5 GB, free: 138.5 MB / 0.6233 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08379/3.79, allocations: 71.33 MB / 1.569 GB, free: 64.29 MB / 0.6233 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-05/3.79, allocations: 0 / 1.569 GB, free: 64.29 MB / 0.6233 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01001/3.8, allocations: 1.965 MB / 1.571 GB, free: 62.32 MB / 0.6233 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001259/3.801, allocations: 465.1 kB / 1.572 GB, free: 61.86 MB / 0.6233 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009926/3.802, allocations: 74.27 kB / 1.572 GB, free: 61.79 MB / 0.6233 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00428/3.806, allocations: 5.04 MB / 1.577 GB, free: 56.53 MB / 0.6233 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/3.806, allocations: 8 kB / 1.577 GB, free: 56.52 MB / 0.6233 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3076/4.114, allocations: 50.18 MB / 1.626 GB, free: 212.2 MB / 0.6233 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002684/4.117, allocations: 0.7838 MB / 1.627 GB, free: 212.1 MB / 0.6233 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004243/4.121, allocations: 71.45 kB / 1.627 GB, free: 212 MB / 0.6233 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0112/4.132, allocations: 1.528 MB / 1.628 GB, free: 212 MB / 0.6233 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002918/4.135, allocations: 236 kB / 1.628 GB, free: 212 MB / 0.6233 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001357/4.136, allocations: 121.6 kB / 1.628 GB, free: 211.9 MB / 0.6233 GB Notification: Performance of sorting global known variables: time 0.01216/4.148, allocations: 6.046 MB / 1.634 GB, free: 209.9 MB / 0.6233 GB Notification: Performance of sort global known variables: time 4.61e-07/4.148, allocations: 0 / 1.634 GB, free: 209.9 MB / 0.6233 GB Notification: Performance of remove unused functions: time 0.01985/4.168, allocations: 4.098 MB / 1.638 GB, free: 209.6 MB / 0.6233 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 (404): * Single equations (assignments): 394 * 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.06184/4.23, allocations: 51.02 MB / 1.688 GB, free: 176.8 MB / 0.6233 GB Notification: Performance of simCode: created initialization part: time 0.04147/4.272, allocations: 34.59 MB / 1.722 GB, free: 143.9 MB / 0.6233 GB Notification: Performance of simCode: created event and clocks part: time 1.017e-05/4.272, allocations: 4.438 kB / 1.722 GB, free: 143.9 MB / 0.6233 GB Notification: Performance of simCode: created simulation system equations: time 0.01734/4.289, allocations: 14.84 MB / 1.737 GB, free: 129.1 MB / 0.6233 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01098/4.3, allocations: 1.372 MB / 1.738 GB, free: 127.8 MB / 0.6233 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5362/4.836, allocations: 254.9 MB / 1.987 GB, free: 107.5 MB / 0.6233 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01759/4.854, allocations: 10.43 MB / 1.997 GB, free: 97.05 MB / 0.6233 GB Notification: Performance of simCode: alias equations: time 0.02077/4.875, allocations: 7.097 MB / 2.004 GB, free: 89.95 MB / 0.6233 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01452/4.889, allocations: 7.302 MB / 2.011 GB, free: 82.64 MB / 0.6233 GB Notification: Performance of SimCode: time 1.062e-06/4.889, allocations: 0 / 2.011 GB, free: 82.64 MB / 0.6233 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5392/5.429, allocations: 235.3 MB / 2.241 GB, free: 91.18 MB / 0.6233 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001401/5.429, allocations: 230.3 kB / 2.241 GB, free: 90.93 MB / 0.6233 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.252/12.68, allocations: 0 / 2.241 GB, free: 90.93 MB / 0.6233 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_RelativeSensor_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_RelativeSensor.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/RelativeSensor/RelativeSensor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.RelativeSensor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches