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.001753/0.001753, allocations: 115.6 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.002087/0.002087, allocations: 214.1 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.467/1.467, allocations: 230.6 MB / 257.5 MB, free: 8 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.2372/0.2372, allocations: 46.93 MB / 360.9 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="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.002043/0.002043, allocations: 71.89 kB / 0.4962 GB, free: 7.926 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3244/0.3264, allocations: 66.03 MB / 0.5606 GB, free: 4.48 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.0167/0.3431, allocations: 12.01 MB / 0.5724 GB, free: 8.41 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00967/0.3528, allocations: 4.105 MB / 0.5764 GB, free: 4.293 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002202/0.355, allocations: 83.75 kB / 0.5765 GB, free: 4.211 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004269/0.3593, allocations: 1.709 MB / 0.5781 GB, free: 2.496 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004621/0.3639, allocations: 1.557 MB / 0.5796 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002651/0.3666, allocations: 1.208 MB / 0.5808 GB, free: 15.72 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.005631/0.3722, allocations: 3.506 MB / 0.5843 GB, free: 12.21 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003054/0.3752, allocations: 1.984 MB / 0.5862 GB, free: 10.17 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001973/0.3772, allocations: 1.176 MB / 0.5873 GB, free: 8.988 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002748/0.38, allocations: 1.732 MB / 0.589 GB, free: 7.25 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000645/0.3806, allocations: 240 kB / 0.5893 GB, free: 7.016 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001515/0.3821, allocations: 0.7333 MB / 0.59 GB, free: 6.281 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002029/0.3841, allocations: 1.593 MB / 0.5915 GB, free: 4.684 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00292/0.3871, allocations: 1.859 MB / 0.5933 GB, free: 2.812 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008969/0.396, allocations: 6.15 MB / 0.5993 GB, free: 12.64 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.396, allocations: 0 / 0.5993 GB, free: 12.64 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.396, allocations: 0 / 0.5993 GB, free: 12.64 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002197/0.3963, allocations: 0 / 0.5993 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.008533/0.4048, allocations: 4.011 MB / 0.6033 GB, free: 8.566 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.4048, allocations: 16.03 kB / 0.6033 GB, free: 8.551 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001215/0.4061, allocations: 0.7203 MB / 0.604 GB, free: 7.82 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01007/0.4161, allocations: 2.989 MB / 0.6069 GB, free: 4.824 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004804/0.4209, allocations: 1.767 MB / 0.6086 GB, free: 3.023 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002004/0.4211, allocations: 192.9 kB / 0.6088 GB, free: 2.832 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008349/0.422, allocations: 247.8 kB / 0.609 GB, free: 2.59 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01897/0.4409, allocations: 10.03 MB / 0.6188 GB, free: 7.898 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000114/0.4411, allocations: 35.67 kB / 0.6189 GB, free: 7.863 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006736/0.4417, allocations: 123.8 kB / 0.619 GB, free: 7.742 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003934/0.4457, allocations: 2.314 MB / 0.6213 GB, free: 5.426 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0173/0.463, allocations: 8.933 MB / 0.63 GB, free: 12.49 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05339/0.5163, allocations: 37.47 MB / 0.6666 GB, free: 5.867 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005585/0.5219, allocations: 2.35 MB / 0.6689 GB, free: 3.457 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001915/0.5238, allocations: 1.131 MB / 0.67 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009455/0.5333, allocations: 4.72 MB / 0.6746 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.604e-05/0.5334, allocations: 59.09 kB / 0.6746 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=150): time 4.909e-06/0.5334, allocations: 0 / 0.6746 GB, free: 13.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=150): time 0.007716/0.5411, allocations: 3.34 MB / 0.6779 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/0.5412, allocations: 170.8 kB / 0.6781 GB, free: 9.957 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006793/0.548, allocations: 3.837 MB / 0.6818 GB, free: 6.125 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.000306/0.5483, allocations: 45.69 kB / 0.6819 GB, free: 6.074 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.003225/0.5515, allocations: 3.314 MB / 0.6851 GB, free: 2.727 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009993/0.5525, allocations: 0.636 MB / 0.6857 GB, free: 2.086 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002156/0.5547, allocations: 1.314 MB / 0.687 GB, free: 0.7617 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001593/0.5548, allocations: 301.1 kB / 0.6873 GB, free: 476 kB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003404/0.5582, allocations: 1.953 MB / 0.6892 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007916/0.5662, allocations: 6.108 MB / 0.6952 GB, free: 6.32 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01172/0.5779, allocations: 8.793 MB / 0.7037 GB, free: 11.45 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000137/0.578, allocations: 43.94 kB / 0.7038 GB, free: 11.41 MB / 0.545 GB Notification: Performance of matching and sorting (n=849) (initialization): time 0.01557/0.5936, allocations: 7.718 MB / 0.7113 GB, free: 3.688 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001128/0.5937, allocations: 68 kB / 0.7114 GB, free: 3.621 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002229/0.5939, allocations: 156.1 kB / 0.7115 GB, free: 3.469 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002019/0.5941, allocations: 196 kB / 0.7117 GB, free: 3.277 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004699/0.5988, allocations: 1.458 MB / 0.7131 GB, free: 1.816 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002728/0.5991, allocations: 282.9 kB / 0.7134 GB, free: 1.539 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005225/0.6043, allocations: 0.9306 MB / 0.7143 GB, free: 0.6016 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001319/0.6056, allocations: 407.9 kB / 0.7147 GB, free: 212 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.004723/0.6104, allocations: 2.199 MB / 0.7169 GB, free: 13.99 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007158/0.6111, allocations: 325.7 kB / 0.7172 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001/0.6121, allocations: 411.1 kB / 0.7176 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.57e-05/0.6122, allocations: 39.97 kB / 0.7176 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.186e-05/0.6122, allocations: 4 kB / 0.7176 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.233e-05/0.6122, allocations: 3.984 kB / 0.7176 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01255/0.6248, allocations: 5.438 MB / 0.7229 GB, free: 7.656 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.467e-05/0.6248, allocations: 7.984 kB / 0.7229 GB, free: 7.648 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009671/0.6257, allocations: 207.7 kB / 0.7231 GB, free: 7.445 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-05/0.6258, allocations: 12.59 kB / 0.7231 GB, free: 7.434 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.474e-05/0.6259, allocations: 32 kB / 0.7232 GB, free: 7.402 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.792e-05/0.6259, allocations: 19.86 kB / 0.7232 GB, free: 7.383 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.125e-06/0.6259, allocations: 8 kB / 0.7232 GB, free: 7.375 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003426/0.6293, allocations: 2.55 MB / 0.7257 GB, free: 4.742 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007963/0.6301, allocations: 309.4 kB / 0.726 GB, free: 4.438 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004626/0.6306, allocations: 31.98 kB / 0.726 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001026/0.6316, allocations: 63.92 kB / 0.7261 GB, free: 4.344 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001912/0.6318, allocations: 84.23 kB / 0.7262 GB, free: 4.262 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001089/0.6319, allocations: 44 kB / 0.7262 GB, free: 4.219 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004155/0.6361, allocations: 2.33 MB / 0.7285 GB, free: 1.902 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6361, allocations: 0 / 0.7285 GB, free: 1.902 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005167/0.6412, allocations: 1.076 MB / 0.7295 GB, free: 0.8242 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.2742/0.9154, allocations: 3.183 MB / 0.7326 GB, free: 151.6 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00619/0.9216, allocations: 4.257 MB / 0.7368 GB, free: 150.3 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.244e-05/0.9216, allocations: 3.438 kB / 0.7368 GB, free: 150.3 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001024/0.9226, allocations: 0.8738 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.002092/0.9247, 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.04625/0.971, allocations: 41.8 MB / 0.7788 GB, free: 110 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003398/0.9744, allocations: 3.174 MB / 0.7819 GB, free: 106.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004274/0.9786, allocations: 2.224 MB / 0.7841 GB, free: 104.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002136/0.9808, allocations: 1.659 MB / 0.7857 GB, free: 102.9 MB / 0.5606 GB Notification: Performance of SimCode: time 2.014e-06/0.9808, allocations: 0 / 0.7857 GB, free: 102.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09048/1.071, allocations: 56.58 MB / 0.8409 GB, free: 46.66 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 22/23.07, allocations: 6.859 kB / 0.8409 GB, free: 46.66 MB / 0.5606 GB " [Timeout remaining time 637] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000219912 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.csv","/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] "Error: Could not read variable freeMotion.r[3] in file ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.csv. Warning: Get data of variable freeMotion.r[3] from file ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.csv failed! Error: Could not read variable freeMotion.r[2] in file ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.csv. Warning: Get data of variable freeMotion.r[2] from file ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.csv failed! Error: Could not read variable freeMotion.r[1] in file ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.csv. Warning: Get data of variable freeMotion.r[1] from file ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 26.166977758999565]