Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001459/0.001459, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001721/0.001721, allocations: 206.1 kB / 24.52 MB, free: 4.156 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.558/1.558, allocations: 230.6 MB / 258.3 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2413/0.2413, allocations: 46.93 MB / 361.6 MB, free: 4.277 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002247/0.002247, allocations: 67.89 kB / 0.4969 GB, free: 7.918 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3286/0.3308, allocations: 66.03 MB / 0.5614 GB, free: 4.492 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01557/0.3464, allocations: 12.01 MB / 0.5731 GB, free: 8.422 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.009509/0.3559, allocations: 4.109 MB / 0.5771 GB, free: 4.301 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002093/0.358, allocations: 87.75 kB / 0.5772 GB, free: 4.215 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00398/0.362, allocations: 1.701 MB / 0.5789 GB, free: 2.508 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004166/0.3661, allocations: 1.565 MB / 0.5804 GB, free: 0.9375 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002661/0.3688, allocations: 1.2 MB / 0.5816 GB, free: 15.73 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006333/0.3751, allocations: 3.506 MB / 0.585 GB, free: 12.22 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004016/0.3791, allocations: 1.992 MB / 0.587 GB, free: 10.17 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00267/0.3818, allocations: 1.172 MB / 0.5881 GB, free: 8.996 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003326/0.3851, allocations: 1.732 MB / 0.5898 GB, free: 7.258 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009404/0.3861, allocations: 236 kB / 0.59 GB, free: 7.027 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001944/0.388, allocations: 0.7411 MB / 0.5907 GB, free: 6.285 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002178/0.3902, allocations: 1.585 MB / 0.5923 GB, free: 4.695 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002809/0.393, allocations: 1.859 MB / 0.5941 GB, free: 2.824 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008084/0.4011, allocations: 6.15 MB / 0.6001 GB, free: 12.65 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.4011, allocations: 0 / 0.6001 GB, free: 12.65 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4011, allocations: 0 / 0.6001 GB, free: 12.65 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001725/0.4013, allocations: 4 kB / 0.6001 GB, free: 12.64 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.008404/0.4097, allocations: 4.015 MB / 0.604 GB, free: 8.57 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.4097, allocations: 15.97 kB / 0.6041 GB, free: 8.555 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001175/0.4099, allocations: 93.11 kB / 0.6041 GB, free: 8.461 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001224/0.4111, allocations: 0.7125 MB / 0.6048 GB, free: 7.738 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01097/0.422, allocations: 2.997 MB / 0.6078 GB, free: 4.734 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004569/0.4266, allocations: 1.755 MB / 0.6095 GB, free: 2.945 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002042/0.4268, allocations: 196.7 kB / 0.6097 GB, free: 2.75 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008422/0.4277, allocations: 247.8 kB / 0.6099 GB, free: 2.508 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02059/0.4483, allocations: 10.04 MB / 0.6197 GB, free: 7.809 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.354e-05/0.4483, allocations: 27.75 kB / 0.6197 GB, free: 7.781 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005318/0.4489, allocations: 127.8 kB / 0.6199 GB, free: 7.656 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004121/0.453, allocations: 2.31 MB / 0.6221 GB, free: 5.344 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01833/0.4713, allocations: 8.933 MB / 0.6308 GB, free: 12.41 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05875/0.5301, allocations: 37.48 MB / 0.6674 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00661/0.5367, allocations: 2.345 MB / 0.6697 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002257/0.5389, allocations: 1.138 MB / 0.6708 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01194/0.5509, allocations: 4.712 MB / 0.6754 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.912e-05/0.5509, allocations: 55.16 kB / 0.6755 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=150): time 5.751e-06/0.5509, allocations: 0 / 0.6755 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of matching and sorting (n=150): time 0.008398/0.5593, allocations: 3.347 MB / 0.6788 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001359/0.5595, allocations: 166.9 kB / 0.6789 GB, free: 9.871 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008976/0.5685, allocations: 3.841 MB / 0.6827 GB, free: 6.035 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.000317/0.5688, allocations: 41.7 kB / 0.6827 GB, free: 5.988 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003818/0.5726, allocations: 3.317 MB / 0.6859 GB, free: 2.637 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001087/0.5737, allocations: 0.6283 MB / 0.6866 GB, free: 2.004 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003304/0.577, allocations: 1.314 MB / 0.6878 GB, free: 0.6797 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001574/0.5771, allocations: 301.1 kB / 0.6881 GB, free: 392 kB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003697/0.5808, allocations: 1.961 MB / 0.69 GB, free: 14.42 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009018/0.5899, allocations: 6.104 MB / 0.696 GB, free: 6.238 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01233/0.6022, allocations: 8.789 MB / 0.7046 GB, free: 11.38 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001498/0.6023, allocations: 44.25 kB / 0.7046 GB, free: 11.33 MB / 0.545 GB Notification: Performance of matching and sorting (n=849) (initialization): time 0.0166/0.6189, allocations: 7.733 MB / 0.7122 GB, free: 3.598 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001906/0.6191, allocations: 68 kB / 0.7122 GB, free: 3.531 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002639/0.6194, allocations: 148 kB / 0.7124 GB, free: 3.387 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000267/0.6197, allocations: 192.7 kB / 0.7126 GB, free: 3.199 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005353/0.625, allocations: 1.458 MB / 0.714 GB, free: 1.738 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000424/0.6254, allocations: 290.9 kB / 0.7143 GB, free: 1.453 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005699/0.6311, allocations: 0.9345 MB / 0.7152 GB, free: 0.5117 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001474/0.6326, allocations: 400 kB / 0.7156 GB, free: 124 kB / 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.005567/0.6382, allocations: 2.203 MB / 0.7177 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008618/0.639, allocations: 325.7 kB / 0.718 GB, free: 13.58 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001398/0.6404, allocations: 411.1 kB / 0.7184 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000107/0.6405, allocations: 39.98 kB / 0.7185 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.582e-05/0.6406, allocations: 0 / 0.7185 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.604e-05/0.6406, allocations: 7.984 kB / 0.7185 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01432/0.6549, allocations: 5.442 MB / 0.7238 GB, free: 7.562 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.808e-05/0.6549, allocations: 7.938 kB / 0.7238 GB, free: 7.555 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001164/0.6561, allocations: 203.7 kB / 0.724 GB, free: 7.355 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.371e-05/0.6561, allocations: 15.92 kB / 0.724 GB, free: 7.34 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001887/0.6563, allocations: 24 kB / 0.724 GB, free: 7.316 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.111e-05/0.6563, allocations: 15.94 kB / 0.724 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.65e-06/0.6563, allocations: 4.5 kB / 0.724 GB, free: 7.297 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003991/0.6603, allocations: 2.558 MB / 0.7265 GB, free: 4.656 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009666/0.6613, allocations: 309.4 kB / 0.7268 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000753/0.662, allocations: 35.98 kB / 0.7269 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001532/0.6636, allocations: 59.92 kB / 0.7269 GB, free: 4.258 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003129/0.6639, allocations: 84.23 kB / 0.727 GB, free: 4.176 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001723/0.6641, allocations: 44 kB / 0.7271 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005208/0.6693, allocations: 2.342 MB / 0.7293 GB, free: 1.805 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6693, allocations: 0 / 0.7293 GB, free: 1.805 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005956/0.6752, allocations: 1.068 MB / 0.7304 GB, free: 0.7344 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.2774/0.9526, allocations: 3.18 MB / 0.7335 GB, free: 152.6 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006056/0.9587, allocations: 4.256 MB / 0.7376 GB, free: 151.4 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.057e-05/0.9587, allocations: 0 / 0.7376 GB, free: 151.4 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001004/0.9597, allocations: 0.8791 MB / 0.7385 GB, free: 151.1 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0021/0.9618, allocations: 341.3 kB / 0.7388 GB, free: 150.9 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05268/1.014, allocations: 41.81 MB / 0.7797 GB, free: 109.6 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004019/1.019, allocations: 3.16 MB / 0.7827 GB, free: 106.4 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004853/1.023, allocations: 2.227 MB / 0.7849 GB, free: 104.2 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002699/1.026, allocations: 1.659 MB / 0.7865 GB, free: 102.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.823e-06/1.026, allocations: 0 / 0.7865 GB, free: 102.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08918/1.115, allocations: 56.61 MB / 0.8418 GB, free: 46.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.35/23.47, allocations: 14.5 kB / 0.8418 GB, free: 46.29 MB / 0.5606 GB " [Timeout remaining time 636] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2.fmu > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/AbsoluteSensor2/AbsoluteSensor2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 27.112733472022228]