Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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.001315/0.001315, allocations: 109.2 kB / 20.43 MB, free: 1.473 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.001427/0.001427, allocations: 213.7 kB / 23.74 MB, free: 4.688 MB / 14.72 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 1.468/1.468, allocations: 230.6 MB / 257.5 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] 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.2377/0.2377, allocations: 44.91 MB / 358.8 MB, free: 6.312 MB / 286.1 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.Distance,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 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.002023/0.002023, allocations: 71.88 kB / 0.4931 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3245/0.3265, allocations: 65.47 MB / 0.557 GB, free: 7.551 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01195/0.3385, allocations: 8.989 MB / 0.5658 GB, free: 14.75 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008473/0.3469, allocations: 3.59 MB / 0.5693 GB, free: 11.15 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001615/0.3486, allocations: 55.75 kB / 0.5694 GB, free: 11.1 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003635/0.3522, allocations: 1.697 MB / 0.571 GB, free: 9.395 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004968/0.3572, allocations: 1.58 MB / 0.5726 GB, free: 7.809 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001601/0.3588, allocations: 0.5652 MB / 0.5731 GB, free: 7.242 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006384/0.3651, allocations: 3.576 MB / 0.5766 GB, free: 3.66 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003657/0.3688, allocations: 1.821 MB / 0.5784 GB, free: 1.781 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002598/0.3714, allocations: 1.117 MB / 0.5795 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003756/0.3752, allocations: 1.67 MB / 0.5811 GB, free: 14.98 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007241/0.3759, allocations: 220 kB / 0.5813 GB, free: 14.77 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003101/0.379, allocations: 1.135 MB / 0.5824 GB, free: 13.63 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002303/0.3813, allocations: 1.457 MB / 0.5838 GB, free: 12.17 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00276/0.384, allocations: 1.677 MB / 0.5855 GB, free: 10.48 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009927/0.394, allocations: 5.576 MB / 0.5909 GB, free: 4.887 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.394, allocations: 0 / 0.5909 GB, free: 4.887 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.394, allocations: 0 / 0.5909 GB, free: 4.887 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001449/0.3941, allocations: 3.938 kB / 0.5909 GB, free: 4.883 MB / 430.1 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.009398/0.4035, allocations: 3.81 MB / 0.5947 GB, free: 1.016 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.4036, allocations: 8.031 kB / 0.5947 GB, free: 1.008 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007781/0.4043, allocations: 0.5423 MB / 0.5952 GB, free: 464 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08406/0.4884, allocations: 6.943 MB / 0.602 GB, free: 9.5 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006088/0.4945, allocations: 2.325 MB / 0.6042 GB, free: 7.137 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000169/0.4947, allocations: 160.5 kB / 0.6044 GB, free: 6.977 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007044/0.4954, allocations: 231.7 kB / 0.6046 GB, free: 6.75 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01195/0.5073, allocations: 7.339 MB / 0.6118 GB, free: 14.79 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001032/0.5074, allocations: 43.7 kB / 0.6118 GB, free: 14.74 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002914/0.5077, allocations: 99.89 kB / 0.6119 GB, free: 14.64 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002632/0.5103, allocations: 1.546 MB / 0.6134 GB, free: 13.09 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01134/0.5217, allocations: 6.182 MB / 0.6195 GB, free: 6.898 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03602/0.5577, allocations: 29.78 MB / 0.6486 GB, free: 8.191 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004255/0.562, allocations: 1.644 MB / 0.6502 GB, free: 6.512 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001422/0.5634, allocations: 0.9846 MB / 0.6511 GB, free: 5.512 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002855/0.5637, allocations: 104.2 kB / 0.6512 GB, free: 5.41 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/0.5637, allocations: 39 kB / 0.6513 GB, free: 5.363 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 3.156e-06/0.5637, allocations: 0 / 0.6513 GB, free: 5.363 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03337/0.5971, allocations: 10.91 MB / 0.6619 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001194/0.5972, allocations: 192.6 kB / 0.6621 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004969/0.6022, allocations: 3.622 MB / 0.6656 GB, free: 6.535 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001499/0.6023, allocations: 41.7 kB / 0.6657 GB, free: 6.488 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002055/0.6044, allocations: 2.671 MB / 0.6683 GB, free: 3.789 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005935/0.605, allocations: 0.5506 MB / 0.6688 GB, free: 3.234 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001369/0.6063, allocations: 1.052 MB / 0.6698 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001497/0.6065, allocations: 305.1 kB / 0.6701 GB, free: 1.871 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002514/0.609, allocations: 1.626 MB / 0.6717 GB, free: 244 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005547/0.6145, allocations: 4.969 MB / 0.6766 GB, free: 9.578 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009774/0.6243, allocations: 7.166 MB / 0.6836 GB, free: 0.75 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.725e-05/0.6244, allocations: 36 kB / 0.6836 GB, free: 0.7148 MB / 0.5137 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01278/0.6372, allocations: 6.577 MB / 0.69 GB, free: 10.13 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.084e-05/0.6373, allocations: 56 kB / 0.6901 GB, free: 10.08 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001152/0.6374, allocations: 116 kB / 0.6902 GB, free: 9.965 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009509/0.6383, allocations: 400.7 kB / 0.6906 GB, free: 9.57 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00383/0.6422, allocations: 1.185 MB / 0.6917 GB, free: 8.383 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00407/0.6462, allocations: 3.221 MB / 0.6949 GB, free: 5.051 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003354/0.6496, allocations: 283.7 kB / 0.6952 GB, free: 4.773 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005725/0.6502, allocations: 328 kB / 0.6955 GB, free: 4.453 MB / 0.5294 GB 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.002489/0.6526, allocations: 1.701 MB / 0.6971 GB, free: 2.738 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005113/0.6532, allocations: 313.9 kB / 0.6974 GB, free: 2.43 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00315/0.6563, allocations: 1.71 MB / 0.6991 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.829e-05/0.6563, allocations: 19.98 kB / 0.6991 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.6563, allocations: 11.94 kB / 0.6991 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.192e-05/0.6564, allocations: 4.094 kB / 0.6991 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01006/0.6664, allocations: 5.211 MB / 0.7042 GB, free: 11.38 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.43e-05/0.6664, allocations: 4 kB / 0.7042 GB, free: 11.38 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001033/0.6675, allocations: 191.7 kB / 0.7044 GB, free: 11.19 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007009/0.6682, allocations: 232.6 kB / 0.7046 GB, free: 10.96 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.344e-05/0.6683, allocations: 23.97 kB / 0.7047 GB, free: 10.93 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003198/0.6715, allocations: 2.596 MB / 0.7072 GB, free: 8.219 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.6715, allocations: 3.938 kB / 0.7072 GB, free: 8.215 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005704/0.6772, allocations: 3.736 MB / 0.7108 GB, free: 4.445 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008819/0.678, allocations: 289.8 kB / 0.7111 GB, free: 4.16 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003457/0.6784, allocations: 16 kB / 0.7111 GB, free: 4.145 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00108/0.6795, allocations: 63.92 kB / 0.7112 GB, free: 4.082 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001841/0.6797, allocations: 76.52 kB / 0.7113 GB, free: 4.008 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.667e-05/0.6798, allocations: 43.97 kB / 0.7113 GB, free: 3.965 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003536/0.6833, allocations: 2.257 MB / 0.7135 GB, free: 1.719 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6833, allocations: 3.938 kB / 0.7135 GB, free: 1.715 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003912/0.6872, allocations: 0.7616 MB / 0.7143 GB, free: 0.9531 MB / 0.545 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.006107/0.6933, allocations: 4.358 MB / 0.7185 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006848/0.7002, allocations: 3.783 MB / 0.7222 GB, free: 8.781 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/0.7002, allocations: 4 kB / 0.7222 GB, free: 8.777 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001603/0.7018, allocations: 0.9947 MB / 0.7232 GB, free: 7.766 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002085/0.7039, allocations: 369.8 kB / 0.7235 GB, free: 7.406 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2966/1, allocations: 36.59 MB / 0.7593 GB, free: 136.5 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001858/1.002, allocations: 2.64 MB / 0.7618 GB, free: 133.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002976/1.005, allocations: 1.701 MB / 0.7635 GB, free: 132.1 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001327/1.007, allocations: 1.409 MB / 0.7649 GB, free: 130.7 MB / 0.5606 GB Notification: Performance of SimCode: time 1.152e-06/1.007, allocations: 0 / 0.7649 GB, free: 130.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0924/1.099, allocations: 57.94 MB / 0.8215 GB, free: 73.22 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.69/25.79, allocations: 3.938 kB / 0.8215 GB, free: 73.21 MB / 0.5606 GB " [Timeout remaining time 634] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.csv. Warning: Get data of variable Distance1.distance from file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 28.90122563800105]