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.001701/0.001701, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.002054/0.002054, allocations: 212.9 kB / 24.52 MB, free: 3.941 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.643/1.643, allocations: 230.6 MB / 258.3 MB, free: 7.793 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.2358/0.2358, allocations: 44.92 MB / 359.6 MB, free: 6.062 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="cs",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.002313/0.002313, allocations: 68.17 kB / 0.4938 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3367/0.339, allocations: 65.47 MB / 0.5577 GB, free: 7.359 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01362/0.3527, allocations: 10.34 MB / 0.5678 GB, free: 13.19 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008877/0.3615, allocations: 3.895 MB / 0.5716 GB, free: 9.281 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00216/0.3637, allocations: 83.75 kB / 0.5717 GB, free: 9.199 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003664/0.3674, allocations: 1.647 MB / 0.5733 GB, free: 7.547 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004194/0.3715, allocations: 1.561 MB / 0.5748 GB, free: 5.98 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002567/0.3741, allocations: 1.149 MB / 0.5759 GB, free: 4.828 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005873/0.38, allocations: 3.494 MB / 0.5794 GB, free: 1.328 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002836/0.3828, allocations: 1.996 MB / 0.5813 GB, free: 15.27 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001959/0.3848, allocations: 1.183 MB / 0.5825 GB, free: 14.09 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002808/0.3876, allocations: 1.725 MB / 0.5841 GB, free: 12.36 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006707/0.3883, allocations: 236 kB / 0.5844 GB, free: 12.12 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001474/0.3897, allocations: 0.628 MB / 0.585 GB, free: 11.5 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001803/0.3915, allocations: 1.593 MB / 0.5865 GB, free: 9.898 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001939/0.3935, allocations: 1.307 MB / 0.5878 GB, free: 8.582 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007754/0.4012, allocations: 6.177 MB / 0.5939 GB, free: 2.379 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.4012, allocations: 0 / 0.5939 GB, free: 2.379 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4012, allocations: 0 / 0.5939 GB, free: 2.379 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001651/0.4014, allocations: 0 / 0.5939 GB, free: 2.379 MB / 430.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.007545/0.4089, allocations: 4.019 MB / 0.5978 GB, free: 14.3 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.409, allocations: 8.031 kB / 0.5978 GB, free: 14.29 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001225/0.4091, allocations: 93.11 kB / 0.5979 GB, free: 14.2 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00106/0.4102, allocations: 0.7125 MB / 0.5986 GB, free: 13.48 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01016/0.4203, allocations: 2.997 MB / 0.6015 GB, free: 10.47 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004288/0.4246, allocations: 1.771 MB / 0.6032 GB, free: 8.668 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001872/0.4248, allocations: 196.7 kB / 0.6034 GB, free: 8.473 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008396/0.4256, allocations: 243.8 kB / 0.6036 GB, free: 8.234 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01696/0.4426, allocations: 10.04 MB / 0.6135 GB, free: 13.54 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.956e-05/0.4427, allocations: 35.69 kB / 0.6135 GB, free: 13.5 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004582/0.4431, allocations: 119.8 kB / 0.6136 GB, free: 13.38 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003816/0.447, allocations: 2.318 MB / 0.6159 GB, free: 11.06 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01714/0.4641, allocations: 8.921 MB / 0.6246 GB, free: 2.137 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04906/0.5132, allocations: 36.04 MB / 0.6598 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00546/0.5186, allocations: 2.339 MB / 0.662 GB, free: 10.56 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001759/0.5204, allocations: 1.138 MB / 0.6632 GB, free: 9.406 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008605/0.529, allocations: 4.502 MB / 0.6676 GB, free: 4.871 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.779e-05/0.529, allocations: 47.16 kB / 0.6676 GB, free: 4.816 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=150): time 5.019e-06/0.529, allocations: 0 / 0.6676 GB, free: 4.816 MB / 0.4981 GB Notification: Performance of matching and sorting (n=150): time 0.007545/0.5366, allocations: 3.34 MB / 0.6709 GB, free: 1.477 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/0.5367, allocations: 178.8 kB / 0.671 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006186/0.5429, allocations: 3.834 MB / 0.6748 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0001928/0.5431, allocations: 41.7 kB / 0.6748 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002971/0.5461, allocations: 3.321 MB / 0.6781 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008891/0.547, allocations: 0.6282 MB / 0.6787 GB, free: 9.402 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002136/0.5491, allocations: 1.318 MB / 0.68 GB, free: 8.074 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001491/0.5492, allocations: 301.1 kB / 0.6802 GB, free: 7.777 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003265/0.5525, allocations: 1.953 MB / 0.6822 GB, free: 5.82 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007095/0.5596, allocations: 6.104 MB / 0.6881 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01144/0.571, allocations: 8.792 MB / 0.6967 GB, free: 2.777 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001457/0.5712, allocations: 44 kB / 0.6967 GB, free: 2.734 MB / 0.5294 GB Notification: Performance of matching and sorting (n=849) (initialization): time 0.01496/0.5862, allocations: 7.717 MB / 0.7043 GB, free: 11.01 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001765/0.5863, allocations: 71.94 kB / 0.7043 GB, free: 10.94 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002513/0.5866, allocations: 148.5 kB / 0.7045 GB, free: 10.79 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002418/0.5868, allocations: 192 kB / 0.7047 GB, free: 10.61 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004666/0.5915, allocations: 1.458 MB / 0.7061 GB, free: 9.145 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003284/0.5918, allocations: 287.4 kB / 0.7064 GB, free: 8.863 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004697/0.5965, allocations: 0.9344 MB / 0.7073 GB, free: 7.926 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001015/0.5975, allocations: 399.9 kB / 0.7077 GB, free: 7.535 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.004462/0.602, allocations: 2.207 MB / 0.7098 GB, free: 5.312 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006541/0.6026, allocations: 329.7 kB / 0.7101 GB, free: 4.988 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001059/0.6037, allocations: 407.1 kB / 0.7105 GB, free: 4.586 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.835e-05/0.6038, allocations: 36 kB / 0.7106 GB, free: 4.551 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.715e-05/0.6038, allocations: 320 / 0.7106 GB, free: 4.551 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.041e-05/0.6038, allocations: 15.97 kB / 0.7106 GB, free: 4.535 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01175/0.6156, allocations: 5.259 MB / 0.7157 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.516e-05/0.6156, allocations: 16.12 kB / 0.7157 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001029/0.6166, allocations: 211.5 kB / 0.7159 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.16e-05/0.6167, allocations: 12 kB / 0.7159 GB, free: 14.92 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001363/0.6168, allocations: 27.98 kB / 0.716 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-05/0.6168, allocations: 15.98 kB / 0.716 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.642e-05/0.6168, allocations: 7.938 kB / 0.716 GB, free: 14.87 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003524/0.6204, allocations: 2.546 MB / 0.7185 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007956/0.6211, allocations: 317.4 kB / 0.7188 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006179/0.6218, allocations: 24 kB / 0.7188 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001295/0.6231, allocations: 75.89 kB / 0.7189 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002023/0.6233, allocations: 80.25 kB / 0.7189 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001118/0.6234, allocations: 44 kB / 0.719 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004508/0.6279, allocations: 2.33 MB / 0.7213 GB, free: 9.395 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/0.6279, allocations: 0 / 0.7213 GB, free: 9.395 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005291/0.6332, allocations: 1.072 MB / 0.7223 GB, free: 8.316 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.004255/0.6374, allocations: 3.187 MB / 0.7254 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00731/0.6447, allocations: 4.259 MB / 0.7296 GB, free: 0.8086 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.859e-06/0.6448, allocations: 0 / 0.7296 GB, free: 0.8086 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.2323/0.8771, allocations: 0.8668 MB / 0.7304 GB, free: 162.1 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002912/0.88, allocations: 355 kB / 0.7308 GB, free: 162.1 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0553/0.9353, allocations: 41.8 MB / 0.7716 GB, free: 121.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002893/0.9382, allocations: 2.618 MB / 0.7741 GB, free: 119.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004363/0.9425, allocations: 2.233 MB / 0.7763 GB, free: 117 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002446/0.945, allocations: 1.663 MB / 0.7779 GB, free: 115.4 MB / 0.5606 GB Notification: Performance of SimCode: time 1.884e-06/0.945, allocations: 1.75 kB / 0.7779 GB, free: 115.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09539/1.04, allocations: 52.85 MB / 0.8296 GB, free: 63.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.41/23.45, allocations: 4.062 kB / 0.8296 GB, free: 63.3 MB / 0.5606 GB " [Timeout remaining time 636] (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: 27.17119464999996]