Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 104.8 kB / 16.41 MB, free: 6.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 194.2 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.308/1.308, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1861/0.1861, allocations: 43.52 MB / 314.1 MB, free: 456 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 69.47 kB / 441.3 MB, free: 6.148 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0981/0.09962, allocations: 57.79 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01061/0.1103, allocations: 10.01 MB / 0.4972 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007125/0.1174, allocations: 3.707 MB / 0.5008 GB, free: 14.51 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001588/0.1191, allocations: 51.88 kB / 0.5008 GB, free: 14.46 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004084/0.1232, allocations: 1.95 MB / 0.5027 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004322/0.1276, allocations: 1.786 MB / 0.5045 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001343/0.1289, allocations: 0.5692 MB / 0.505 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004642/0.1336, allocations: 3.739 MB / 0.5087 GB, free: 6.391 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002913/0.1365, allocations: 2.546 MB / 0.5112 GB, free: 3.789 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00177/0.1383, allocations: 1.281 MB / 0.5124 GB, free: 2.504 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002509/0.1408, allocations: 1.826 MB / 0.5142 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006763/0.1415, allocations: 276 kB / 0.5145 GB, free: 412 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001995/0.1435, allocations: 1.151 MB / 0.5156 GB, free: 15.25 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00162/0.1452, allocations: 1.695 MB / 0.5173 GB, free: 13.55 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00248/0.1477, allocations: 2.004 MB / 0.5192 GB, free: 11.54 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00689/0.1546, allocations: 6.599 MB / 0.5257 GB, free: 4.91 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1546, allocations: 0 / 0.5257 GB, free: 4.91 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1546, allocations: 7.938 kB / 0.5257 GB, free: 4.902 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001832/0.1548, allocations: 0 / 0.5257 GB, free: 4.902 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: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01113/0.1659, allocations: 4.457 MB / 0.53 GB, free: 380 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.166, allocations: 15.89 kB / 0.53 GB, free: 364 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1962/0.3622, allocations: 0.6385 MB / 0.5307 GB, free: 36.91 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08615/0.4483, allocations: 7.059 MB / 0.5375 GB, free: 36.69 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006705/0.4551, allocations: 2.859 MB / 0.5403 GB, free: 36.24 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001655/0.4553, allocations: 195.9 kB / 0.5405 GB, free: 36.23 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008312/0.4561, allocations: 259.4 kB / 0.5408 GB, free: 36.23 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0123/0.4684, allocations: 8.699 MB / 0.5493 GB, free: 31.96 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001091/0.4686, allocations: 44.19 kB / 0.5493 GB, free: 31.93 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003683/0.469, allocations: 125.7 kB / 0.5494 GB, free: 31.88 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002686/0.4717, allocations: 1.842 MB / 0.5512 GB, free: 31.16 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01102/0.4827, allocations: 7.341 MB / 0.5584 GB, free: 26.27 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03385/0.5166, allocations: 33.9 MB / 0.5915 GB, free: 7.676 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004981/0.5216, allocations: 2.522 MB / 0.594 GB, free: 5 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001516/0.5232, allocations: 1.118 MB / 0.5951 GB, free: 3.871 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003732/0.5235, allocations: 331.8 kB / 0.5954 GB, free: 3.492 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.146e-05/0.5236, allocations: 61.48 kB / 0.5954 GB, free: 3.426 MB / 430.1 MB Notification: Performance of pre-optimization done (n=119): time 6.131e-06/0.5236, allocations: 0 / 0.5954 GB, free: 3.426 MB / 430.1 MB Notification: Performance of matching and sorting (n=133): time 0.02411/0.5477, allocations: 9.136 MB / 0.6044 GB, free: 10.31 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.5479, allocations: 204.5 kB / 0.6046 GB, free: 10.07 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005603/0.5535, allocations: 3.992 MB / 0.6085 GB, free: 6.094 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000244/0.5538, allocations: 41.7 kB / 0.6085 GB, free: 6.047 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002441/0.5562, allocations: 3.091 MB / 0.6115 GB, free: 2.926 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007765/0.557, allocations: 0.5623 MB / 0.6121 GB, free: 2.359 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001869/0.5589, allocations: 1.179 MB / 0.6132 GB, free: 1.168 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.499e-05/0.559, allocations: 305.1 kB / 0.6135 GB, free: 0.8672 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002673/0.5617, allocations: 1.694 MB / 0.6152 GB, free: 15.17 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00484/0.5666, allocations: 5.521 MB / 0.6205 GB, free: 7.723 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007828/0.5744, allocations: 7.852 MB / 0.6282 GB, free: 13.96 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.533e-05/0.5745, allocations: 40 kB / 0.6283 GB, free: 13.92 MB / 478.1 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.01056/0.5851, allocations: 7.098 MB / 0.6352 GB, free: 6.816 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.931e-05/0.5852, allocations: 71.88 kB / 0.6353 GB, free: 6.746 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001413/0.5854, allocations: 136 kB / 0.6354 GB, free: 6.613 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008761/0.5862, allocations: 412.9 kB / 0.6358 GB, free: 6.207 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003541/0.5898, allocations: 1.322 MB / 0.6371 GB, free: 4.883 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003584/0.5934, allocations: 3.365 MB / 0.6404 GB, free: 1.379 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003737/0.5971, allocations: 312 kB / 0.6406 GB, free: 1.074 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006964/0.5979, allocations: 367.9 kB / 0.641 GB, free: 0.7188 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 31 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (716): * Single equations (assignments): 712 * 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.002752/0.6006, allocations: 1.947 MB / 0.6429 GB, free: 14.75 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000595/0.6012, allocations: 349.7 kB / 0.6432 GB, free: 14.41 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002942/0.6042, allocations: 1.698 MB / 0.6449 GB, free: 12.69 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.27e-05/0.6042, allocations: 16 kB / 0.6449 GB, free: 12.68 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.167e-06/0.6042, allocations: 4 kB / 0.6449 GB, free: 12.67 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/0.6043, allocations: 7.969 kB / 0.6449 GB, free: 12.66 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009998/0.6143, allocations: 5.436 MB / 0.6502 GB, free: 7.148 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.218e-05/0.6143, allocations: 0 / 0.6502 GB, free: 7.148 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008726/0.6152, allocations: 183.7 kB / 0.6504 GB, free: 6.969 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006355/0.6158, allocations: 228.8 kB / 0.6506 GB, free: 6.742 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.505e-05/0.6159, allocations: 20 kB / 0.6506 GB, free: 6.723 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002893/0.6189, allocations: 2.707 MB / 0.6533 GB, free: 3.875 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/0.6189, allocations: 8.219 kB / 0.6533 GB, free: 3.867 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005336/0.6242, allocations: 3.563 MB / 0.6568 GB, free: 276 kB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001683/0.6259, allocations: 0.5417 MB / 0.6573 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007747/0.6267, allocations: 23.88 kB / 0.6573 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001691/0.6284, allocations: 59.98 kB / 0.6574 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001986/0.6287, allocations: 72.47 kB / 0.6575 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.545e-05/0.6288, allocations: 35.75 kB / 0.6575 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004816/0.6336, allocations: 2.489 MB / 0.6599 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8.22e-07/0.6336, allocations: 0 / 0.6599 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005072/0.6387, allocations: 0.8476 MB / 0.6607 GB, free: 12.2 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * 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.005588/0.6443, allocations: 4.184 MB / 0.6648 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006248/0.6506, allocations: 4.119 MB / 0.6689 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.6506, allocations: 3.938 kB / 0.6689 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001366/0.652, allocations: 1.009 MB / 0.6698 GB, free: 2.84 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002547/0.6546, allocations: 398 kB / 0.6702 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05918/0.7138, allocations: 40.32 MB / 0.7096 GB, free: 4.289 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004112/0.7179, allocations: 2.948 MB / 0.7125 GB, free: 1.312 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00404/0.722, allocations: 1.818 MB / 0.7142 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002343/0.7243, allocations: 1.651 MB / 0.7159 GB, free: 13.83 MB / 0.5606 GB Notification: Performance of SimCode: time 8.82e-07/0.7244, allocations: 0 / 0.7159 GB, free: 13.83 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3158/1.04, allocations: 57.82 MB / 0.7723 GB, free: 187.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.34/19.38, allocations: 7.703 kB / 0.7723 GB, free: 187.1 MB / 0.5762 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-10 --interface-type ModelExchange --solver CVode --output-interval 0.0002 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches