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.001464/0.001464, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.001726/0.001726, allocations: 204.3 kB / 20.74 MB, free: 2.316 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.546/1.546, allocations: 230.6 MB / 254.1 MB, free: 15.11 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.2227/0.2227, allocations: 44.9 MB / 355.1 MB, free: 12.37 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.002026/0.002026, allocations: 71.89 kB / 499.6 MB, free: 11.74 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.138, allocations: 65.41 MB / 0.5517 GB, free: 10.2 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01188/0.1499, allocations: 8.974 MB / 0.5605 GB, free: 1.184 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00781/0.1577, allocations: 3.567 MB / 0.564 GB, free: 13.6 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001599/0.1593, allocations: 55.75 kB / 0.564 GB, free: 13.55 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00373/0.1631, allocations: 1.693 MB / 0.5657 GB, free: 11.85 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004424/0.1675, allocations: 1.572 MB / 0.5672 GB, free: 10.27 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001603/0.1691, allocations: 0.5575 MB / 0.5678 GB, free: 9.711 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006022/0.1751, allocations: 3.572 MB / 0.5713 GB, free: 6.133 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002873/0.178, allocations: 1.876 MB / 0.5731 GB, free: 4.203 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002188/0.1802, allocations: 1.113 MB / 0.5742 GB, free: 3.086 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002709/0.1829, allocations: 1.67 MB / 0.5758 GB, free: 1.41 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00066/0.1835, allocations: 220 kB / 0.576 GB, free: 1.195 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00231/0.1858, allocations: 1.135 MB / 0.5771 GB, free: 60 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001916/0.1878, allocations: 1.453 MB / 0.5785 GB, free: 14.6 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002364/0.1901, allocations: 1.689 MB / 0.5802 GB, free: 12.9 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007382/0.1975, allocations: 5.56 MB / 0.5856 GB, free: 7.32 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.1975, allocations: 0 / 0.5856 GB, free: 7.32 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1975, allocations: 4 kB / 0.5856 GB, free: 7.316 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0001562/0.1977, allocations: 0 / 0.5856 GB, free: 7.316 MB / 446.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.01043/0.2081, allocations: 3.893 MB / 0.5894 GB, free: 3.348 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.149e-05/0.2082, allocations: 8.031 kB / 0.5894 GB, free: 3.34 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009892/0.2091, allocations: 0.5423 MB / 0.59 GB, free: 2.785 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3733/0.5824, allocations: 6.938 MB / 0.5967 GB, free: 35.52 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005447/0.5879, allocations: 2.403 MB / 0.5991 GB, free: 35.12 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001379/0.588, allocations: 164 kB / 0.5993 GB, free: 35.07 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005771/0.5886, allocations: 218.1 kB / 0.5995 GB, free: 35.03 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0112/0.5998, allocations: 7.341 MB / 0.6066 GB, free: 31.4 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.242e-05/0.5999, allocations: 40.12 kB / 0.6067 GB, free: 31.38 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002846/0.6002, allocations: 105.1 kB / 0.6068 GB, free: 31.34 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002682/0.6029, allocations: 1.54 MB / 0.6083 GB, free: 31.06 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01069/0.6135, allocations: 6.192 MB / 0.6143 GB, free: 29.15 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02594/0.6395, allocations: 29.91 MB / 0.6435 GB, free: 0.9492 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004454/0.6439, allocations: 2.095 MB / 0.6456 GB, free: 14.71 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001463/0.6454, allocations: 0.9886 MB / 0.6465 GB, free: 13.71 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004138/0.6458, allocations: 319.5 kB / 0.6468 GB, free: 13.34 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.23e-05/0.6459, allocations: 50.94 kB / 0.6469 GB, free: 13.28 MB / 462.1 MB Notification: Performance of pre-optimization done (n=108): time 3.046e-06/0.6459, allocations: 0 / 0.6469 GB, free: 13.28 MB / 462.1 MB Notification: Performance of matching and sorting (n=132): time 0.03548/0.6813, allocations: 11.06 MB / 0.6577 GB, free: 2.215 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001348/0.6815, allocations: 192.6 kB / 0.6579 GB, free: 1.984 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005333/0.6868, allocations: 3.622 MB / 0.6614 GB, free: 14.36 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002202/0.687, allocations: 53.69 kB / 0.6615 GB, free: 14.3 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00218/0.6892, allocations: 2.659 MB / 0.6641 GB, free: 11.62 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006898/0.6899, allocations: 0.5506 MB / 0.6646 GB, free: 11.06 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001434/0.6913, allocations: 1.052 MB / 0.6656 GB, free: 10 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.6915, allocations: 305.1 kB / 0.6659 GB, free: 9.699 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002537/0.694, allocations: 1.63 MB / 0.6675 GB, free: 8.062 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005255/0.6993, allocations: 4.962 MB / 0.6723 GB, free: 1.414 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008885/0.7081, allocations: 7.174 MB / 0.6794 GB, free: 8.578 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.596e-05/0.7082, allocations: 36 kB / 0.6794 GB, free: 8.543 MB / 494.1 MB Notification: Performance of matching and sorting (n=675) (initialization): time 0.0114/0.7196, allocations: 6.565 MB / 0.6858 GB, free: 1.973 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.674e-05/0.7197, allocations: 61.75 kB / 0.6859 GB, free: 1.914 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001383/0.7198, allocations: 119.9 kB / 0.686 GB, free: 1.797 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009476/0.7208, allocations: 400.6 kB / 0.6864 GB, free: 1.402 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003583/0.7244, allocations: 1.189 MB / 0.6875 GB, free: 216 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004099/0.7285, allocations: 3.311 MB / 0.6907 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00344/0.7319, allocations: 283.7 kB / 0.691 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005414/0.7324, allocations: 328 kB / 0.6913 GB, free: 12.17 MB / 0.4981 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.002564/0.735, allocations: 1.707 MB / 0.693 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006268/0.7356, allocations: 322.1 kB / 0.6933 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003365/0.739, allocations: 1.714 MB / 0.695 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.032e-05/0.739, allocations: 16 kB / 0.695 GB, free: 8.391 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.739, allocations: 4 kB / 0.695 GB, free: 8.387 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.387e-05/0.7391, allocations: 7.922 kB / 0.695 GB, free: 8.379 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009948/0.749, allocations: 5.239 MB / 0.7001 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.127e-05/0.749, allocations: 0 / 0.7001 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/0.75, allocations: 199.7 kB / 0.7003 GB, free: 2.852 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007192/0.7508, allocations: 224.6 kB / 0.7005 GB, free: 2.629 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.757e-05/0.7509, allocations: 27.98 kB / 0.7006 GB, free: 2.602 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003257/0.7541, allocations: 2.692 MB / 0.7032 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.7541, allocations: 4 kB / 0.7032 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005751/0.7599, allocations: 3.732 MB / 0.7068 GB, free: 12 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008239/0.7607, allocations: 366.9 kB / 0.7072 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004335/0.7611, allocations: 24.19 kB / 0.7072 GB, free: 11.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/0.7622, allocations: 67.91 kB / 0.7073 GB, free: 11.53 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001955/0.7624, allocations: 72.44 kB / 0.7073 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.797e-05/0.7625, allocations: 39.94 kB / 0.7074 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003552/0.7661, allocations: 2.269 MB / 0.7096 GB, free: 9.164 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7661, allocations: 0 / 0.7096 GB, free: 9.164 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003752/0.7698, allocations: 0.7577 MB / 0.7103 GB, free: 8.406 MB / 0.5137 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.006037/0.7759, allocations: 4.357 MB / 0.7146 GB, free: 4.016 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006408/0.7823, allocations: 3.796 MB / 0.7183 GB, free: 232 kB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.7823, allocations: 0 / 0.7183 GB, free: 232 kB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001557/0.7839, allocations: 0.992 MB / 0.7193 GB, free: 15.22 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002156/0.786, allocations: 376.2 kB / 0.7196 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05445/0.8405, allocations: 36.54 MB / 0.7553 GB, free: 5.293 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002957/0.8434, allocations: 2.635 MB / 0.7579 GB, free: 2.625 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003782/0.8472, allocations: 1.694 MB / 0.7595 GB, free: 0.9258 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002061/0.8493, allocations: 1.413 MB / 0.7609 GB, free: 15.51 MB / 0.5762 GB Notification: Performance of SimCode: time 1.923e-06/0.8493, allocations: 0 / 0.7609 GB, free: 15.51 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1099/0.9591, allocations: 53.73 MB / 0.8134 GB, free: 10.07 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.82/24.78, allocations: 4.062 kB / 0.8134 GB, free: 10.07 MB / 0.6231 GB " [Timeout remaining time 635] (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.052221277728677]