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.001767/0.001767, allocations: 121 kB / 18.5 MB, free: 4.562 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.002137/0.002137, allocations: 213.5 kB / 21.45 MB, free: 1.617 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 / 254.8 MB, free: 15.26 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.2248/0.2248, allocations: 44.9 MB / 355.8 MB, free: 12.36 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.002064/0.002064, allocations: 67.89 kB / 0.4885 GB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1158, allocations: 65.43 MB / 0.5524 GB, free: 10.15 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01484/0.1307, allocations: 11.97 MB / 0.5641 GB, free: 14.12 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008558/0.1392, allocations: 4.09 MB / 0.5681 GB, free: 10.02 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002129/0.1414, allocations: 91.62 kB / 0.5682 GB, free: 9.93 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003569/0.1449, allocations: 1.689 MB / 0.5699 GB, free: 8.234 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003813/0.1487, allocations: 1.549 MB / 0.5714 GB, free: 6.68 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002465/0.1512, allocations: 1.192 MB / 0.5725 GB, free: 5.484 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005301/0.1565, allocations: 3.513 MB / 0.576 GB, free: 1.965 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00329/0.1598, allocations: 2.067 MB / 0.578 GB, free: 15.84 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001948/0.1617, allocations: 1.168 MB / 0.5791 GB, free: 14.67 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002649/0.1644, allocations: 1.732 MB / 0.5808 GB, free: 12.93 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006539/0.165, allocations: 236 kB / 0.581 GB, free: 12.7 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001582/0.1666, allocations: 0.7372 MB / 0.5818 GB, free: 11.96 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001851/0.1685, allocations: 1.589 MB / 0.5833 GB, free: 10.37 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002372/0.1709, allocations: 1.867 MB / 0.5851 GB, free: 8.492 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007341/0.1782, allocations: 6.146 MB / 0.5911 GB, free: 2.32 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1782, allocations: 0 / 0.5911 GB, free: 2.32 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1782, allocations: 0 / 0.5911 GB, free: 2.32 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001649/0.1784, allocations: 0 / 0.5911 GB, free: 2.32 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.2534/0.4318, allocations: 4.091 MB / 0.5951 GB, free: 36.84 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/0.4318, allocations: 9.375 kB / 0.5951 GB, free: 36.84 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002205/0.4321, allocations: 92.52 kB / 0.5952 GB, free: 36.83 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001247/0.4333, allocations: 0.7201 MB / 0.5959 GB, free: 36.56 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01055/0.4439, allocations: 2.992 MB / 0.5989 GB, free: 36.17 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003746/0.4476, allocations: 1.816 MB / 0.6006 GB, free: 35.43 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000156/0.4478, allocations: 193.6 kB / 0.6008 GB, free: 35.38 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007094/0.4485, allocations: 249.3 kB / 0.601 GB, free: 35.34 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01579/0.4643, allocations: 10.04 MB / 0.6109 GB, free: 30.73 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-05/0.4643, allocations: 27.09 kB / 0.6109 GB, free: 30.71 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004514/0.4648, allocations: 130.8 kB / 0.611 GB, free: 30.62 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003601/0.4684, allocations: 2.32 MB / 0.6133 GB, free: 29.93 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01368/0.4821, allocations: 8.922 MB / 0.622 GB, free: 23.85 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04063/0.5227, allocations: 37.61 MB / 0.6587 GB, free: 1.367 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006337/0.529, allocations: 3.261 MB / 0.6619 GB, free: 13.84 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001843/0.5309, allocations: 1.133 MB / 0.663 GB, free: 12.7 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009158/0.54, allocations: 5.186 MB / 0.6681 GB, free: 7.391 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.783e-05/0.5401, allocations: 43.12 kB / 0.6681 GB, free: 7.34 MB / 478.1 MB Notification: Performance of pre-optimization done (n=150): time 5.18e-06/0.5401, allocations: 0 / 0.6681 GB, free: 7.34 MB / 478.1 MB Notification: Performance of matching and sorting (n=150): time 0.007701/0.5478, allocations: 3.343 MB / 0.6714 GB, free: 3.992 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001175/0.5479, allocations: 162.8 kB / 0.6715 GB, free: 3.797 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005941/0.5539, allocations: 3.838 MB / 0.6753 GB, free: 15.96 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001847/0.554, allocations: 41.7 kB / 0.6753 GB, free: 15.92 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00279/0.5568, allocations: 3.317 MB / 0.6785 GB, free: 12.57 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008559/0.5577, allocations: 0.636 MB / 0.6792 GB, free: 11.93 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001859/0.5596, allocations: 1.31 MB / 0.6804 GB, free: 10.61 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.5597, allocations: 305.1 kB / 0.6807 GB, free: 10.3 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003101/0.5628, allocations: 1.957 MB / 0.6827 GB, free: 8.344 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007175/0.57, allocations: 6.108 MB / 0.6886 GB, free: 164 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01167/0.5816, allocations: 8.795 MB / 0.6972 GB, free: 5.297 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001243/0.5818, allocations: 40 kB / 0.6972 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of matching and sorting (n=849) (initialization): time 0.01616/0.5979, allocations: 7.726 MB / 0.7048 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001159/0.598, allocations: 72.06 kB / 0.7049 GB, free: 13.46 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001995/0.5982, allocations: 148.9 kB / 0.705 GB, free: 13.32 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002188/0.5985, allocations: 196.4 kB / 0.7052 GB, free: 13.13 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004824/0.6033, allocations: 1.458 MB / 0.7066 GB, free: 11.67 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002651/0.6035, allocations: 286.9 kB / 0.7069 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004848/0.6084, allocations: 0.9307 MB / 0.7078 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001066/0.6095, allocations: 404 kB / 0.7082 GB, free: 10.05 MB / 0.5137 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.004038/0.6135, allocations: 2.206 MB / 0.7103 GB, free: 7.836 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006996/0.6142, allocations: 321.8 kB / 0.7106 GB, free: 7.52 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009976/0.6152, allocations: 411 kB / 0.711 GB, free: 7.109 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-05/0.6153, allocations: 39.98 kB / 0.7111 GB, free: 7.07 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-05/0.6153, allocations: 2.312 kB / 0.7111 GB, free: 7.07 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.076e-05/0.6153, allocations: 7.984 kB / 0.7111 GB, free: 7.062 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01195/0.6272, allocations: 5.463 MB / 0.7164 GB, free: 1.473 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.955e-05/0.6273, allocations: 4.656 kB / 0.7164 GB, free: 1.469 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001064/0.6283, allocations: 207.7 kB / 0.7166 GB, free: 1.266 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.028e-05/0.6284, allocations: 12 kB / 0.7166 GB, free: 1.254 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001575/0.6285, allocations: 35.98 kB / 0.7167 GB, free: 1.219 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.838e-05/0.6285, allocations: 15.88 kB / 0.7167 GB, free: 1.203 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.008e-05/0.6285, allocations: 11.94 kB / 0.7167 GB, free: 1.191 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00374/0.6323, allocations: 2.541 MB / 0.7192 GB, free: 14.57 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008645/0.6331, allocations: 386.6 kB / 0.7195 GB, free: 14.17 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005485/0.6337, allocations: 27.98 kB / 0.7196 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001184/0.6349, allocations: 71.77 kB / 0.7196 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002045/0.6351, allocations: 84.28 kB / 0.7197 GB, free: 13.99 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001018/0.6352, allocations: 40 kB / 0.7198 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003729/0.6389, allocations: 2.338 MB / 0.722 GB, free: 11.62 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.01e-07/0.6389, allocations: 3.938 kB / 0.722 GB, free: 11.62 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004545/0.6435, allocations: 1.068 MB / 0.7231 GB, free: 10.55 MB / 0.5294 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.004069/0.6475, allocations: 3.191 MB / 0.7262 GB, free: 7.27 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00721/0.6547, allocations: 4.25 MB / 0.7303 GB, free: 3.051 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.217e-06/0.6547, allocations: 4.062 kB / 0.7304 GB, free: 3.047 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001353/0.6561, allocations: 0.878 MB / 0.7312 GB, free: 2.16 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002067/0.6582, allocations: 348.6 kB / 0.7315 GB, free: 1.82 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06567/0.7238, allocations: 41.8 MB / 0.7724 GB, free: 1.473 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004827/0.7287, allocations: 3.158 MB / 0.7754 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005313/0.734, allocations: 2.226 MB / 0.7776 GB, free: 12.05 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002823/0.7368, allocations: 1.659 MB / 0.7792 GB, free: 10.39 MB / 0.5919 GB Notification: Performance of SimCode: time 2.083e-06/0.7368, allocations: 0 / 0.7792 GB, free: 10.39 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09799/0.8348, allocations: 51.33 MB / 0.8294 GB, free: 7.324 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.37/21.2, allocations: 4 kB / 0.8294 GB, free: 7.32 MB / 0.6387 GB " [Timeout remaining time 639] (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: 24.985249201010447]