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.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001635/0.001635, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001828/0.001828, allocations: 191.9 kB / 18.56 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 222.9 MB / 242.3 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2154/0.2154, allocations: 44.18 MB / 336.6 MB, free: 2.738 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001288, allocations: 64.31 kB / 408.5 MB, free: 27.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1183, allocations: 60.82 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01052/0.1288, allocations: 9.04 MB / 478.4 MB, free: 5.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006539/0.1354, allocations: 3.547 MB / 481.9 MB, free: 1.621 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001065/0.1365, allocations: 51.88 kB / 482 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00314/0.1396, allocations: 1.67 MB / 483.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003587/0.1433, allocations: 1.592 MB / 485.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001148/0.1444, allocations: 0.5535 MB / 485.8 MB, free: 13.74 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004375/0.1488, allocations: 3.586 MB / 489.4 MB, free: 10.15 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002656/0.1515, allocations: 2.212 MB / 491.6 MB, free: 7.891 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001401/0.1529, allocations: 1.113 MB / 492.7 MB, free: 6.773 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00187/0.1548, allocations: 1.553 MB / 494.3 MB, free: 5.215 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004134/0.1552, allocations: 224 kB / 494.5 MB, free: 4.996 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00174/0.157, allocations: 1.123 MB / 495.6 MB, free: 3.871 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001169/0.1582, allocations: 1.438 MB / 497 MB, free: 2.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001645/0.1598, allocations: 1.732 MB / 498.8 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005752/0.1656, allocations: 5.503 MB / 0.4925 GB, free: 11.17 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.1656, allocations: 0 / 0.4925 GB, free: 11.17 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1656, allocations: 0 / 0.4925 GB, free: 11.17 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001161/0.1658, allocations: 3.938 kB / 0.4925 GB, free: 11.16 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.008607/0.1744, allocations: 3.864 MB / 0.4962 GB, free: 7.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.96e-05/0.1744, allocations: 8.031 kB / 0.4962 GB, free: 7.223 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007367/0.1752, allocations: 0.5548 MB / 0.4968 GB, free: 6.656 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3251/0.5003, allocations: 6.948 MB / 0.5036 GB, free: 45.9 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006048/0.5064, allocations: 2.488 MB / 0.506 GB, free: 45.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001502/0.5066, allocations: 168.9 kB / 0.5062 GB, free: 45.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006239/0.5073, allocations: 223.2 kB / 0.5064 GB, free: 45.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0137/0.521, allocations: 7.527 MB / 0.5137 GB, free: 41.56 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001153/0.5211, allocations: 40.2 kB / 0.5138 GB, free: 41.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003372/0.5215, allocations: 109.1 kB / 0.5139 GB, free: 41.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002934/0.5244, allocations: 1.602 MB / 0.5154 GB, free: 41.22 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01333/0.5377, allocations: 6.343 MB / 0.5216 GB, free: 39.26 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03354/0.5713, allocations: 30.36 MB / 0.5513 GB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003904/0.5753, allocations: 2.167 MB / 0.5534 GB, free: 7.898 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001115/0.5764, allocations: 1.067 MB / 0.5544 GB, free: 6.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000334/0.5768, allocations: 327.5 kB / 0.5547 GB, free: 6.445 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.72e-05/0.5768, allocations: 43 kB / 0.5548 GB, free: 6.395 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 4.949e-06/0.5769, allocations: 0 / 0.5548 GB, free: 6.395 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.03135/0.6082, allocations: 10.93 MB / 0.5655 GB, free: 11.33 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/0.6084, allocations: 204.6 kB / 0.5657 GB, free: 11.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005866/0.6142, allocations: 3.662 MB / 0.5692 GB, free: 7.426 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002793/0.6146, allocations: 41.7 kB / 0.5693 GB, free: 7.379 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001914/0.6165, allocations: 2.608 MB / 0.5718 GB, free: 4.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007064/0.6172, allocations: 0.5247 MB / 0.5723 GB, free: 4.199 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001484/0.6187, allocations: 1.051 MB / 0.5734 GB, free: 3.137 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.6188, allocations: 301.1 kB / 0.5736 GB, free: 2.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00246/0.6213, allocations: 1.642 MB / 0.5753 GB, free: 1.191 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004642/0.626, allocations: 4.984 MB / 0.5801 GB, free: 10.51 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008321/0.6343, allocations: 7.217 MB / 0.5872 GB, free: 1.629 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.669e-05/0.6344, allocations: 32 kB / 0.5872 GB, free: 1.598 MB / 414.1 MB Notification: Performance of matching and sorting (n=678) (initialization): time 0.01243/0.6469, allocations: 6.576 MB / 0.5936 GB, free: 11.01 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001316/0.647, allocations: 56 kB / 0.5937 GB, free: 10.96 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001954/0.6472, allocations: 120 kB / 0.5938 GB, free: 10.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001021/0.6483, allocations: 400.9 kB / 0.5942 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004011/0.6523, allocations: 1.193 MB / 0.5953 GB, free: 9.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003955/0.6563, allocations: 3.314 MB / 0.5986 GB, free: 5.797 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004523/0.6608, allocations: 297.2 kB / 0.5989 GB, free: 5.508 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001064/0.6619, allocations: 327.9 kB / 0.5992 GB, free: 5.188 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 542 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.arrowLine.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 (643): * Single equations (assignments): 639 * 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.004182/0.6661, allocations: 1.725 MB / 0.6009 GB, free: 3.449 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009271/0.667, allocations: 304 kB / 0.6011 GB, free: 3.148 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003864/0.6709, allocations: 1.726 MB / 0.6028 GB, free: 1.41 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.438e-05/0.671, allocations: 19.94 kB / 0.6028 GB, free: 1.391 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/0.671, allocations: 0 / 0.6028 GB, free: 1.391 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.627e-05/0.671, allocations: 7.984 kB / 0.6029 GB, free: 1.383 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01271/0.6837, allocations: 5.361 MB / 0.6081 GB, free: 11.94 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.41e-05/0.6838, allocations: 384 / 0.6081 GB, free: 11.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/0.6848, allocations: 195.7 kB / 0.6083 GB, free: 11.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007108/0.6855, allocations: 232.6 kB / 0.6085 GB, free: 11.52 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001234/0.6857, allocations: 20 kB / 0.6085 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003139/0.6888, allocations: 2.695 MB / 0.6111 GB, free: 8.656 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.6888, allocations: 4 kB / 0.6112 GB, free: 8.652 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005238/0.6941, allocations: 3.727 MB / 0.6148 GB, free: 4.902 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009428/0.6951, allocations: 357 kB / 0.6151 GB, free: 4.531 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007405/0.6958, allocations: 20 kB / 0.6152 GB, free: 4.512 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001526/0.6973, allocations: 71.84 kB / 0.6152 GB, free: 4.441 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002006/0.6976, allocations: 64.56 kB / 0.6153 GB, free: 4.379 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.563e-05/0.6977, allocations: 35.98 kB / 0.6153 GB, free: 4.344 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004303/0.702, allocations: 2.301 MB / 0.6176 GB, free: 2.055 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.702, allocations: 4.062 kB / 0.6176 GB, free: 2.051 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004977/0.707, allocations: 0.7763 MB / 0.6183 GB, free: 1.277 MB / 446.1 MB 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.006533/0.7135, allocations: 4.348 MB / 0.6226 GB, free: 12.89 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007369/0.7209, allocations: 4.308 MB / 0.6268 GB, free: 8.605 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.445e-06/0.721, allocations: 4 kB / 0.6268 GB, free: 8.602 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001541/0.7225, allocations: 1.061 MB / 0.6278 GB, free: 7.531 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003039/0.7256, allocations: 377.9 kB / 0.6282 GB, free: 7.168 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06433/0.7899, allocations: 41.11 MB / 0.6683 GB, free: 7.445 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003802/0.7938, allocations: 2.683 MB / 0.6709 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00437/0.7982, allocations: 1.683 MB / 0.6726 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002288/0.8005, allocations: 1.444 MB / 0.674 GB, free: 1.602 MB / 0.4981 GB Notification: Performance of SimCode: time 1.634e-06/0.8005, allocations: 0 / 0.674 GB, free: 1.602 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3623/1.163, allocations: 57.96 MB / 0.7306 GB, free: 183.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/12.42, allocations: 10.88 kB / 0.7306 GB, free: 183.8 MB / 0.5294 GB (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.002 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) 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) Reference file matches