Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001265/0.001265, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001374/0.001374, allocations: 205.8 kB / 23.73 MB, free: 4.379 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.454/1.454, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2252/0.2252, allocations: 46.96 MB / 360.9 MB, free: 4.031 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001901, allocations: 67.91 kB / 0.4961 GB, free: 7.723 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3471/0.349, allocations: 66.04 MB / 0.5606 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01074/0.3598, allocations: 7.919 MB / 0.5683 GB, free: 12.27 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007831/0.3676, allocations: 3.367 MB / 0.5716 GB, free: 8.891 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00135/0.3689, allocations: 55.75 kB / 0.5717 GB, free: 8.836 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003421/0.3724, allocations: 1.627 MB / 0.5733 GB, free: 7.203 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00422/0.3766, allocations: 1.588 MB / 0.5748 GB, free: 5.609 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001348/0.3779, allocations: 0.5614 MB / 0.5753 GB, free: 5.047 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005469/0.3834, allocations: 3.576 MB / 0.5788 GB, free: 1.465 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002788/0.3862, allocations: 1.825 MB / 0.5806 GB, free: 15.58 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00186/0.388, allocations: 1.117 MB / 0.5817 GB, free: 14.46 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002341/0.3904, allocations: 1.674 MB / 0.5833 GB, free: 12.78 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00052/0.3909, allocations: 216 kB / 0.5836 GB, free: 12.57 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001976/0.3929, allocations: 1.014 MB / 0.5845 GB, free: 11.55 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001644/0.3945, allocations: 1.449 MB / 0.586 GB, free: 10.1 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001854/0.3964, allocations: 1.246 MB / 0.5872 GB, free: 8.848 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007484/0.4039, allocations: 5.591 MB / 0.5926 GB, free: 3.234 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.4039, allocations: 0 / 0.5926 GB, free: 3.234 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4039, allocations: 0 / 0.5926 GB, free: 3.234 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001345/0.404, allocations: 0 / 0.5926 GB, free: 3.234 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.008548/0.4125, allocations: 3.806 MB / 0.5964 GB, free: 15.37 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.4126, allocations: 12.03 kB / 0.5964 GB, free: 15.36 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006985/0.4133, allocations: 0.5423 MB / 0.5969 GB, free: 14.8 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08072/0.494, allocations: 6.947 MB / 0.6037 GB, free: 7.848 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006274/0.5003, allocations: 2.345 MB / 0.606 GB, free: 5.465 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001604/0.5004, allocations: 164.5 kB / 0.6061 GB, free: 5.301 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006993/0.5011, allocations: 215.8 kB / 0.6063 GB, free: 5.09 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01261/0.5138, allocations: 7.397 MB / 0.6136 GB, free: 13.05 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001044/0.5139, allocations: 39.64 kB / 0.6136 GB, free: 13.01 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003169/0.5142, allocations: 111.9 kB / 0.6137 GB, free: 12.9 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002656/0.5168, allocations: 1.535 MB / 0.6152 GB, free: 11.36 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01194/0.5288, allocations: 6.17 MB / 0.6212 GB, free: 5.184 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03873/0.5675, allocations: 28.74 MB / 0.6493 GB, free: 7.523 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004403/0.5719, allocations: 1.642 MB / 0.6509 GB, free: 5.844 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001507/0.5734, allocations: 0.9846 MB / 0.6519 GB, free: 4.848 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003217/0.5737, allocations: 88.31 kB / 0.6519 GB, free: 4.762 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.064e-05/0.5738, allocations: 50.88 kB / 0.652 GB, free: 4.703 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 3.577e-06/0.5738, allocations: 0 / 0.652 GB, free: 4.703 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03268/0.6065, allocations: 10.95 MB / 0.6627 GB, free: 9.688 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/0.6066, allocations: 196.5 kB / 0.6629 GB, free: 9.453 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005/0.6116, allocations: 3.811 MB / 0.6666 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002325/0.6118, allocations: 45.7 kB / 0.6666 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00209/0.6139, allocations: 2.671 MB / 0.6692 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006587/0.6146, allocations: 0.5468 MB / 0.6698 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001331/0.6159, allocations: 1.056 MB / 0.6708 GB, free: 1.273 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001411/0.616, allocations: 301.1 kB / 0.6711 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002457/0.6185, allocations: 1.63 MB / 0.6727 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005462/0.624, allocations: 5.02 MB / 0.6776 GB, free: 8.621 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009391/0.6333, allocations: 7.169 MB / 0.6846 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001167/0.6335, allocations: 32 kB / 0.6846 GB, free: 15.76 MB / 0.5294 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01237/0.6458, allocations: 6.568 MB / 0.691 GB, free: 9.184 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.048e-05/0.6459, allocations: 58.19 kB / 0.6911 GB, free: 9.129 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001495/0.6461, allocations: 120 kB / 0.6912 GB, free: 9.012 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000948/0.647, allocations: 400.9 kB / 0.6916 GB, free: 8.617 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003777/0.6508, allocations: 1.193 MB / 0.6927 GB, free: 7.422 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003988/0.6548, allocations: 3.186 MB / 0.6959 GB, free: 4.121 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003786/0.6586, allocations: 283.5 kB / 0.6961 GB, free: 3.844 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007575/0.6593, allocations: 328.3 kB / 0.6964 GB, free: 3.523 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.003662/0.663, allocations: 1.701 MB / 0.6981 GB, free: 1.809 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008925/0.6639, allocations: 317.9 kB / 0.6984 GB, free: 1.496 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003421/0.6673, allocations: 1.71 MB / 0.7001 GB, free: 15.77 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.178e-05/0.6673, allocations: 23.98 kB / 0.7001 GB, free: 15.75 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.231e-05/0.6674, allocations: 11.88 kB / 0.7001 GB, free: 15.74 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/0.6674, allocations: 3.984 kB / 0.7001 GB, free: 15.73 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01059/0.678, allocations: 4.917 MB / 0.7049 GB, free: 10.75 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-05/0.678, allocations: 0 / 0.7049 GB, free: 10.75 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009897/0.679, allocations: 191.7 kB / 0.7051 GB, free: 10.56 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006951/0.6796, allocations: 228.7 kB / 0.7053 GB, free: 10.33 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001064/0.6798, allocations: 20 kB / 0.7053 GB, free: 10.31 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003108/0.6829, allocations: 2.584 MB / 0.7079 GB, free: 7.613 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/0.6829, allocations: 7.875 kB / 0.7079 GB, free: 7.605 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005561/0.6884, allocations: 3.717 MB / 0.7115 GB, free: 3.855 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001027/0.6895, allocations: 301.8 kB / 0.7118 GB, free: 3.559 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003344/0.6898, allocations: 20 kB / 0.7118 GB, free: 3.539 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/0.6908, allocations: 63.86 kB / 0.7119 GB, free: 3.477 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001971/0.691, allocations: 76.45 kB / 0.7119 GB, free: 3.402 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.606e-05/0.6911, allocations: 39.98 kB / 0.712 GB, free: 3.363 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003683/0.6948, allocations: 2.261 MB / 0.7142 GB, free: 1.113 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6948, allocations: 0 / 0.7142 GB, free: 1.113 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004277/0.6991, allocations: 0.7655 MB / 0.7149 GB, free: 356 kB / 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.006342/0.7054, allocations: 4.354 MB / 0.7192 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00735/0.7128, allocations: 3.787 MB / 0.7229 GB, free: 8.18 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.262e-05/0.7128, allocations: 0 / 0.7229 GB, free: 8.18 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001719/0.7145, allocations: 1.002 MB / 0.7239 GB, free: 7.16 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002329/0.7168, allocations: 367.3 kB / 0.7242 GB, free: 6.801 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.303/1.02, allocations: 36.59 MB / 0.7599 GB, free: 132.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001979/1.022, allocations: 2.08 MB / 0.762 GB, free: 130.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003144/1.025, allocations: 1.7 MB / 0.7636 GB, free: 129 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001458/1.026, allocations: 1.405 MB / 0.765 GB, free: 127.6 MB / 0.5606 GB Notification: Performance of SimCode: time 1.273e-06/1.026, allocations: 0 / 0.765 GB, free: 127.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09342/1.12, allocations: 55.9 MB / 0.8196 GB, free: 72.44 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.94/16.06, allocations: 11.33 kB / 0.8196 GB, free: 72.43 MB / 0.5606 GB " [Timeout remaining time 644] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_1_0_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.csv. Warning: Get data of variable Distance1.distance from file ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.05578581400914]