Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.AbsoluteSensor2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",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.001903/0.001903, allocations: 110.4 kB / 17.78 MB, free: 5.312 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.001849/0.001849, allocations: 187.1 kB / 18.71 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.361/1.361, allocations: 222.9 MB / 242.4 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2089/0.2089, allocations: 44.19 MB / 336.8 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 67.88 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3136/0.3149, allocations: 60.83 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01216/0.3271, allocations: 12.05 MB / 0.5302 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008279/0.3354, allocations: 4.028 MB / 0.5341 GB, free: 7.734 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001864/0.3373, allocations: 80.31 kB / 0.5342 GB, free: 7.723 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002995/0.3404, allocations: 1.671 MB / 0.5358 GB, free: 6.594 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003412/0.3438, allocations: 1.555 MB / 0.5373 GB, free: 5.527 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002168/0.346, allocations: 1.178 MB / 0.5385 GB, free: 4.75 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004413/0.3504, allocations: 3.523 MB / 0.5419 GB, free: 2.875 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002708/0.3531, allocations: 2.484 MB / 0.5444 GB, free: 1.402 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001553/0.3547, allocations: 1.171 MB / 0.5455 GB, free: 316 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001798/0.3565, allocations: 1.596 MB / 0.5471 GB, free: 14.71 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004188/0.3569, allocations: 240 kB / 0.5473 GB, free: 14.47 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001215/0.3581, allocations: 0.7139 MB / 0.548 GB, free: 13.76 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001218/0.3594, allocations: 1.601 MB / 0.5496 GB, free: 12.15 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001519/0.3609, allocations: 1.913 MB / 0.5514 GB, free: 10.23 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005637/0.3666, allocations: 6.293 MB / 0.5576 GB, free: 3.91 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3666, allocations: 0 / 0.5576 GB, free: 3.91 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3666, allocations: 0 / 0.5576 GB, free: 3.91 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001258/0.3667, allocations: 4 kB / 0.5576 GB, free: 3.906 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1568 * Number of variables: 1568 Notification: Performance of Generate backend data structure: time 0.006453/0.3732, allocations: 4.07 MB / 0.5615 GB, free: 15.77 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.3732, allocations: 12.03 kB / 0.5616 GB, free: 15.75 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008198/0.3741, allocations: 0.7249 MB / 0.5623 GB, free: 15.02 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009983/0.3841, allocations: 2.998 MB / 0.5652 GB, free: 12.01 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004545/0.3886, allocations: 1.838 MB / 0.567 GB, free: 10.12 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000153/0.3888, allocations: 196.9 kB / 0.5672 GB, free: 9.922 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005675/0.3894, allocations: 251.8 kB / 0.5674 GB, free: 9.676 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01376/0.4031, allocations: 10.23 MB / 0.5774 GB, free: 14.79 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.637e-05/0.4032, allocations: 35.67 kB / 0.5774 GB, free: 14.75 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003618/0.4036, allocations: 123.8 kB / 0.5776 GB, free: 14.63 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003525/0.4071, allocations: 2.38 MB / 0.5799 GB, free: 12.25 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01429/0.4214, allocations: 9.074 MB / 0.5887 GB, free: 3.168 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04508/0.4666, allocations: 37.97 MB / 0.6258 GB, free: 12.04 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005713/0.4723, allocations: 3.384 MB / 0.6291 GB, free: 8.387 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001853/0.4742, allocations: 1.23 MB / 0.6303 GB, free: 7.133 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009522/0.4837, allocations: 5.179 MB / 0.6354 GB, free: 1.801 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.553e-05/0.4838, allocations: 47.06 kB / 0.6354 GB, free: 1.746 MB / 494.1 MB Notification: Performance of pre-optimization done (n=150): time 5.1e-06/0.4838, allocations: 0 / 0.6354 GB, free: 1.746 MB / 494.1 MB Notification: Performance of matching and sorting (n=150): time 0.006946/0.4908, allocations: 3.324 MB / 0.6387 GB, free: 14.42 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.86e-05/0.4909, allocations: 170.7 kB / 0.6388 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005406/0.4963, allocations: 3.873 MB / 0.6426 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.000128/0.4965, allocations: 41.7 kB / 0.6427 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002112/0.4986, allocations: 3.223 MB / 0.6458 GB, free: 7.031 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005783/0.4992, allocations: 0.6137 MB / 0.6464 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00152/0.5007, allocations: 1.309 MB / 0.6477 GB, free: 5.09 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001022/0.5008, allocations: 305.1 kB / 0.648 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002655/0.5035, allocations: 1.968 MB / 0.6499 GB, free: 2.816 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005785/0.5093, allocations: 6.148 MB / 0.6559 GB, free: 10.57 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009641/0.5189, allocations: 8.862 MB / 0.6646 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001385/0.5191, allocations: 44 kB / 0.6646 GB, free: 15.57 MB / 0.5294 GB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01316/0.5323, allocations: 7.746 MB / 0.6722 GB, free: 7.82 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001142/0.5324, allocations: 68 kB / 0.6722 GB, free: 7.754 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000198/0.5326, allocations: 148.9 kB / 0.6724 GB, free: 7.609 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002062/0.5328, allocations: 196 kB / 0.6726 GB, free: 7.418 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004341/0.5372, allocations: 1.478 MB / 0.674 GB, free: 5.938 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002355/0.5374, allocations: 286.9 kB / 0.6743 GB, free: 5.656 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00423/0.5417, allocations: 0.916 MB / 0.6752 GB, free: 4.73 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006855/0.5424, allocations: 408 kB / 0.6756 GB, free: 4.332 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 679 * Number of states: 0 () * Number of discrete variables: 23 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[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 (797): * Single equations (assignments): 789 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003221/0.5456, allocations: 2.23 MB / 0.6777 GB, free: 2.09 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005274/0.5461, allocations: 311.9 kB / 0.678 GB, free: 1.781 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007904/0.5469, allocations: 415.4 kB / 0.6784 GB, free: 1.371 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.89e-05/0.547, allocations: 35.98 kB / 0.6785 GB, free: 1.336 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/0.547, allocations: 0 / 0.6785 GB, free: 1.336 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/0.547, allocations: 11.91 kB / 0.6785 GB, free: 1.324 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01033/0.5574, allocations: 5.535 MB / 0.6839 GB, free: 11.66 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.927e-05/0.5574, allocations: 4 kB / 0.6839 GB, free: 11.66 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009596/0.5584, allocations: 211.7 kB / 0.6841 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.113e-05/0.5584, allocations: 8 kB / 0.6841 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001059/0.5585, allocations: 28.66 kB / 0.6841 GB, free: 11.42 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.328e-05/0.5586, allocations: 8 kB / 0.6841 GB, free: 11.41 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.887e-06/0.5586, allocations: 15.94 kB / 0.6842 GB, free: 11.39 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003029/0.5616, allocations: 2.525 MB / 0.6866 GB, free: 8.785 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007816/0.5624, allocations: 380.6 kB / 0.687 GB, free: 8.391 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005069/0.5629, allocations: 31.97 kB / 0.687 GB, free: 8.359 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001257/0.5642, allocations: 59.92 kB / 0.6871 GB, free: 8.301 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001847/0.5644, allocations: 80.34 kB / 0.6871 GB, free: 8.223 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/0.5645, allocations: 44 kB / 0.6872 GB, free: 8.18 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004291/0.5688, allocations: 2.366 MB / 0.6895 GB, free: 5.828 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5688, allocations: 192 / 0.6895 GB, free: 5.828 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004869/0.5737, allocations: 1.106 MB / 0.6906 GB, free: 4.719 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 0 () * 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 (108): * Single equations (assignments): 102 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003675/0.5774, allocations: 3.162 MB / 0.6937 GB, free: 1.461 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006798/0.5842, allocations: 4.463 MB / 0.698 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.636e-06/0.5842, allocations: 0 / 0.698 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001277/0.5855, allocations: 0.9565 MB / 0.699 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002503/0.588, allocations: 371.5 kB / 0.6993 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2867/0.8747, allocations: 42.04 MB / 0.7404 GB, free: 171.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003504/0.8783, allocations: 3.202 MB / 0.7435 GB, free: 170.3 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004652/0.883, allocations: 2.243 MB / 0.7457 GB, free: 170.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002108/0.8851, allocations: 1.698 MB / 0.7473 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of SimCode: time 9.32e-07/0.8851, allocations: 0 / 0.7473 GB, free: 168.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07487/0.96, allocations: 52.19 MB / 0.7983 GB, free: 123.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.53/18.49, allocations: 24.16 kB / 0.7983 GB, free: 123.3 MB / 0.5762 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/AbsoluteSensor2/AbsoluteSensor2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches