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.001735/0.001735, allocations: 118.4 kB / 17.78 MB, free: 5.258 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.002105/0.002106, allocations: 183.8 kB / 18.72 MB, free: 4.332 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.514/1.514, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2289/0.2289, allocations: 44.18 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001823/0.001823, allocations: 71.89 kB / 470 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2974/0.2993, allocations: 60.82 MB / 0.5184 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.01259/0.3119, allocations: 12.06 MB / 0.5302 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009428/0.3214, allocations: 4.024 MB / 0.5341 GB, free: 7.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002311/0.3237, allocations: 79.66 kB / 0.5342 GB, free: 7.719 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003329/0.3271, allocations: 1.674 MB / 0.5358 GB, free: 6.586 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00401/0.3311, allocations: 1.552 MB / 0.5374 GB, free: 5.523 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002456/0.3336, allocations: 1.177 MB / 0.5385 GB, free: 4.746 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005252/0.3389, allocations: 3.52 MB / 0.5419 GB, free: 2.875 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00303/0.3419, allocations: 2.489 MB / 0.5444 GB, free: 1.402 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001678/0.3436, allocations: 1.182 MB / 0.5455 GB, free: 288 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002015/0.3456, allocations: 1.588 MB / 0.5471 GB, free: 14.68 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004745/0.3461, allocations: 244 kB / 0.5473 GB, free: 14.45 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001397/0.3475, allocations: 0.7098 MB / 0.548 GB, free: 13.74 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001515/0.3491, allocations: 1.593 MB / 0.5496 GB, free: 12.14 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001945/0.351, allocations: 1.921 MB / 0.5514 GB, free: 10.21 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006983/0.358, allocations: 6.309 MB / 0.5576 GB, free: 3.871 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.358, allocations: 0 / 0.5576 GB, free: 3.871 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3581, allocations: 0 / 0.5576 GB, free: 3.871 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001294/0.3582, allocations: 0 / 0.5576 GB, free: 3.871 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.007082/0.3653, allocations: 4.184 MB / 0.5617 GB, free: 15.61 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.3653, allocations: 12.03 kB / 0.5617 GB, free: 15.6 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009581/0.3663, allocations: 0.7327 MB / 0.5624 GB, free: 14.85 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01014/0.3764, allocations: 3.016 MB / 0.5654 GB, free: 11.83 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00431/0.3808, allocations: 1.851 MB / 0.5672 GB, free: 9.926 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002373/0.3811, allocations: 196.9 kB / 0.5673 GB, free: 9.73 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009568/0.382, allocations: 251.8 kB / 0.5676 GB, free: 9.484 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01596/0.398, allocations: 10.23 MB / 0.5776 GB, free: 14.59 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.237e-05/0.3981, allocations: 35.69 kB / 0.5776 GB, free: 14.56 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003939/0.3985, allocations: 119.8 kB / 0.5777 GB, free: 14.44 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003988/0.4025, allocations: 2.372 MB / 0.58 GB, free: 12.07 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0171/0.4196, allocations: 9.089 MB / 0.5889 GB, free: 2.973 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05212/0.4718, allocations: 38.04 MB / 0.6261 GB, free: 11.79 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006031/0.4779, allocations: 3.376 MB / 0.6294 GB, free: 8.141 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001857/0.4798, allocations: 1.23 MB / 0.6306 GB, free: 6.887 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008758/0.4885, allocations: 5.196 MB / 0.6356 GB, free: 1.539 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.049e-05/0.4886, allocations: 47.06 kB / 0.6357 GB, free: 1.484 MB / 494.1 MB Notification: Performance of pre-optimization done (n=150): time 4.628e-06/0.4886, allocations: 0 / 0.6357 GB, free: 1.484 MB / 494.1 MB Notification: Performance of matching and sorting (n=150): time 0.007259/0.4959, allocations: 3.344 MB / 0.639 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.496, allocations: 170.9 kB / 0.6391 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005641/0.5017, allocations: 3.878 MB / 0.6429 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001956/0.5019, allocations: 49.69 kB / 0.643 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002692/0.5046, allocations: 3.368 MB / 0.6462 GB, free: 6.609 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007187/0.5053, allocations: 0.6321 MB / 0.6469 GB, free: 5.973 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00169/0.507, allocations: 1.326 MB / 0.6482 GB, free: 4.637 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001285/0.5072, allocations: 305.1 kB / 0.6484 GB, free: 4.336 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002921/0.5101, allocations: 1.965 MB / 0.6504 GB, free: 2.367 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006682/0.5168, allocations: 6.152 MB / 0.6564 GB, free: 10.12 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01117/0.528, allocations: 8.857 MB / 0.665 GB, free: 15.17 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001047/0.5281, allocations: 44 kB / 0.6651 GB, free: 15.13 MB / 0.5294 GB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01401/0.5421, allocations: 7.768 MB / 0.6726 GB, free: 7.352 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001031/0.5423, allocations: 68 kB / 0.6727 GB, free: 7.285 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001879/0.5425, allocations: 148.1 kB / 0.6729 GB, free: 7.141 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002106/0.5427, allocations: 200 kB / 0.673 GB, free: 6.945 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004517/0.5472, allocations: 1.47 MB / 0.6745 GB, free: 5.473 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002544/0.5475, allocations: 290.8 kB / 0.6748 GB, free: 5.188 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004355/0.5519, allocations: 0.9462 MB / 0.6757 GB, free: 4.234 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000734/0.5526, allocations: 400 kB / 0.6761 GB, free: 3.844 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.003597/0.5562, allocations: 2.23 MB / 0.6782 GB, free: 1.602 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005545/0.5568, allocations: 325.8 kB / 0.6786 GB, free: 1.281 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007857/0.5576, allocations: 415.4 kB / 0.6789 GB, free: 0.8711 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-05/0.5577, allocations: 43.98 kB / 0.679 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.33e-05/0.5577, allocations: 0 / 0.679 GB, free: 0.8281 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.41e-05/0.5577, allocations: 7.969 kB / 0.679 GB, free: 0.8203 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009101/0.5668, allocations: 5.535 MB / 0.6844 GB, free: 11.16 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-05/0.5668, allocations: 4.188 kB / 0.6844 GB, free: 11.16 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009854/0.5678, allocations: 211.7 kB / 0.6846 GB, free: 10.95 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.967e-05/0.5679, allocations: 11.94 kB / 0.6846 GB, free: 10.94 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.413e-05/0.568, allocations: 28 kB / 0.6846 GB, free: 10.91 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.508e-05/0.568, allocations: 11.94 kB / 0.6847 GB, free: 10.9 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.033e-06/0.568, allocations: 8 kB / 0.6847 GB, free: 10.89 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00336/0.5714, allocations: 2.554 MB / 0.6872 GB, free: 8.254 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006884/0.5721, allocations: 390.5 kB / 0.6875 GB, free: 7.852 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003097/0.5724, allocations: 27.98 kB / 0.6876 GB, free: 7.824 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009845/0.5734, allocations: 67.92 kB / 0.6876 GB, free: 7.758 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001862/0.5736, allocations: 76.34 kB / 0.6877 GB, free: 7.684 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001072/0.5737, allocations: 47.98 kB / 0.6877 GB, free: 7.637 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003843/0.5775, allocations: 2.366 MB / 0.6901 GB, free: 5.285 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.11e-07/0.5776, allocations: 4 kB / 0.6901 GB, free: 5.281 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004755/0.5823, allocations: 1.111 MB / 0.6911 GB, free: 4.168 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.003884/0.5862, allocations: 3.172 MB / 0.6942 GB, free: 0.8984 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007432/0.5937, allocations: 4.462 MB / 0.6986 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.895e-06/0.5937, allocations: 1.875 kB / 0.6986 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001394/0.5951, allocations: 0.9529 MB / 0.6995 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002062/0.5972, allocations: 360.1 kB / 0.6999 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3128/0.9101, allocations: 42.22 MB / 0.7411 GB, free: 171.5 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00329/0.9134, allocations: 3.204 MB / 0.7442 GB, free: 170.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004357/0.9178, allocations: 2.238 MB / 0.7464 GB, free: 170 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001931/0.9197, allocations: 1.7 MB / 0.7481 GB, free: 168.7 MB / 0.5762 GB Notification: Performance of SimCode: time 6.71e-07/0.9197, allocations: 0 / 0.7481 GB, free: 168.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07971/0.9995, allocations: 51.5 MB / 0.7984 GB, free: 123.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.7/19.7, allocations: 16.91 kB / 0.7984 GB, free: 123.1 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