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.0007995/0.0007996, allocations: 92.83 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009856/0.0009857, allocations: 199.2 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.7 MB / 246.8 MB, free: 9.684 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2215/0.2215, allocations: 46.18 MB / 345.2 MB, free: 11.19 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002786/0.0002787, allocations: 8 kB / 419.6 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1066, allocations: 63.57 MB / 483.2 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.RelativeSensor): time 0.2678/0.3745, allocations: 71.36 MB / 0.5415 GB, free: 2.305 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03625/0.4108, allocations: 16.1 MB / 0.5573 GB, free: 7.566 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01442/0.4252, allocations: 350.5 kB / 0.5576 GB, free: 7.512 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004143/0.4294, allocations: 1.319 MB / 0.5589 GB, free: 6.496 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01037/0.4398, allocations: 3.617 MB / 0.5624 GB, free: 3.883 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005491/0.4453, allocations: 2.183 MB / 0.5646 GB, free: 2.246 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02146/0.4668, allocations: 18.66 MB / 0.5828 GB, free: 472 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06901/0.5358, allocations: 47.21 MB / 0.6289 GB, free: 1.035 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008489/0.5444, allocations: 3.514 MB / 0.6323 GB, free: 13.5 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01024/0.5546, allocations: 6.041 MB / 0.6382 GB, free: 7.441 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002423/0.5571, allocations: 0.5 MB / 0.6387 GB, free: 6.941 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005663/0.5628, allocations: 1.931 MB / 0.6406 GB, free: 5.012 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008025/0.5708, allocations: 6.308 MB / 0.6467 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0105/0.5814, allocations: 7.11 MB / 0.6537 GB, free: 7.527 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0317/0.6131, allocations: 30.38 MB / 0.6834 GB, free: 9.055 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.6131, allocations: 0 / 0.6834 GB, free: 9.055 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.295e-06/0.6131, allocations: 0 / 0.6834 GB, free: 9.055 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 0.001359/0.6145, allocations: 0 / 0.6834 GB, free: 9.055 MB / 0.5137 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.03949/0.654, allocations: 14.52 MB / 0.6975 GB, free: 10.43 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.534e-05/0.6541, allocations: 12.81 kB / 0.6975 GB, free: 10.41 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009713/0.6638, allocations: 2.803 MB / 0.7003 GB, free: 7.598 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6267/1.291, allocations: 13.96 MB / 0.7139 GB, free: 162.2 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01958/1.31, allocations: 9.391 MB / 0.7231 GB, free: 159 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001046/1.311, allocations: 1.275 MB / 0.7243 GB, free: 158.4 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005151/1.316, allocations: 1.677 MB / 0.726 GB, free: 157.9 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07899/1.395, allocations: 38.5 MB / 0.7636 GB, free: 125 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005915/1.396, allocations: 95.14 kB / 0.7637 GB, free: 125 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005178/1.401, allocations: 0.7299 MB / 0.7644 GB, free: 124.3 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004112/1.405, allocations: 3.557 MB / 0.7678 GB, free: 120.7 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06065/1.466, allocations: 31.27 MB / 0.7984 GB, free: 89.45 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1383/1.604, allocations: 112.2 MB / 0.9079 GB, free: 8.152 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06038/1.665, allocations: 21.78 MB / 0.9292 GB, free: 1.902 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.4817/2.146, allocations: 6.69 MB / 0.9357 GB, free: 191.1 MB / 0.5764 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03831/2.185, allocations: 26.41 MB / 0.9615 GB, free: 178.2 MB / 0.5764 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.722e-05/2.185, allocations: 76.53 kB / 0.9616 GB, free: 178.2 MB / 0.5764 GB Notification: Performance of pre-optimization done (n=336): time 8.856e-06/2.185, allocations: 0 / 0.9616 GB, free: 178.2 MB / 0.5764 GB Notification: Performance of matching and sorting (n=450): time 1.245/3.43, allocations: 322.6 MB / 1.277 GB, free: 91.41 MB / 0.5764 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.061e-05/3.431, allocations: 279.4 kB / 1.277 GB, free: 91.08 MB / 0.5764 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01126/3.442, allocations: 9.738 MB / 1.286 GB, free: 81.39 MB / 0.5764 GB Notification: Performance of collectPreVariables (initialization): time 0.001935/3.444, allocations: 99.34 kB / 1.286 GB, free: 81.29 MB / 0.5764 GB Notification: Performance of collectInitialEqns (initialization): time 0.004931/3.449, allocations: 10.18 MB / 1.296 GB, free: 71.1 MB / 0.5764 GB Notification: Performance of collectInitialBindings (initialization): time 0.003679/3.452, allocations: 1.764 MB / 1.298 GB, free: 69.35 MB / 0.5764 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004081/3.457, allocations: 1.305 MB / 1.299 GB, free: 68.04 MB / 0.5764 GB Notification: Performance of setup shared object (initialization): time 4.672e-05/3.457, allocations: 301.1 kB / 1.3 GB, free: 67.74 MB / 0.5764 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01841/3.475, allocations: 15.73 MB / 1.315 GB, free: 52.01 MB / 0.5764 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02213/3.497, allocations: 25.78 MB / 1.34 GB, free: 21.25 MB / 0.5764 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.281/3.778, allocations: 43.56 MB / 1.383 GB, free: 139.1 MB / 0.5764 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002576/3.779, allocations: 100.8 kB / 1.383 GB, free: 139.1 MB / 0.5764 GB Notification: Performance of matching and sorting (n=2078) (initialization): time 0.05696/3.835, allocations: 41.24 MB / 1.423 GB, free: 121.6 MB / 0.5764 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001727/3.836, allocations: 158.1 kB / 1.423 GB, free: 121.6 MB / 0.5764 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003584/3.836, allocations: 352.4 kB / 1.424 GB, free: 121.6 MB / 0.5764 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001851/3.838, allocations: 0.939 MB / 1.425 GB, free: 121.4 MB / 0.5764 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01873/3.857, allocations: 4.965 MB / 1.429 GB, free: 121 MB / 0.5764 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006057/3.863, allocations: 6.394 MB / 1.436 GB, free: 116.8 MB / 0.5764 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01838/3.881, allocations: 2.065 MB / 1.438 GB, free: 115.5 MB / 0.5764 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002977/3.884, allocations: 0.9613 MB / 1.439 GB, free: 114.6 MB / 0.5764 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.01166/3.896, allocations: 7.439 MB / 1.446 GB, free: 108 MB / 0.5764 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001907/3.898, allocations: 0.8249 MB / 1.447 GB, free: 107.6 MB / 0.5764 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03735/3.935, allocations: 29.96 MB / 1.476 GB, free: 80.79 MB / 0.5764 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.594e-05/3.935, allocations: 79.98 kB / 1.476 GB, free: 80.71 MB / 0.5764 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/3.935, allocations: 4 kB / 1.476 GB, free: 80.7 MB / 0.5764 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.222e-05/3.935, allocations: 23.92 kB / 1.476 GB, free: 80.68 MB / 0.5764 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07629/4.012, allocations: 71.32 MB / 1.546 GB, free: 6.457 MB / 0.5764 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.446e-05/4.012, allocations: 10.86 kB / 1.546 GB, free: 6.449 MB / 0.5764 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01118/4.023, allocations: 1.965 MB / 1.548 GB, free: 4.48 MB / 0.5764 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001212/4.024, allocations: 469.1 kB / 1.548 GB, free: 4.016 MB / 0.5764 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001103/4.025, allocations: 72 kB / 1.548 GB, free: 3.945 MB / 0.5764 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004539/4.03, allocations: 5.04 MB / 1.553 GB, free: 14.68 MB / 0.592 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/4.03, allocations: 3.938 kB / 1.553 GB, free: 14.68 MB / 0.592 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3058/4.335, allocations: 50.17 MB / 1.602 GB, free: 181.9 MB / 0.6077 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001809/4.337, allocations: 0.7954 MB / 1.603 GB, free: 181.8 MB / 0.6077 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002397/4.34, allocations: 69.34 kB / 1.603 GB, free: 181.7 MB / 0.6077 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009736/4.35, allocations: 1.573 MB / 1.604 GB, free: 181.6 MB / 0.6077 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00189/4.351, allocations: 236.4 kB / 1.605 GB, free: 181.6 MB / 0.6077 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007797/4.352, allocations: 117.9 kB / 1.605 GB, free: 181.6 MB / 0.6077 GB Notification: Performance of sorting global known variables: time 0.008732/4.361, allocations: 6.049 MB / 1.611 GB, free: 179.5 MB / 0.6077 GB Notification: Performance of sort global known variables: time 4.31e-07/4.361, allocations: 2 kB / 1.611 GB, free: 179.5 MB / 0.6077 GB Notification: Performance of remove unused functions: time 0.01441/4.375, allocations: 4.098 MB / 1.615 GB, free: 179.2 MB / 0.6077 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.05713/4.433, allocations: 51.01 MB / 1.665 GB, free: 147.9 MB / 0.6077 GB Notification: Performance of simCode: created initialization part: time 0.04208/4.475, allocations: 34.6 MB / 1.698 GB, free: 116 MB / 0.6077 GB Notification: Performance of simCode: created event and clocks part: time 9.167e-06/4.475, allocations: 4.438 kB / 1.698 GB, free: 116 MB / 0.6077 GB Notification: Performance of simCode: created simulation system equations: time 0.01715/4.492, allocations: 14.83 MB / 1.713 GB, free: 101.1 MB / 0.6077 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01107/4.503, allocations: 1.384 MB / 1.714 GB, free: 99.79 MB / 0.6077 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5429/5.046, allocations: 254.9 MB / 1.963 GB, free: 59.01 MB / 0.6077 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01566/5.062, allocations: 10.43 MB / 1.973 GB, free: 48.56 MB / 0.6077 GB Notification: Performance of simCode: alias equations: time 0.02091/5.083, allocations: 7.093 MB / 1.98 GB, free: 41.46 MB / 0.6077 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01321/5.096, allocations: 7.294 MB / 1.987 GB, free: 34.16 MB / 0.6077 GB Notification: Performance of SimCode: time 9.41e-07/5.096, allocations: 0 / 1.987 GB, free: 34.16 MB / 0.6077 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4887/5.584, allocations: 232.3 MB / 2.214 GB, free: 28.71 MB / 0.6077 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001327/5.585, allocations: 235 kB / 2.214 GB, free: 28.46 MB / 0.6077 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.914/12.5, allocations: 64 / 2.214 GB, free: 28.46 MB / 0.6077 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