Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.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.001378/0.001378, allocations: 113.6 kB / 17.12 MB, free: 5.93 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.001422/0.001422, allocations: 213 kB / 20.09 MB, free: 2.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.492/1.492, allocations: 207.6 MB / 230.5 MB, free: 4.043 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3241/0.3241, allocations: 44.23 MB / 326.6 MB, free: 6.816 MB / 254.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Distance,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002147/0.002147, allocations: 71.89 kB / 462.2 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2978/0.3, allocations: 60.99 MB / 0.5109 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.008473/0.3084, allocations: 9.484 MB / 0.5202 GB, free: 5.473 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007115/0.3155, allocations: 3.614 MB / 0.5237 GB, free: 1.848 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002088/0.3176, allocations: 63.69 kB / 0.5238 GB, free: 1.785 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003346/0.321, allocations: 1.717 MB / 0.5255 GB, free: 64 kB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006478/0.3274, allocations: 1.681 MB / 0.5271 GB, free: 14.38 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001638/0.3291, allocations: 0.5575 MB / 0.5277 GB, free: 13.81 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006291/0.3354, allocations: 3.521 MB / 0.5311 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003007/0.3384, allocations: 1.926 MB / 0.533 GB, free: 8.309 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002542/0.3409, allocations: 1.183 MB / 0.5341 GB, free: 7.121 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00291/0.3438, allocations: 1.779 MB / 0.5359 GB, free: 5.336 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006624/0.3445, allocations: 239.9 kB / 0.5361 GB, free: 5.102 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002191/0.3467, allocations: 1.151 MB / 0.5372 GB, free: 3.949 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001694/0.3484, allocations: 1.55 MB / 0.5387 GB, free: 2.395 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00226/0.3506, allocations: 1.81 MB / 0.5405 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007632/0.3583, allocations: 5.961 MB / 0.5463 GB, free: 10.59 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.3583, allocations: 4 kB / 0.5463 GB, free: 10.59 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3583, allocations: 0 / 0.5463 GB, free: 10.59 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001727/0.3585, allocations: 4 kB / 0.5463 GB, free: 10.59 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: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.01079/0.3692, allocations: 4.1 MB / 0.5503 GB, free: 6.41 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/0.3693, allocations: 11.89 kB / 0.5503 GB, free: 6.398 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001139/0.3704, allocations: 0.5716 MB / 0.5509 GB, free: 5.816 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08825/0.4587, allocations: 6.993 MB / 0.5577 GB, free: 14.81 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00615/0.4648, allocations: 2.737 MB / 0.5604 GB, free: 12.01 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001572/0.465, allocations: 172.7 kB / 0.5606 GB, free: 11.84 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006295/0.4656, allocations: 235.8 kB / 0.5608 GB, free: 11.61 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01235/0.478, allocations: 7.816 MB / 0.5684 GB, free: 3.16 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.306e-05/0.4781, allocations: 51.62 kB / 0.5685 GB, free: 3.109 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003064/0.4784, allocations: 111.9 kB / 0.5686 GB, free: 3 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00287/0.4812, allocations: 1.664 MB / 0.5702 GB, free: 1.332 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01224/0.4935, allocations: 6.625 MB / 0.5767 GB, free: 10.69 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04221/0.5357, allocations: 31.16 MB / 0.6071 GB, free: 10.58 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005127/0.5408, allocations: 2.205 MB / 0.6093 GB, free: 8.23 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001691/0.5425, allocations: 1.032 MB / 0.6103 GB, free: 7.188 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004416/0.5429, allocations: 323.8 kB / 0.6106 GB, free: 6.816 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.059e-05/0.543, allocations: 51 kB / 0.6106 GB, free: 6.758 MB / 478.1 MB Notification: Performance of pre-optimization done (n=117): time 3.637e-06/0.543, allocations: 0 / 0.6106 GB, free: 6.758 MB / 478.1 MB Notification: Performance of matching and sorting (n=141): time 0.03698/0.58, allocations: 11.57 MB / 0.6219 GB, free: 11.08 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00014/0.5801, allocations: 196.6 kB / 0.6221 GB, free: 10.85 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005761/0.5859, allocations: 3.757 MB / 0.6258 GB, free: 7.098 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002528/0.5861, allocations: 45.7 kB / 0.6258 GB, free: 7.047 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002874/0.589, allocations: 2.796 MB / 0.6285 GB, free: 4.223 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008495/0.5899, allocations: 0.5893 MB / 0.6291 GB, free: 3.629 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00169/0.5915, allocations: 1.092 MB / 0.6302 GB, free: 2.527 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001923/0.5917, allocations: 305.1 kB / 0.6305 GB, free: 2.227 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003098/0.5948, allocations: 1.697 MB / 0.6321 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00668/0.6015, allocations: 5.13 MB / 0.6371 GB, free: 9.66 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01135/0.6129, allocations: 7.438 MB / 0.6444 GB, free: 0.5117 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001084/0.613, allocations: 32.19 kB / 0.6444 GB, free: 492 kB / 0.4981 GB Notification: Performance of matching and sorting (n=700) (initialization): time 0.2342/0.8472, allocations: 6.799 MB / 0.6511 GB, free: 116.5 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.115e-05/0.8473, allocations: 61.12 kB / 0.6511 GB, free: 116.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001565/0.8474, allocations: 123.5 kB / 0.6513 GB, free: 116.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/0.8484, allocations: 400.5 kB / 0.6516 GB, free: 116.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004052/0.8525, allocations: 1.24 MB / 0.6528 GB, free: 116.3 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003346/0.8558, allocations: 3.334 MB / 0.6561 GB, free: 114.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003734/0.8596, allocations: 293.3 kB / 0.6564 GB, free: 114 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007307/0.8603, allocations: 345.4 kB / 0.6567 GB, free: 114 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 27 (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 (665): * Single equations (assignments): 661 * 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.002397/0.8627, allocations: 1.778 MB / 0.6584 GB, free: 113.2 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005647/0.8633, allocations: 326.6 kB / 0.6588 GB, free: 113.2 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002968/0.8662, allocations: 1.865 MB / 0.6606 GB, free: 112.5 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.498e-05/0.8662, allocations: 18.53 kB / 0.6606 GB, free: 112.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.8663, allocations: 3.875 kB / 0.6606 GB, free: 112.5 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.167e-05/0.8663, allocations: 3.656 kB / 0.6606 GB, free: 112.5 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007588/0.8739, allocations: 5.556 MB / 0.666 GB, free: 110.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/0.8739, allocations: 3.656 kB / 0.666 GB, free: 110.3 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009607/0.8748, allocations: 212.1 kB / 0.6662 GB, free: 110.3 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005986/0.8754, allocations: 231.7 kB / 0.6665 GB, free: 110.3 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.845e-05/0.8755, allocations: 22.94 kB / 0.6665 GB, free: 110.2 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002434/0.8779, allocations: 2.713 MB / 0.6691 GB, free: 108 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.878, allocations: 288 / 0.6691 GB, free: 108 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0044/0.8824, allocations: 3.913 MB / 0.673 GB, free: 104.6 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001144/0.8835, allocations: 0.5527 MB / 0.6735 GB, free: 104.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003468/0.8838, allocations: 31.88 kB / 0.6735 GB, free: 104 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00112/0.885, allocations: 71.91 kB / 0.6736 GB, free: 104 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000195/0.8852, allocations: 68.56 kB / 0.6737 GB, free: 103.9 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.581e-05/0.8852, allocations: 39.98 kB / 0.6737 GB, free: 103.9 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002749/0.888, allocations: 2.358 MB / 0.676 GB, free: 101.5 MB / 0.4981 GB Notification: Performance of sort global known variables: time 7e-08/0.888, allocations: 0 / 0.676 GB, free: 101.5 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004458/0.8924, allocations: 0.8131 MB / 0.6768 GB, free: 100.7 MB / 0.4981 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 (112): * Single equations (assignments): 108 * 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.005029/0.8975, allocations: 4.537 MB / 0.6812 GB, free: 96.16 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005931/0.9034, allocations: 3.965 MB / 0.6851 GB, free: 92.21 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/0.9034, allocations: 0 / 0.6851 GB, free: 92.21 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00143/0.9048, allocations: 1.065 MB / 0.6861 GB, free: 91.13 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002197/0.907, allocations: 372.6 kB / 0.6865 GB, free: 90.77 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04157/0.9486, allocations: 38.16 MB / 0.7238 GB, free: 47.46 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002296/0.9509, allocations: 2.758 MB / 0.7265 GB, free: 44.68 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.003376/0.9543, allocations: 1.754 MB / 0.7282 GB, free: 42.93 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001707/0.956, allocations: 1.511 MB / 0.7296 GB, free: 41.42 MB / 0.4981 GB Notification: Performance of SimCode: time 1.102e-06/0.956, allocations: 0 / 0.7296 GB, free: 41.42 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09676/1.053, allocations: 55.93 MB / 0.7843 GB, free: 1.473 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.56/19.61, allocations: 9.031 kB / 0.7843 GB, free: 1.465 MB / 0.5137 GB " [Timeout remaining time 640] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.csv. Warning: Get data of variable Distance1.distance from file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 22.677593639004044]