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.001885/0.001885, allocations: 111.1 kB / 20.44 MB, free: 1.051 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.002722/0.002722, allocations: 212.2 kB / 23.73 MB, free: 4.152 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.568/1.568, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.2189/0.2189, allocations: 44.94 MB / 358.8 MB, free: 6.062 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.002056/0.002056, allocations: 71.89 kB / 0.493 GB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3317/0.3338, allocations: 65.48 MB / 0.557 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01061/0.3444, allocations: 7.917 MB / 0.5647 GB, free: 15.58 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007374/0.3518, allocations: 3.361 MB / 0.568 GB, free: 12.21 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001371/0.3531, allocations: 59.69 kB / 0.568 GB, free: 12.15 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003429/0.3566, allocations: 1.635 MB / 0.5696 GB, free: 10.51 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004169/0.3607, allocations: 1.576 MB / 0.5712 GB, free: 8.93 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001412/0.3621, allocations: 0.5653 MB / 0.5717 GB, free: 8.363 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00533/0.3675, allocations: 3.584 MB / 0.5752 GB, free: 4.773 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002951/0.3704, allocations: 1.809 MB / 0.577 GB, free: 2.906 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002514/0.3729, allocations: 1.117 MB / 0.5781 GB, free: 1.785 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002951/0.3759, allocations: 1.592 MB / 0.5796 GB, free: 192 kB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007494/0.3766, allocations: 224 kB / 0.5798 GB, free: 15.96 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002383/0.379, allocations: 0.9985 MB / 0.5808 GB, free: 14.97 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001782/0.3808, allocations: 1.445 MB / 0.5822 GB, free: 13.52 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002049/0.3828, allocations: 1.25 MB / 0.5835 GB, free: 12.26 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007508/0.3904, allocations: 5.587 MB / 0.5889 GB, free: 6.652 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.3904, allocations: 0 / 0.5889 GB, free: 6.652 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3904, allocations: 0 / 0.5889 GB, free: 6.652 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001587/0.3905, allocations: 0 / 0.5889 GB, free: 6.652 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.009539/0.4001, allocations: 3.814 MB / 0.5926 GB, free: 2.781 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/0.4001, allocations: 8.031 kB / 0.5926 GB, free: 2.773 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009245/0.401, allocations: 0.5501 MB / 0.5932 GB, free: 2.211 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08403/0.4851, allocations: 6.943 MB / 0.6 GB, free: 11.26 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006257/0.4913, allocations: 2.341 MB / 0.6022 GB, free: 8.879 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001576/0.4915, allocations: 160.5 kB / 0.6024 GB, free: 8.719 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005919/0.4921, allocations: 227.8 kB / 0.6026 GB, free: 8.496 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.012/0.5041, allocations: 7.386 MB / 0.6098 GB, free: 484 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.719e-05/0.5042, allocations: 47.69 kB / 0.6099 GB, free: 436 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002876/0.5045, allocations: 99.89 kB / 0.61 GB, free: 336 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002632/0.5071, allocations: 1.542 MB / 0.6115 GB, free: 14.78 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01201/0.5191, allocations: 6.17 MB / 0.6175 GB, free: 8.598 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03596/0.5551, allocations: 28.74 MB / 0.6456 GB, free: 10.94 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004203/0.5593, allocations: 1.642 MB / 0.6472 GB, free: 9.262 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001438/0.5607, allocations: 0.99 MB / 0.6481 GB, free: 8.258 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002791/0.561, allocations: 100.2 kB / 0.6482 GB, free: 8.16 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.985e-05/0.561, allocations: 39 kB / 0.6483 GB, free: 8.113 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 3.386e-06/0.561, allocations: 0 / 0.6483 GB, free: 8.113 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03229/0.5933, allocations: 10.96 MB / 0.659 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001292/0.5934, allocations: 192.6 kB / 0.6592 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00522/0.5987, allocations: 3.811 MB / 0.6629 GB, free: 9.047 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002287/0.5989, allocations: 41.7 kB / 0.6629 GB, free: 9 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002306/0.6012, allocations: 2.671 MB / 0.6655 GB, free: 6.301 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007066/0.6019, allocations: 0.5468 MB / 0.6661 GB, free: 5.75 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001419/0.6033, allocations: 1.06 MB / 0.6671 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.6035, allocations: 301.1 kB / 0.6674 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002576/0.606, allocations: 1.626 MB / 0.669 GB, free: 2.75 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0062/0.6122, allocations: 5.02 MB / 0.6739 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009399/0.6216, allocations: 7.165 MB / 0.6809 GB, free: 3.207 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001051/0.6217, allocations: 36 kB / 0.6809 GB, free: 3.172 MB / 0.5137 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01159/0.6333, allocations: 6.576 MB / 0.6873 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.751e-05/0.6334, allocations: 56 kB / 0.6874 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001251/0.6335, allocations: 116 kB / 0.6875 GB, free: 12.42 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008941/0.6344, allocations: 404.7 kB / 0.6879 GB, free: 12.02 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003432/0.6379, allocations: 1.185 MB / 0.689 GB, free: 10.83 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003927/0.6418, allocations: 3.186 MB / 0.6921 GB, free: 7.531 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003456/0.6453, allocations: 287.9 kB / 0.6924 GB, free: 7.25 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005215/0.6458, allocations: 320 kB / 0.6927 GB, free: 6.938 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.002546/0.6483, allocations: 1.697 MB / 0.6944 GB, free: 5.227 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005688/0.6489, allocations: 313.9 kB / 0.6947 GB, free: 4.918 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0031/0.652, allocations: 1.721 MB / 0.6964 GB, free: 3.184 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-05/0.652, allocations: 16 kB / 0.6964 GB, free: 3.168 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.129e-05/0.652, allocations: 12.03 kB / 0.6964 GB, free: 3.156 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.271e-05/0.652, allocations: 11.92 kB / 0.6964 GB, free: 3.145 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009269/0.6613, allocations: 4.917 MB / 0.7012 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.53e-05/0.6613, allocations: 4 kB / 0.7012 GB, free: 14.15 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009917/0.6623, allocations: 195.7 kB / 0.7014 GB, free: 13.96 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006974/0.663, allocations: 224.7 kB / 0.7016 GB, free: 13.74 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.846e-05/0.6631, allocations: 27.98 kB / 0.7016 GB, free: 13.71 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003265/0.6664, allocations: 2.561 MB / 0.7041 GB, free: 11.04 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.905e-06/0.6664, allocations: 12.16 kB / 0.7041 GB, free: 11.02 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005856/0.6722, allocations: 3.731 MB / 0.7078 GB, free: 7.266 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001115/0.6734, allocations: 293.8 kB / 0.7081 GB, free: 6.977 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003074/0.6737, allocations: 32.06 kB / 0.7081 GB, free: 6.945 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.6747, allocations: 63.91 kB / 0.7082 GB, free: 6.883 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001962/0.6749, allocations: 80.39 kB / 0.7082 GB, free: 6.805 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.934e-05/0.675, allocations: 35.98 kB / 0.7083 GB, free: 6.77 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003655/0.6787, allocations: 2.265 MB / 0.7105 GB, free: 4.516 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6787, allocations: 0 / 0.7105 GB, free: 4.516 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003846/0.6825, allocations: 0.7538 MB / 0.7112 GB, free: 3.762 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.005926/0.6885, allocations: 4.358 MB / 0.7155 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006401/0.6949, allocations: 3.784 MB / 0.7192 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.6949, allocations: 0 / 0.7192 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001492/0.6964, allocations: 0.9956 MB / 0.7201 GB, free: 10.58 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002145/0.6985, allocations: 375.7 kB / 0.7205 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3099/1.008, allocations: 36.6 MB / 0.7562 GB, free: 136.2 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002017/1.01, allocations: 2.078 MB / 0.7583 GB, free: 134.2 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003098/1.013, allocations: 1.693 MB / 0.7599 GB, free: 132.6 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001501/1.015, allocations: 1.405 MB / 0.7613 GB, free: 131.2 MB / 0.5606 GB Notification: Performance of SimCode: time 1.152e-06/1.015, allocations: 0 / 0.7613 GB, free: 131.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08985/1.105, allocations: 53.63 MB / 0.8137 GB, free: 78.31 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.32/16.43, allocations: 4.062 kB / 0.8137 GB, free: 78.31 MB / 0.5606 GB " [Timeout remaining time 643] (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: 19.635641341097653]