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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001327/0.001326, allocations: 113.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 179.1 kB / 18.71 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.218/0.218, allocations: 44.19 MB / 336.8 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 63.89 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.318, allocations: 60.82 MB / 0.5184 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01248/0.3305, allocations: 12.05 MB / 0.5302 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009382/0.34, allocations: 4.033 MB / 0.5341 GB, free: 7.719 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002276/0.3423, allocations: 76.41 kB / 0.5342 GB, free: 7.711 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003448/0.3457, allocations: 1.674 MB / 0.5358 GB, free: 6.578 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003982/0.3498, allocations: 1.586 MB / 0.5374 GB, free: 5.492 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002417/0.3522, allocations: 1.185 MB / 0.5385 GB, free: 4.707 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0051/0.3573, allocations: 3.516 MB / 0.542 GB, free: 2.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003466/0.3608, allocations: 2.483 MB / 0.5444 GB, free: 1.371 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002232/0.3631, allocations: 1.18 MB / 0.5455 GB, free: 252 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002113/0.3653, allocations: 1.592 MB / 0.5471 GB, free: 14.64 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000707/0.366, allocations: 244 kB / 0.5473 GB, free: 14.41 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00155/0.3675, allocations: 0.7059 MB / 0.548 GB, free: 13.7 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001613/0.3692, allocations: 1.601 MB / 0.5496 GB, free: 12.1 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002291/0.3715, allocations: 1.921 MB / 0.5515 GB, free: 10.16 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007222/0.3787, allocations: 6.31 MB / 0.5576 GB, free: 3.828 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.3788, allocations: 0 / 0.5576 GB, free: 3.828 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3788, allocations: 0 / 0.5576 GB, free: 3.828 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001866/0.379, allocations: 4 kB / 0.5576 GB, free: 3.824 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1568 * Number of variables: 1568 Notification: Performance of Generate backend data structure: time 0.00749/0.3865, allocations: 4.199 MB / 0.5617 GB, free: 15.55 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.3865, allocations: 8.031 kB / 0.5617 GB, free: 15.54 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001158/0.3877, allocations: 0.7249 MB / 0.5624 GB, free: 14.8 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01014/0.3978, allocations: 3.028 MB / 0.5654 GB, free: 11.77 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00456/0.4024, allocations: 1.839 MB / 0.5672 GB, free: 9.875 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001694/0.4026, allocations: 200.9 kB / 0.5674 GB, free: 9.676 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009074/0.4035, allocations: 247.8 kB / 0.5676 GB, free: 9.434 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01555/0.4191, allocations: 10.23 MB / 0.5776 GB, free: 14.55 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.241e-05/0.4192, allocations: 31.73 kB / 0.5776 GB, free: 14.52 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005241/0.4198, allocations: 131.8 kB / 0.5778 GB, free: 14.39 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003768/0.4235, allocations: 2.372 MB / 0.5801 GB, free: 12.01 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01701/0.4406, allocations: 9.085 MB / 0.589 GB, free: 2.918 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0487/0.4893, allocations: 38.04 MB / 0.6261 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005603/0.4949, allocations: 3.384 MB / 0.6294 GB, free: 8.078 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001717/0.4967, allocations: 1.23 MB / 0.6306 GB, free: 6.824 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008869/0.5056, allocations: 5.188 MB / 0.6357 GB, free: 1.484 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.909e-05/0.5057, allocations: 55.05 kB / 0.6357 GB, free: 1.422 MB / 494.1 MB Notification: Performance of pre-optimization done (n=150): time 4.218e-06/0.5057, allocations: 0 / 0.6357 GB, free: 1.422 MB / 494.1 MB Notification: Performance of matching and sorting (n=150): time 0.006876/0.5125, allocations: 3.344 MB / 0.639 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.213e-05/0.5127, allocations: 166.7 kB / 0.6392 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005973/0.5186, allocations: 3.882 MB / 0.643 GB, free: 10 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001201/0.5188, allocations: 41.7 kB / 0.643 GB, free: 9.957 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002342/0.5211, allocations: 3.372 MB / 0.6463 GB, free: 6.551 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006762/0.5218, allocations: 0.6321 MB / 0.6469 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001886/0.5237, allocations: 1.326 MB / 0.6482 GB, free: 4.578 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.955e-05/0.5238, allocations: 305.1 kB / 0.6485 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002778/0.5266, allocations: 1.961 MB / 0.6504 GB, free: 2.312 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006255/0.5329, allocations: 6.156 MB / 0.6564 GB, free: 10.06 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009891/0.5428, allocations: 8.859 MB / 0.6651 GB, free: 15.11 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000137/0.543, allocations: 44 kB / 0.6651 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01391/0.5569, allocations: 7.764 MB / 0.6727 GB, free: 7.297 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001385/0.5571, allocations: 72 kB / 0.6728 GB, free: 7.227 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001891/0.5573, allocations: 152.9 kB / 0.6729 GB, free: 7.078 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000202/0.5575, allocations: 196 kB / 0.6731 GB, free: 6.887 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004644/0.5621, allocations: 1.47 MB / 0.6745 GB, free: 5.414 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002822/0.5624, allocations: 290.9 kB / 0.6748 GB, free: 5.129 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004583/0.567, allocations: 0.9384 MB / 0.6757 GB, free: 4.184 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009989/0.5681, allocations: 404 kB / 0.6761 GB, free: 3.789 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 679 * Number of states: 0 () * Number of discrete variables: 23 (freeMotion.arrow.arrowLine.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 (797): * Single equations (assignments): 789 * 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.00393/0.572, allocations: 2.238 MB / 0.6783 GB, free: 1.539 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000595/0.5726, allocations: 329.8 kB / 0.6786 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000969/0.5736, allocations: 411.4 kB / 0.679 GB, free: 0.8086 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-05/0.5737, allocations: 35.98 kB / 0.679 GB, free: 0.7734 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.779e-05/0.5737, allocations: 7.938 kB / 0.679 GB, free: 0.7656 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.343e-05/0.5737, allocations: 3.984 kB / 0.679 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01055/0.5843, allocations: 5.539 MB / 0.6845 GB, free: 11.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-05/0.5843, allocations: 4 kB / 0.6845 GB, free: 11.09 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001002/0.5853, allocations: 203.7 kB / 0.6847 GB, free: 10.89 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-05/0.5854, allocations: 8 kB / 0.6847 GB, free: 10.89 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/0.5855, allocations: 32.64 kB / 0.6847 GB, free: 10.86 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.375e-05/0.5855, allocations: 15.98 kB / 0.6847 GB, free: 10.84 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/0.5855, allocations: 11.94 kB / 0.6847 GB, free: 10.83 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002957/0.5885, allocations: 2.546 MB / 0.6872 GB, free: 8.199 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008145/0.5893, allocations: 402.5 kB / 0.6876 GB, free: 7.785 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000486/0.5898, allocations: 20 kB / 0.6876 GB, free: 7.766 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001158/0.591, allocations: 67.91 kB / 0.6877 GB, free: 7.699 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001516/0.5911, allocations: 80.34 kB / 0.6877 GB, free: 7.621 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.661e-05/0.5912, allocations: 51.92 kB / 0.6878 GB, free: 7.57 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003971/0.5952, allocations: 2.354 MB / 0.6901 GB, free: 5.23 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.31e-07/0.5952, allocations: 0 / 0.6901 GB, free: 5.23 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004951/0.6002, allocations: 1.103 MB / 0.6912 GB, free: 4.125 MB / 0.545 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.003497/0.6037, allocations: 3.187 MB / 0.6943 GB, free: 0.8438 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006716/0.6104, allocations: 4.471 MB / 0.6987 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.715e-06/0.6105, allocations: 0 / 0.6987 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001209/0.6117, allocations: 0.9489 MB / 0.6996 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002155/0.6138, allocations: 377.1 kB / 0.6999 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2957/0.9096, allocations: 42.2 MB / 0.7412 GB, free: 171.4 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003463/0.9131, allocations: 3.207 MB / 0.7443 GB, free: 170.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.005058/0.9182, allocations: 2.237 MB / 0.7465 GB, free: 169.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002375/0.9206, allocations: 1.701 MB / 0.7481 GB, free: 168.5 MB / 0.5762 GB Notification: Performance of SimCode: time 1.272e-06/0.9206, allocations: 0 / 0.7481 GB, free: 168.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07963/1, allocations: 51.5 MB / 0.7984 GB, free: 122.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.76/19.76, allocations: 12.97 kB / 0.7984 GB, free: 122.8 MB / 0.5762 GB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.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.00044 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_AbsoluteSensor2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.csv","/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) Reference file matches