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.001432/0.001432, allocations: 104.1 kB / 17.64 MB, free: 5.48 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.001397/0.001397, allocations: 192 kB / 18.55 MB, free: 4.566 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.356/1.356, allocations: 222.9 MB / 242.3 MB, free: 15.2 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.2261/0.2261, allocations: 44.17 MB / 336.6 MB, free: 2.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 65.31 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1113, allocations: 60.83 MB / 469.4 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01127/0.1226, allocations: 9.02 MB / 478.4 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007369/0.13, allocations: 3.551 MB / 481.9 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001503/0.1316, allocations: 55.81 kB / 482 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003606/0.1352, allocations: 1.674 MB / 483.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003952/0.1392, allocations: 1.592 MB / 485.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00131/0.1406, allocations: 0.5536 MB / 485.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004848/0.1454, allocations: 3.58 MB / 489.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002915/0.1484, allocations: 2.224 MB / 491.6 MB, free: 7.902 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001806/0.1502, allocations: 1.106 MB / 492.7 MB, free: 6.793 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002428/0.1527, allocations: 1.565 MB / 494.3 MB, free: 5.223 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009431/0.1536, allocations: 224 kB / 494.5 MB, free: 5.004 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002663/0.1563, allocations: 1.116 MB / 495.6 MB, free: 3.887 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001811/0.1581, allocations: 1.441 MB / 497.1 MB, free: 2.441 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002866/0.161, allocations: 1.728 MB / 498.8 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006515/0.1676, allocations: 5.499 MB / 0.4925 GB, free: 11.19 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.042e-05/0.1676, allocations: 3.984 kB / 0.4925 GB, free: 11.18 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1676, allocations: 4 kB / 0.4925 GB, free: 11.18 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002065/0.1678, allocations: 0 / 0.4925 GB, free: 11.18 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.01024/0.1781, allocations: 3.86 MB / 0.4962 GB, free: 7.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.1781, allocations: 8.031 kB / 0.4962 GB, free: 7.242 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006968/0.1788, allocations: 0.5509 MB / 0.4968 GB, free: 6.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3144/0.4932, allocations: 6.954 MB / 0.5036 GB, free: 45.88 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006133/0.4994, allocations: 2.486 MB / 0.506 GB, free: 45.26 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001809/0.4997, allocations: 169.3 kB / 0.5062 GB, free: 45.21 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00096/0.5006, allocations: 219.3 kB / 0.5064 GB, free: 45.16 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01287/0.5135, allocations: 7.529 MB / 0.5137 GB, free: 41.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001446/0.5137, allocations: 44.28 kB / 0.5138 GB, free: 41.51 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004079/0.5141, allocations: 106 kB / 0.5139 GB, free: 41.47 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003291/0.5174, allocations: 1.602 MB / 0.5154 GB, free: 41.19 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01198/0.5295, allocations: 6.343 MB / 0.5216 GB, free: 39.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02789/0.5574, allocations: 30.36 MB / 0.5513 GB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003763/0.5612, allocations: 2.163 MB / 0.5534 GB, free: 7.922 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00104/0.5623, allocations: 1.074 MB / 0.5544 GB, free: 6.836 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002943/0.5626, allocations: 323.5 kB / 0.5547 GB, free: 6.465 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.373e-05/0.5626, allocations: 46.98 kB / 0.5548 GB, free: 6.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 3.947e-06/0.5626, allocations: 0 / 0.5548 GB, free: 6.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.03148/0.5941, allocations: 10.93 MB / 0.5655 GB, free: 11.35 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.5943, allocations: 198.1 kB / 0.5657 GB, free: 11.11 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005083/0.5994, allocations: 3.662 MB / 0.5692 GB, free: 7.453 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002385/0.5996, allocations: 49.7 kB / 0.5693 GB, free: 7.398 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001641/0.6013, allocations: 2.604 MB / 0.5718 GB, free: 4.754 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005502/0.6018, allocations: 0.5324 MB / 0.5723 GB, free: 4.215 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001248/0.6031, allocations: 1.043 MB / 0.5734 GB, free: 3.16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.925e-05/0.6032, allocations: 301.1 kB / 0.5736 GB, free: 2.863 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002281/0.6055, allocations: 1.642 MB / 0.5752 GB, free: 1.215 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004292/0.6098, allocations: 4.992 MB / 0.5801 GB, free: 10.53 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007769/0.6176, allocations: 7.206 MB / 0.5872 GB, free: 1.656 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.525e-05/0.6177, allocations: 32 kB / 0.5872 GB, free: 1.625 MB / 414.1 MB Notification: Performance of matching and sorting (n=678) (initialization): time 0.0111/0.6288, allocations: 6.581 MB / 0.5936 GB, free: 11.04 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.69e-05/0.6289, allocations: 56 kB / 0.5937 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001474/0.6291, allocations: 120 kB / 0.5938 GB, free: 10.87 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009402/0.63, allocations: 404.8 kB / 0.5942 GB, free: 10.47 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003706/0.6338, allocations: 1.193 MB / 0.5953 GB, free: 9.273 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003723/0.6375, allocations: 3.319 MB / 0.5986 GB, free: 5.816 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003575/0.6411, allocations: 291.4 kB / 0.5989 GB, free: 5.531 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006892/0.6418, allocations: 328 kB / 0.5992 GB, free: 5.211 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.002887/0.6447, allocations: 1.729 MB / 0.6009 GB, free: 3.469 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006936/0.6454, allocations: 300.2 kB / 0.6011 GB, free: 3.172 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003252/0.6487, allocations: 1.729 MB / 0.6028 GB, free: 1.43 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-05/0.6487, allocations: 19.94 kB / 0.6029 GB, free: 1.41 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/0.6488, allocations: 0 / 0.6029 GB, free: 1.41 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.497e-05/0.6488, allocations: 7.984 kB / 0.6029 GB, free: 1.402 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0109/0.6597, allocations: 5.364 MB / 0.6081 GB, free: 11.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.274e-05/0.6597, allocations: 0 / 0.6081 GB, free: 11.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001053/0.6608, allocations: 195.7 kB / 0.6083 GB, free: 11.76 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007457/0.6616, allocations: 228.7 kB / 0.6085 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001444/0.6617, allocations: 27.97 kB / 0.6085 GB, free: 11.51 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002986/0.6647, allocations: 2.691 MB / 0.6112 GB, free: 8.672 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.6647, allocations: 4.031 kB / 0.6112 GB, free: 8.668 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005565/0.6703, allocations: 3.721 MB / 0.6148 GB, free: 4.922 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001024/0.6714, allocations: 357 kB / 0.6151 GB, free: 4.551 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007462/0.6721, allocations: 20 kB / 0.6152 GB, free: 4.531 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001519/0.6737, allocations: 67.86 kB / 0.6152 GB, free: 4.465 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002154/0.6739, allocations: 68.5 kB / 0.6153 GB, free: 4.398 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001509/0.6741, allocations: 43.97 kB / 0.6153 GB, free: 4.355 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004578/0.6787, allocations: 2.293 MB / 0.6176 GB, free: 2.074 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6787, allocations: 64 / 0.6176 GB, free: 2.074 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00553/0.6842, allocations: 0.7799 MB / 0.6183 GB, free: 1.297 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.006562/0.6908, allocations: 4.346 MB / 0.6226 GB, free: 12.91 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007152/0.698, allocations: 4.303 MB / 0.6268 GB, free: 8.629 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.428e-06/0.698, allocations: 8 kB / 0.6268 GB, free: 8.621 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001512/0.6995, allocations: 1.063 MB / 0.6278 GB, free: 7.551 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00268/0.7022, allocations: 380.4 kB / 0.6282 GB, free: 7.188 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05798/0.7602, allocations: 41.11 MB / 0.6683 GB, free: 7.465 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004077/0.7643, allocations: 2.683 MB / 0.671 GB, free: 4.75 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004319/0.7687, allocations: 1.687 MB / 0.6726 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002353/0.7711, allocations: 1.444 MB / 0.674 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of SimCode: time 9.02e-07/0.7711, allocations: 0 / 0.674 GB, free: 1.617 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2975/1.069, allocations: 57.96 MB / 0.7306 GB, free: 183.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.8/11.86, allocations: 9.188 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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