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.00182/0.00182, allocations: 119.6 kB / 20.44 MB, free: 1.445 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.002268/0.002268, allocations: 219.8 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.483/1.483, allocations: 230.6 MB / 257.5 MB, free: 7.969 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.2389/0.2389, allocations: 46.94 MB / 360.9 MB, free: 4.25 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003002/0.003002, allocations: 71.89 kB / 0.4962 GB, free: 7.895 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3766/0.3796, allocations: 66.04 MB / 0.5606 GB, free: 4.457 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01494/0.3945, allocations: 12.01 MB / 0.5724 GB, free: 8.391 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008817/0.4033, allocations: 4.109 MB / 0.5764 GB, free: 4.27 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001867/0.4052, allocations: 87.69 kB / 0.5765 GB, free: 4.184 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003908/0.4091, allocations: 1.693 MB / 0.5781 GB, free: 2.484 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004285/0.4134, allocations: 1.576 MB / 0.5797 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002811/0.4162, allocations: 1.2 MB / 0.5808 GB, free: 15.7 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005675/0.4219, allocations: 3.506 MB / 0.5843 GB, free: 12.19 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003266/0.4251, allocations: 1.988 MB / 0.5862 GB, free: 10.14 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002159/0.4273, allocations: 1.176 MB / 0.5873 GB, free: 8.961 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002798/0.4301, allocations: 1.732 MB / 0.589 GB, free: 7.223 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007386/0.4308, allocations: 236 kB / 0.5893 GB, free: 6.992 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001739/0.4326, allocations: 0.7372 MB / 0.59 GB, free: 6.254 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002013/0.4346, allocations: 1.585 MB / 0.5915 GB, free: 4.664 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002932/0.4375, allocations: 1.867 MB / 0.5933 GB, free: 2.785 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00798/0.4455, allocations: 6.15 MB / 0.5994 GB, free: 12.61 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.4455, allocations: 0 / 0.5994 GB, free: 12.61 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4455, allocations: 0 / 0.5994 GB, free: 12.61 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001782/0.4457, allocations: 0 / 0.5994 GB, free: 12.61 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.007887/0.4536, allocations: 4.011 MB / 0.6033 GB, free: 8.535 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.4536, allocations: 12.03 kB / 0.6033 GB, free: 8.523 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001224/0.4548, allocations: 0.7202 MB / 0.604 GB, free: 7.793 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01012/0.465, allocations: 2.993 MB / 0.6069 GB, free: 4.793 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004387/0.4694, allocations: 1.755 MB / 0.6086 GB, free: 3.004 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001904/0.4695, allocations: 196.9 kB / 0.6088 GB, free: 2.809 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009027/0.4705, allocations: 247.8 kB / 0.609 GB, free: 2.566 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01655/0.487, allocations: 10.04 MB / 0.6188 GB, free: 7.871 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-05/0.4871, allocations: 31.69 kB / 0.6189 GB, free: 7.84 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003765/0.4875, allocations: 123.8 kB / 0.619 GB, free: 7.719 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00392/0.4914, allocations: 2.318 MB / 0.6213 GB, free: 5.398 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01698/0.5084, allocations: 8.933 MB / 0.63 GB, free: 12.46 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05288/0.5612, allocations: 37.47 MB / 0.6666 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005882/0.5671, allocations: 2.354 MB / 0.6689 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002205/0.5693, allocations: 1.132 MB / 0.67 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01158/0.5809, allocations: 4.716 MB / 0.6746 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001688/0.5811, allocations: 63.08 kB / 0.6746 GB, free: 13.47 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=150): time 8.356e-06/0.5811, allocations: 0 / 0.6746 GB, free: 13.47 MB / 0.5137 GB Notification: Performance of matching and sorting (n=150): time 0.008304/0.5894, allocations: 3.339 MB / 0.6779 GB, free: 10.13 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002294/0.5896, allocations: 166.8 kB / 0.6781 GB, free: 9.934 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007467/0.5971, allocations: 3.841 MB / 0.6818 GB, free: 6.098 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002122/0.5973, allocations: 45.69 kB / 0.6819 GB, free: 6.047 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003336/0.6006, allocations: 3.317 MB / 0.6851 GB, free: 2.695 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009256/0.6016, allocations: 0.6282 MB / 0.6857 GB, free: 2.062 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002786/0.6043, allocations: 1.314 MB / 0.687 GB, free: 0.7383 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001576/0.6045, allocations: 305.1 kB / 0.6873 GB, free: 448 kB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003548/0.6081, allocations: 1.953 MB / 0.6892 GB, free: 14.48 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00758/0.6156, allocations: 6.108 MB / 0.6952 GB, free: 6.293 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01199/0.6276, allocations: 8.792 MB / 0.7037 GB, free: 11.43 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001448/0.6278, allocations: 40 kB / 0.7038 GB, free: 11.39 MB / 0.545 GB Notification: Performance of matching and sorting (n=849) (initialization): time 0.01576/0.6435, allocations: 7.718 MB / 0.7113 GB, free: 3.668 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001723/0.6437, allocations: 69 kB / 0.7114 GB, free: 3.602 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002475/0.6439, allocations: 148.5 kB / 0.7115 GB, free: 3.457 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002607/0.6442, allocations: 196 kB / 0.7117 GB, free: 3.266 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004939/0.6491, allocations: 1.466 MB / 0.7131 GB, free: 1.797 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000341/0.6495, allocations: 286.9 kB / 0.7134 GB, free: 1.516 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005525/0.655, allocations: 0.934 MB / 0.7143 GB, free: 0.5781 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001155/0.6562, allocations: 404 kB / 0.7147 GB, free: 188 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.004123/0.6603, allocations: 2.199 MB / 0.7169 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006486/0.6609, allocations: 325.7 kB / 0.7172 GB, free: 13.65 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001057/0.662, allocations: 407.1 kB / 0.7176 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-05/0.6621, allocations: 39.98 kB / 0.7176 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-05/0.6621, allocations: 0 / 0.7176 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.811e-05/0.6621, allocations: 7.984 kB / 0.7176 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01116/0.6733, allocations: 5.442 MB / 0.7229 GB, free: 7.633 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.679e-05/0.6733, allocations: 7.984 kB / 0.7229 GB, free: 7.625 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001016/0.6743, allocations: 211.7 kB / 0.7231 GB, free: 7.418 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.21e-05/0.6743, allocations: 12.59 kB / 0.7231 GB, free: 7.406 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.957e-05/0.6744, allocations: 24 kB / 0.7232 GB, free: 7.383 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.351e-05/0.6744, allocations: 19.94 kB / 0.7232 GB, free: 7.363 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.007e-06/0.6744, allocations: 11.94 kB / 0.7232 GB, free: 7.352 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003384/0.6778, allocations: 2.556 MB / 0.7257 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007304/0.6785, allocations: 309.4 kB / 0.726 GB, free: 4.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003572/0.6789, allocations: 27.98 kB / 0.726 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009899/0.6799, allocations: 63.92 kB / 0.7261 GB, free: 4.32 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001822/0.6801, allocations: 84.25 kB / 0.7262 GB, free: 4.238 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001114/0.6802, allocations: 51.97 kB / 0.7262 GB, free: 4.188 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003889/0.6841, allocations: 2.33 MB / 0.7285 GB, free: 1.871 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.6841, allocations: 0 / 0.7285 GB, free: 1.871 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004827/0.6889, allocations: 1.072 MB / 0.7295 GB, free: 0.7969 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.2671/0.956, allocations: 3.174 MB / 0.7326 GB, free: 151.6 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.005734/0.9618, allocations: 4.257 MB / 0.7368 GB, free: 150.4 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/0.9618, allocations: 1.656 kB / 0.7368 GB, free: 150.4 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000973/0.9627, allocations: 0.8754 MB / 0.7376 GB, free: 150.1 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0018/0.9645, allocations: 343.4 kB / 0.738 GB, free: 149.9 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03765/1.002, allocations: 41.8 MB / 0.7788 GB, free: 109.9 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002494/1.005, allocations: 3.162 MB / 0.7819 GB, free: 106.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003862/1.009, allocations: 2.231 MB / 0.7841 GB, free: 104.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00173/1.01, allocations: 1.659 MB / 0.7857 GB, free: 102.9 MB / 0.5606 GB Notification: Performance of SimCode: time 9.12e-07/1.01, allocations: 0 / 0.7857 GB, free: 102.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1162/1.126, allocations: 56.58 MB / 0.8409 GB, free: 46.65 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.47/23.6, allocations: 10.25 kB / 0.8409 GB, free: 46.65 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: 26.73402284295298]