Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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.Distance,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_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.001125/0.001125, allocations: 103.4 kB / 16.4 MB, free: 6.488 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.001175/0.001176, allocations: 196 kB / 17.34 MB, free: 5.766 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.34/1.34, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2113/0.2113, allocations: 43.52 MB / 314.1 MB, free: 464 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.001733/0.001733, allocations: 69.47 kB / 441.3 MB, free: 6.188 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1109, allocations: 57.8 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01059/0.1215, allocations: 9.425 MB / 0.4966 GB, free: 2.852 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007566/0.1292, allocations: 3.598 MB / 0.5001 GB, free: 15.24 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001527/0.1307, allocations: 55.81 kB / 0.5002 GB, free: 15.19 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003479/0.1342, allocations: 1.689 MB / 0.5018 GB, free: 13.49 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004228/0.1385, allocations: 1.638 MB / 0.5034 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001401/0.1399, allocations: 0.5575 MB / 0.504 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00497/0.1449, allocations: 3.513 MB / 0.5074 GB, free: 7.766 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002638/0.1476, allocations: 2.255 MB / 0.5096 GB, free: 5.461 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001813/0.1494, allocations: 1.164 MB / 0.5107 GB, free: 4.293 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002236/0.1517, allocations: 1.639 MB / 0.5123 GB, free: 2.648 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005396/0.1523, allocations: 236 kB / 0.5126 GB, free: 2.418 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001957/0.1542, allocations: 1.12 MB / 0.5136 GB, free: 1.297 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001428/0.1557, allocations: 1.512 MB / 0.5151 GB, free: 15.78 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001791/0.1575, allocations: 1.798 MB / 0.5169 GB, free: 13.97 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006115/0.1636, allocations: 5.948 MB / 0.5227 GB, free: 8.004 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.1636, allocations: 0 / 0.5227 GB, free: 8.004 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.1637, allocations: 0 / 0.5227 GB, free: 8.004 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000164/0.1638, allocations: 0 / 0.5227 GB, free: 8.004 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: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.009257/0.1731, allocations: 3.993 MB / 0.5266 GB, free: 3.941 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.1732, allocations: 15.83 kB / 0.5266 GB, free: 3.926 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007986/0.174, allocations: 0.5755 MB / 0.5272 GB, free: 3.34 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3041/0.4781, allocations: 6.969 MB / 0.534 GB, free: 36.12 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006736/0.4849, allocations: 2.723 MB / 0.5366 GB, free: 35.59 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001309/0.4851, allocations: 171.8 kB / 0.5368 GB, free: 35.59 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006591/0.4857, allocations: 232.2 kB / 0.537 GB, free: 35.58 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01245/0.4982, allocations: 7.828 MB / 0.5447 GB, free: 32.27 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001101/0.4983, allocations: 41.31 kB / 0.5447 GB, free: 32.25 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003755/0.4987, allocations: 110.7 kB / 0.5448 GB, free: 32.21 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002853/0.5016, allocations: 1.666 MB / 0.5464 GB, free: 31.91 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.012/0.5136, allocations: 6.633 MB / 0.5529 GB, free: 29.85 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02796/0.5416, allocations: 31.1 MB / 0.5833 GB, free: 456 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004324/0.546, allocations: 2.282 MB / 0.5855 GB, free: 14.02 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001392/0.5474, allocations: 1.118 MB / 0.5866 GB, free: 12.89 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003827/0.5478, allocations: 323.6 kB / 0.5869 GB, free: 12.52 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.728e-05/0.5478, allocations: 43.12 kB / 0.5869 GB, free: 12.47 MB / 430.1 MB Notification: Performance of pre-optimization done (n=117): time 4.478e-06/0.5478, allocations: 4 kB / 0.5869 GB, free: 12.46 MB / 430.1 MB Notification: Performance of matching and sorting (n=141): time 0.0342/0.5821, allocations: 11.39 MB / 0.5981 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/0.5822, allocations: 192.6 kB / 0.5983 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00511/0.5873, allocations: 3.748 MB / 0.6019 GB, free: 12.98 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002755/0.5876, allocations: 45.7 kB / 0.602 GB, free: 12.93 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001892/0.5895, allocations: 2.682 MB / 0.6046 GB, free: 10.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006474/0.5902, allocations: 0.5633 MB / 0.6051 GB, free: 9.633 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001449/0.5917, allocations: 1.087 MB / 0.6062 GB, free: 8.535 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.5918, allocations: 301.1 kB / 0.6065 GB, free: 8.238 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002655/0.5944, allocations: 1.697 MB / 0.6081 GB, free: 6.535 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004934/0.5994, allocations: 5.13 MB / 0.6131 GB, free: 15.67 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008396/0.6078, allocations: 7.435 MB / 0.6204 GB, free: 6.527 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.137e-05/0.6079, allocations: 32.56 kB / 0.6204 GB, free: 6.496 MB / 462.1 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.0124/0.6203, allocations: 6.797 MB / 0.6271 GB, free: 15.68 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.793e-05/0.6205, allocations: 56 kB / 0.6271 GB, free: 15.63 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001471/0.6206, allocations: 124 kB / 0.6272 GB, free: 15.51 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009951/0.6216, allocations: 413.1 kB / 0.6276 GB, free: 15.11 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003834/0.6255, allocations: 1.232 MB / 0.6288 GB, free: 13.87 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003742/0.6293, allocations: 3.339 MB / 0.6321 GB, free: 10.39 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003612/0.6329, allocations: 295.4 kB / 0.6324 GB, free: 10.11 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000585/0.6335, allocations: 332 kB / 0.6327 GB, free: 9.781 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 27 (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 (665): * Single equations (assignments): 661 * 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.002543/0.636, allocations: 1.782 MB / 0.6344 GB, free: 7.988 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005508/0.6366, allocations: 315.9 kB / 0.6347 GB, free: 7.676 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003237/0.6399, allocations: 1.86 MB / 0.6366 GB, free: 5.805 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.681e-05/0.6399, allocations: 19.98 kB / 0.6366 GB, free: 5.785 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.6399, allocations: 7.938 kB / 0.6366 GB, free: 5.777 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.768e-05/0.6399, allocations: 11.95 kB / 0.6366 GB, free: 5.766 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009647/0.6496, allocations: 5.551 MB / 0.642 GB, free: 132 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-05/0.6496, allocations: 0 / 0.642 GB, free: 132 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/0.6507, allocations: 215.7 kB / 0.6422 GB, free: 15.92 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006716/0.6514, allocations: 236.6 kB / 0.6425 GB, free: 15.68 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001026/0.6515, allocations: 27.97 kB / 0.6425 GB, free: 15.66 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002904/0.6544, allocations: 2.699 MB / 0.6451 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.6545, allocations: 7.938 kB / 0.6451 GB, free: 12.81 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00553/0.66, allocations: 3.902 MB / 0.6489 GB, free: 8.875 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001528/0.6616, allocations: 0.532 MB / 0.6494 GB, free: 8.32 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004135/0.662, allocations: 20 kB / 0.6495 GB, free: 8.301 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001202/0.6632, allocations: 79.97 kB / 0.6495 GB, free: 8.223 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000188/0.6634, allocations: 72.5 kB / 0.6496 GB, free: 8.152 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.576e-05/0.6635, allocations: 39.98 kB / 0.6497 GB, free: 8.113 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003553/0.6671, allocations: 2.35 MB / 0.6519 GB, free: 5.777 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.6671, allocations: 0 / 0.6519 GB, free: 5.777 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003992/0.6711, allocations: 0.815 MB / 0.6527 GB, free: 4.965 MB / 494.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 (112): * Single equations (assignments): 108 * 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.006091/0.6772, allocations: 4.528 MB / 0.6572 GB, free: 408 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00679/0.684, allocations: 4.121 MB / 0.6612 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/0.6841, allocations: 0 / 0.6612 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001839/0.6859, allocations: 1.138 MB / 0.6623 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002822/0.6888, allocations: 376 kB / 0.6627 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05463/0.7434, allocations: 38.03 MB / 0.6998 GB, free: 15.57 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002931/0.7464, allocations: 2.754 MB / 0.7025 GB, free: 12.79 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004016/0.7505, allocations: 1.762 MB / 0.7042 GB, free: 11.02 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00205/0.7525, allocations: 1.507 MB / 0.7057 GB, free: 9.512 MB / 0.545 GB Notification: Performance of SimCode: time 8.62e-07/0.7525, allocations: 0 / 0.7057 GB, free: 9.512 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3426/1.095, allocations: 56.35 MB / 0.7607 GB, free: 194.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.88/18.98, allocations: 14.69 kB / 0.7607 GB, free: 194.9 MB / 0.5762 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches