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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001779/0.001779, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002215/0.002215, allocations: 213.6 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.503/1.503, allocations: 230.6 MB / 257.5 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2318/0.2318, allocations: 44.92 MB / 358.8 MB, free: 6.293 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002119/0.002119, allocations: 75.88 kB / 0.4931 GB, free: 10.73 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3374/0.3395, allocations: 65.46 MB / 0.557 GB, free: 7.539 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01666/0.3562, allocations: 12.02 MB / 0.5687 GB, free: 11.7 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01064/0.3668, allocations: 4.109 MB / 0.5728 GB, free: 7.582 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002596/0.3694, allocations: 83.75 kB / 0.5728 GB, free: 7.5 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004118/0.3736, allocations: 1.689 MB / 0.5745 GB, free: 5.805 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004473/0.378, allocations: 1.572 MB / 0.576 GB, free: 4.227 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002829/0.3809, allocations: 1.192 MB / 0.5772 GB, free: 3.031 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006197/0.387, allocations: 3.521 MB / 0.5806 GB, free: 15.5 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003858/0.3909, allocations: 1.984 MB / 0.5826 GB, free: 13.46 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002405/0.3933, allocations: 1.172 MB / 0.5837 GB, free: 12.29 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003227/0.3965, allocations: 1.736 MB / 0.5854 GB, free: 10.54 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001133/0.3977, allocations: 236 kB / 0.5856 GB, free: 10.31 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00214/0.3998, allocations: 0.7372 MB / 0.5864 GB, free: 9.574 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002545/0.4024, allocations: 1.585 MB / 0.5879 GB, free: 7.984 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003779/0.4061, allocations: 1.867 MB / 0.5897 GB, free: 6.105 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01021/0.4163, allocations: 6.146 MB / 0.5957 GB, free: 15.93 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.323e-06/0.4163, allocations: 4 kB / 0.5957 GB, free: 15.93 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4163, allocations: 0 / 0.5957 GB, free: 15.93 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002516/0.4166, allocations: 0 / 0.5957 GB, free: 15.93 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1539 * Number of variables: 1539 Notification: Performance of Generate backend data structure: time 0.01086/0.4275, allocations: 4.011 MB / 0.5996 GB, free: 11.86 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.214e-05/0.4275, allocations: 12.03 kB / 0.5997 GB, free: 11.85 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002/0.4295, allocations: 0.7163 MB / 0.6004 GB, free: 11.12 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01067/0.4402, allocations: 2.997 MB / 0.6033 GB, free: 8.117 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004945/0.4451, allocations: 1.755 MB / 0.605 GB, free: 6.328 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002557/0.4454, allocations: 200.9 kB / 0.6052 GB, free: 6.129 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001284/0.4467, allocations: 247.8 kB / 0.6054 GB, free: 5.887 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01925/0.4659, allocations: 10.04 MB / 0.6152 GB, free: 11.2 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001146/0.466, allocations: 31.69 kB / 0.6153 GB, free: 11.16 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008497/0.4669, allocations: 123.8 kB / 0.6154 GB, free: 11.04 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004032/0.4709, allocations: 2.314 MB / 0.6176 GB, free: 8.727 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01819/0.4891, allocations: 8.933 MB / 0.6264 GB, free: 15.79 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05572/0.5448, allocations: 37.48 MB / 0.663 GB, free: 9.156 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005695/0.5505, allocations: 2.342 MB / 0.6652 GB, free: 6.758 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002053/0.5526, allocations: 1.136 MB / 0.6664 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01033/0.5629, allocations: 4.716 MB / 0.671 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.014e-05/0.5629, allocations: 55.09 kB / 0.671 GB, free: 0.7969 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=150): time 4.678e-06/0.5629, allocations: 0 / 0.671 GB, free: 0.7969 MB / 0.4981 GB Notification: Performance of matching and sorting (n=150): time 0.007814/0.5708, allocations: 3.34 MB / 0.6743 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001246/0.5709, allocations: 178.8 kB / 0.6744 GB, free: 13.25 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00644/0.5773, allocations: 3.834 MB / 0.6782 GB, free: 9.418 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002057/0.5775, allocations: 45.69 kB / 0.6782 GB, free: 9.367 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002798/0.5803, allocations: 3.314 MB / 0.6815 GB, free: 6.02 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008349/0.5812, allocations: 0.636 MB / 0.6821 GB, free: 5.379 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001806/0.583, allocations: 1.306 MB / 0.6834 GB, free: 4.062 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001426/0.5831, allocations: 305.1 kB / 0.6837 GB, free: 3.762 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003112/0.5862, allocations: 1.961 MB / 0.6856 GB, free: 1.797 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006883/0.5931, allocations: 6.1 MB / 0.6915 GB, free: 9.621 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01129/0.6044, allocations: 8.797 MB / 0.7001 GB, free: 14.75 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001235/0.6045, allocations: 40 kB / 0.7002 GB, free: 14.71 MB / 0.545 GB Notification: Performance of matching and sorting (n=849) (initialization): time 0.01503/0.6196, allocations: 7.733 MB / 0.7077 GB, free: 6.973 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001604/0.6197, allocations: 68 kB / 0.7078 GB, free: 6.906 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000243/0.62, allocations: 148 kB / 0.7079 GB, free: 6.762 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000252/0.6202, allocations: 196.8 kB / 0.7081 GB, free: 6.57 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004849/0.6251, allocations: 1.454 MB / 0.7095 GB, free: 5.113 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003169/0.6254, allocations: 290.9 kB / 0.7098 GB, free: 4.828 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004984/0.6304, allocations: 0.9345 MB / 0.7107 GB, free: 3.887 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00104/0.6314, allocations: 400 kB / 0.7111 GB, free: 3.496 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 673 * Number of states: 0 () * Number of discrete variables: 23 (freeMotion.arrow.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 (791): * Single equations (assignments): 783 * 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.00406/0.6355, allocations: 2.195 MB / 0.7132 GB, free: 1.285 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006788/0.6361, allocations: 333.7 kB / 0.7136 GB, free: 0.957 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001279/0.6374, allocations: 411 kB / 0.7139 GB, free: 0.5508 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.706e-05/0.6375, allocations: 36 kB / 0.714 GB, free: 0.5156 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.716e-05/0.6375, allocations: 4 kB / 0.714 GB, free: 0.5117 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.647e-05/0.6375, allocations: 7.969 kB / 0.714 GB, free: 0.5039 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01127/0.6488, allocations: 5.442 MB / 0.7193 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.559e-05/0.6488, allocations: 4 kB / 0.7193 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001006/0.6498, allocations: 203.7 kB / 0.7195 GB, free: 10.74 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.601e-05/0.6498, allocations: 11.94 kB / 0.7195 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001094/0.6499, allocations: 31.98 kB / 0.7195 GB, free: 10.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.425e-05/0.65, allocations: 11.98 kB / 0.7196 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.026e-05/0.65, allocations: 16.41 kB / 0.7196 GB, free: 10.67 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003349/0.6533, allocations: 2.55 MB / 0.7221 GB, free: 8.031 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007652/0.6541, allocations: 313.4 kB / 0.7224 GB, free: 7.723 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003309/0.6544, allocations: 28 kB / 0.7224 GB, free: 7.695 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009507/0.6554, allocations: 67.91 kB / 0.7225 GB, free: 7.629 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001771/0.6555, allocations: 80.23 kB / 0.7225 GB, free: 7.551 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001003/0.6556, allocations: 44 kB / 0.7226 GB, free: 7.508 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00388/0.6595, allocations: 2.338 MB / 0.7249 GB, free: 5.184 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.7e-07/0.6595, allocations: 0 / 0.7249 GB, free: 5.184 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004904/0.6644, allocations: 1.072 MB / 0.7259 GB, free: 4.109 MB / 0.5606 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.004395/0.6688, allocations: 3.186 MB / 0.729 GB, free: 0.8359 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.2587/0.9275, allocations: 4.252 MB / 0.7332 GB, free: 160.8 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/0.9275, allocations: 3.938 kB / 0.7332 GB, free: 160.8 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001071/0.9286, allocations: 0.8714 MB / 0.734 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001912/0.9305, allocations: 355.9 kB / 0.7344 GB, free: 160.4 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04456/0.975, allocations: 41.8 MB / 0.7752 GB, free: 117.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002808/0.9779, allocations: 3.155 MB / 0.7783 GB, free: 114.7 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004069/0.9819, allocations: 2.227 MB / 0.7804 GB, free: 112.4 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00243/0.9843, allocations: 1.663 MB / 0.7821 GB, free: 110.8 MB / 0.5606 GB Notification: Performance of SimCode: time 1.804e-06/0.9844, allocations: 0 / 0.7821 GB, free: 110.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09174/1.076, allocations: 56.58 MB / 0.8373 GB, free: 54.55 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.97/23.04, allocations: 6.906 kB / 0.8373 GB, free: 54.54 MB / 0.5606 GB " [Timeout remaining time 637] (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 --stepSize=0.000219912 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 26.319514136062935]