Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008548/0.0008548, allocations: 80.34 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008169/0.0008169, allocations: 156.9 kB / 23.94 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8944/0.8944, allocations: 177 MB / 204.1 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2315/0.2315, allocations: 34.24 MB / 294.8 MB, free: 0.7031 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.839e-06/4.839e-06, allocations: 7.938 kB / 442.1 MB, free: 1.586 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.56e-05/3.044e-05, allocations: 2.281 kB / 442.1 MB, free: 1.582 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.1874/0.1875, allocations: 7.914 MB / 450.1 MB, free: 40.12 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.006386/0.1939, allocations: 3.38 MB / 453.4 MB, free: 38.05 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001648/0.1955, allocations: 55.84 kB / 453.5 MB, free: 38.03 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00269/0.1982, allocations: 1.713 MB / 455.2 MB, free: 37.31 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003956/0.2022, allocations: 1.63 MB / 456.8 MB, free: 36.57 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001318/0.2035, allocations: 0.6038 MB / 457.4 MB, free: 36.33 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.004635/0.2081, allocations: 3.959 MB / 461.4 MB, free: 34.83 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00282/0.2109, allocations: 2.077 MB / 463.5 MB, free: 33.9 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002401/0.2133, allocations: 1.682 MB / 465.2 MB, free: 33.18 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001762/0.2151, allocations: 1.694 MB / 466.9 MB, free: 32.75 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004876/0.2156, allocations: 222.1 kB / 467.1 MB, free: 32.75 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001509/0.2171, allocations: 1.052 MB / 468.1 MB, free: 32.54 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009802/0.2181, allocations: 1.516 MB / 469.6 MB, free: 31.91 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008993/0.219, allocations: 0.9709 MB / 470.6 MB, free: 31.43 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004113/0.2231, allocations: 5.634 MB / 476.2 MB, free: 29.52 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.2231, allocations: 0 / 476.2 MB, free: 29.52 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.2231, allocations: 0 / 476.2 MB, free: 29.52 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.685e-05/0.2232, allocations: 0 / 476.2 MB, free: 29.52 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.006165/0.2293, allocations: 3.842 MB / 480.1 MB, free: 27.34 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/0.2294, allocations: 9.922 kB / 480.1 MB, free: 27.34 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005859/0.23, allocations: 0.5396 MB / 480.6 MB, free: 27.07 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03956/0.2695, allocations: 7.158 MB / 487.8 MB, free: 26.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004888/0.2744, allocations: 2.176 MB / 490 MB, free: 25.42 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001363/0.2746, allocations: 160.4 kB / 490.1 MB, free: 25.34 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006897/0.2753, allocations: 219.6 kB / 490.3 MB, free: 25.26 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009291/0.2845, allocations: 7.398 MB / 497.7 MB, free: 21.3 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001052/0.2847, allocations: 48.16 kB / 497.8 MB, free: 21.27 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002356/0.2849, allocations: 110.1 kB / 497.9 MB, free: 21.2 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001565/0.2865, allocations: 1.535 MB / 499.4 MB, free: 20.6 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007946/0.2944, allocations: 6.174 MB / 0.4937 GB, free: 16.65 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02657/0.321, allocations: 28.93 MB / 0.522 GB, free: 2.828 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002834/0.3238, allocations: 1.689 MB / 0.5237 GB, free: 1.105 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009292/0.3247, allocations: 0.9886 MB / 0.5246 GB, free: 108 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001775/0.3249, allocations: 88.25 kB / 0.5247 GB, free: 20 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.347e-05/0.325, allocations: 47 kB / 0.5247 GB, free: 15.96 MB / 442.7 MB Notification: Performance of pre-optimization done (n=108): time 3.637e-06/0.325, allocations: 4 kB / 0.5248 GB, free: 15.96 MB / 442.7 MB Notification: Performance of matching and sorting (n=132): time 0.02001/0.345, allocations: 11.3 MB / 0.5358 GB, free: 4.59 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.751e-05/0.3451, allocations: 196.8 kB / 0.536 GB, free: 4.355 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004285/0.3493, allocations: 4.002 MB / 0.5399 GB, free: 360 kB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001705/0.3495, allocations: 49.62 kB / 0.5399 GB, free: 304 kB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001306/0.3508, allocations: 2.632 MB / 0.5425 GB, free: 13.64 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004889/0.3513, allocations: 0.5467 MB / 0.543 GB, free: 13.09 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009414/0.3522, allocations: 1.036 MB / 0.544 GB, free: 12.04 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.663e-05/0.3523, allocations: 301.1 kB / 0.5443 GB, free: 11.74 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002055/0.3544, allocations: 1.63 MB / 0.5459 GB, free: 10.11 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003655/0.358, allocations: 5.02 MB / 0.5508 GB, free: 3.387 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006379/0.3644, allocations: 7.17 MB / 0.5578 GB, free: 10.55 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.306e-05/0.3645, allocations: 40 kB / 0.5579 GB, free: 10.52 MB / 474.7 MB Notification: Performance of matching and sorting (n=675) (initialization): time 0.008756/0.3733, allocations: 6.57 MB / 0.5643 GB, free: 3.938 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.143e-05/0.3733, allocations: 56 kB / 0.5643 GB, free: 3.883 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000113/0.3734, allocations: 116 kB / 0.5644 GB, free: 3.77 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006681/0.3741, allocations: 409.1 kB / 0.5648 GB, free: 3.367 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002299/0.3764, allocations: 1.181 MB / 0.566 GB, free: 2.184 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00281/0.3792, allocations: 3.237 MB / 0.5692 GB, free: 14.83 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002726/0.3819, allocations: 315.6 kB / 0.5695 GB, free: 14.52 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000395/0.3823, allocations: 328 kB / 0.5698 GB, free: 14.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.twoHeadedArrow,Distance1.arrow.headAtOrigin,BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (640): * Single equations (assignments): 636 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002248/0.3846, allocations: 1.701 MB / 0.5714 GB, free: 12.49 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004872/0.3851, allocations: 313.8 kB / 0.5717 GB, free: 12.18 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001869/0.3869, allocations: 1.721 MB / 0.5734 GB, free: 10.45 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-05/0.387, allocations: 16 kB / 0.5734 GB, free: 10.43 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.387, allocations: 0 / 0.5734 GB, free: 10.43 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.387, allocations: 11.97 kB / 0.5734 GB, free: 10.42 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006107/0.3931, allocations: 5.006 MB / 0.5783 GB, free: 5.352 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.3931, allocations: 0 / 0.5783 GB, free: 5.352 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005108/0.3936, allocations: 201.7 kB / 0.5785 GB, free: 5.156 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004034/0.394, allocations: 224.9 kB / 0.5787 GB, free: 4.934 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.245e-05/0.3941, allocations: 27.92 kB / 0.5788 GB, free: 4.906 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001932/0.396, allocations: 2.62 MB / 0.5813 GB, free: 2.172 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.396, allocations: 0 / 0.5813 GB, free: 2.172 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003828/0.3998, allocations: 3.74 MB / 0.585 GB, free: 14.39 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008061/0.4006, allocations: 317.8 kB / 0.5853 GB, free: 14.08 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002248/0.4009, allocations: 19.98 kB / 0.5853 GB, free: 14.06 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007017/0.4016, allocations: 95.86 kB / 0.5854 GB, free: 13.97 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001442/0.4017, allocations: 77.39 kB / 0.5855 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.184e-05/0.4018, allocations: 36 kB / 0.5855 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002842/0.4046, allocations: 2.401 MB / 0.5878 GB, free: 11.47 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8e-08/0.4046, allocations: 0 / 0.5878 GB, free: 11.47 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00293/0.4075, allocations: 0.8632 MB / 0.5887 GB, free: 10.61 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (102): * Single equations (assignments): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004054/0.4116, allocations: 4.37 MB / 0.5929 GB, free: 6.199 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004612/0.4162, allocations: 3.788 MB / 0.5966 GB, free: 2.418 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.432e-06/0.4162, allocations: 0 / 0.5966 GB, free: 2.418 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001086/0.4173, allocations: 0.9968 MB / 0.5976 GB, free: 1.414 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001854/0.4191, allocations: 375.5 kB / 0.598 GB, free: 1.062 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04322/0.4624, allocations: 36.98 MB / 0.6341 GB, free: 7.051 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001903/0.4643, allocations: 2.077 MB / 0.6361 GB, free: 4.938 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002768/0.467, allocations: 1.702 MB / 0.6378 GB, free: 3.23 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001408/0.4684, allocations: 1.414 MB / 0.6392 GB, free: 1.816 MB / 0.5417 GB Notification: Performance of SimCode: time 2.114e-06/0.4684, allocations: 0 / 0.6392 GB, free: 1.816 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2578/0.7262, allocations: 55.14 MB / 0.693 GB, free: 155.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.05/10.78, allocations: 0 / 0.693 GB, free: 155.1 MB / 0.5417 GB " [Timeout remaining time 649] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009996 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Distance1.distance in file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.csv. Warning: Get data of variable Distance1.distance from file ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.873504440300167]