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.0008798/0.0008798, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.000847/0.000847, allocations: 170.3 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9416/0.9416, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.2992/0.2992, allocations: 32.79 MB / 293.5 MB, free: 1.211 MB / 266.7 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="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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.595e-06/2.595e-06, allocations: 0 / 439.6 MB, free: 4.266 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.449e-05/2.708e-05, allocations: 2.281 kB / 439.6 MB, free: 4.262 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.AbsoluteSensor2): time 0.1988/0.1989, allocations: 10.4 MB / 450 MB, free: 40.87 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.007169/0.206, allocations: 3.918 MB / 453.9 MB, free: 38.57 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002145/0.2082, allocations: 87.88 kB / 454 MB, free: 38.55 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002413/0.2106, allocations: 1.698 MB / 455.7 MB, free: 37.86 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00304/0.2136, allocations: 1.607 MB / 457.3 MB, free: 37.16 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001336/0.215, allocations: 1.213 MB / 458.5 MB, free: 36.62 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.003583/0.2185, allocations: 3.569 MB / 462.1 MB, free: 35.3 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002244/0.2208, allocations: 1.996 MB / 464.1 MB, free: 34.36 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002836/0.2236, allocations: 1.719 MB / 465.8 MB, free: 33.63 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001831/0.2255, allocations: 1.618 MB / 467.4 MB, free: 33.19 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006766/0.2261, allocations: 235.4 kB / 467.6 MB, free: 33.19 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001184/0.2273, allocations: 0.6929 MB / 468.3 MB, free: 33.07 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001136/0.2285, allocations: 1.636 MB / 470 MB, free: 32.38 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001416/0.2299, allocations: 0.9494 MB / 470.9 MB, free: 31.9 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005038/0.2349, allocations: 6.028 MB / 476.9 MB, free: 29.77 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.2349, allocations: 0 / 476.9 MB, free: 29.77 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.775e-06/0.2349, allocations: 0 / 476.9 MB, free: 29.77 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002127/0.2351, allocations: 0 / 476.9 MB, free: 29.77 MB / 410.7 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.007106/0.2422, allocations: 3.969 MB / 480.9 MB, free: 27.34 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.496e-05/0.2423, allocations: 9.219 kB / 480.9 MB, free: 27.34 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001002/0.2433, allocations: 0.7085 MB / 481.6 MB, free: 26.99 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007025/0.2503, allocations: 3.025 MB / 484.7 MB, free: 26.6 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004263/0.2546, allocations: 1.763 MB / 486.4 MB, free: 25.66 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001577/0.2547, allocations: 192.3 kB / 486.6 MB, free: 25.56 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007062/0.2555, allocations: 252.4 kB / 486.8 MB, free: 25.47 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01447/0.2699, allocations: 10.05 MB / 496.9 MB, free: 20.85 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.388e-05/0.27, allocations: 31.5 kB / 496.9 MB, free: 20.83 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004864/0.2705, allocations: 130.2 kB / 497.1 MB, free: 20.74 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002924/0.2734, allocations: 2.314 MB / 499.4 MB, free: 20.33 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01322/0.2866, allocations: 8.932 MB / 0.4964 GB, free: 15.34 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03295/0.3196, allocations: 36.11 MB / 0.5317 GB, free: 10.11 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003956/0.3235, allocations: 2.422 MB / 0.534 GB, free: 7.633 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00127/0.3248, allocations: 1.135 MB / 0.5351 GB, free: 6.488 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006177/0.331, allocations: 4.575 MB / 0.5396 GB, free: 1.883 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.613e-05/0.331, allocations: 51.16 kB / 0.5396 GB, free: 1.82 MB / 442.7 MB Notification: Performance of pre-optimization done (n=150): time 5.881e-06/0.331, allocations: 0 / 0.5396 GB, free: 1.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=150): time 0.00473/0.3358, allocations: 3.45 MB / 0.543 GB, free: 14.36 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.283e-05/0.3358, allocations: 170.8 kB / 0.5432 GB, free: 14.16 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004232/0.3401, allocations: 4.089 MB / 0.5472 GB, free: 10.07 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001909/0.3403, allocations: 45.69 kB / 0.5472 GB, free: 10.02 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001606/0.3419, allocations: 3.282 MB / 0.5504 GB, free: 6.707 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005833/0.3424, allocations: 0.6204 MB / 0.551 GB, free: 6.082 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001252/0.3437, allocations: 1.29 MB / 0.5523 GB, free: 4.781 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.199e-05/0.3438, allocations: 309.1 kB / 0.5526 GB, free: 4.477 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002085/0.3459, allocations: 1.953 MB / 0.5545 GB, free: 2.52 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004101/0.35, allocations: 6.1 MB / 0.5604 GB, free: 10.34 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007757/0.3577, allocations: 8.8 MB / 0.569 GB, free: 15.47 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001255/0.3578, allocations: 44 kB / 0.5691 GB, free: 15.43 MB / 490.7 MB Notification: Performance of matching and sorting (n=849) (initialization): time 0.01149/0.3693, allocations: 7.723 MB / 0.5766 GB, free: 7.707 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.383e-05/0.3694, allocations: 68 kB / 0.5767 GB, free: 7.641 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001283/0.3695, allocations: 148 kB / 0.5768 GB, free: 7.496 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001258/0.3697, allocations: 195.9 kB / 0.577 GB, free: 7.305 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002938/0.3726, allocations: 1.45 MB / 0.5784 GB, free: 5.852 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00018/0.3728, allocations: 290.9 kB / 0.5787 GB, free: 5.566 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003414/0.3762, allocations: 0.9503 MB / 0.5796 GB, free: 4.613 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005764/0.3768, allocations: 396 kB / 0.58 GB, free: 4.227 MB / 490.7 MB 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.002843/0.3796, allocations: 2.195 MB / 0.5822 GB, free: 2.02 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003858/0.38, allocations: 321.8 kB / 0.5825 GB, free: 1.703 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004424/0.3804, allocations: 407 kB / 0.5829 GB, free: 1.305 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.875e-05/0.3805, allocations: 39.94 kB / 0.5829 GB, free: 1.266 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.191e-05/0.3805, allocations: 3.938 kB / 0.5829 GB, free: 1.262 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.3805, allocations: 7.969 kB / 0.5829 GB, free: 1.254 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006289/0.3868, allocations: 5.311 MB / 0.5881 GB, free: 11.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.358e-06/0.3868, allocations: 11.94 kB / 0.5881 GB, free: 11.81 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005415/0.3874, allocations: 203.7 kB / 0.5883 GB, free: 11.61 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.47e-05/0.3874, allocations: 12 kB / 0.5883 GB, free: 11.6 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.978e-05/0.3874, allocations: 28 kB / 0.5883 GB, free: 11.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.389e-05/0.3874, allocations: 22.81 kB / 0.5884 GB, free: 11.55 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.3874, allocations: 11.88 kB / 0.5884 GB, free: 11.54 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002113/0.3896, allocations: 2.534 MB / 0.5908 GB, free: 8.93 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000554/0.3901, allocations: 309.5 kB / 0.5911 GB, free: 8.625 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001807/0.3903, allocations: 28 kB / 0.5912 GB, free: 8.598 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005536/0.3908, allocations: 63.92 kB / 0.5912 GB, free: 8.535 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001157/0.391, allocations: 92.17 kB / 0.5913 GB, free: 8.445 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.622e-05/0.391, allocations: 39.98 kB / 0.5914 GB, free: 8.406 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00247/0.3935, allocations: 2.338 MB / 0.5936 GB, free: 6.082 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.5e-07/0.3935, allocations: 0 / 0.5936 GB, free: 6.082 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003354/0.3968, allocations: 1.075 MB / 0.5947 GB, free: 5.004 MB / 0.4948 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.00261/0.3995, allocations: 3.167 MB / 0.5978 GB, free: 1.738 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005727/0.4052, allocations: 4.259 MB / 0.6019 GB, free: 13.52 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.925e-06/0.4052, allocations: 0 / 0.6019 GB, free: 13.52 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0008243/0.406, allocations: 0.8749 MB / 0.6028 GB, free: 12.64 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00161/0.4076, allocations: 363.1 kB / 0.6031 GB, free: 12.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.222/0.6296, allocations: 41.54 MB / 0.6437 GB, free: 166.6 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002084/0.6317, allocations: 2.614 MB / 0.6463 GB, free: 166.3 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002936/0.6346, allocations: 2.226 MB / 0.6484 GB, free: 166.3 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001326/0.6359, allocations: 1.667 MB / 0.6501 GB, free: 165.6 MB / 0.5417 GB Notification: Performance of SimCode: time 1.402e-06/0.6359, allocations: 0 / 0.6501 GB, free: 165.6 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07729/0.7132, allocations: 49.92 MB / 0.6988 GB, free: 151.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.578/10.29, allocations: 7.688 kB / 0.6988 GB, free: 151.2 MB / 0.5417 GB " [Timeout remaining time 650] (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.000219912 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.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/AbsoluteSensor2/AbsoluteSensor2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.csv. Warning: Get data of variable freeMotion.r[3] from file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.csv failed! Error: Could not read variable freeMotion.r[2] in file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.csv. Warning: Get data of variable freeMotion.r[2] from file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.csv failed! Error: Could not read variable freeMotion.r[1] in file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.csv. Warning: Get data of variable freeMotion.r[1] from file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.AbsoluteSensor2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.557126371189952]