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.001311/0.001311, allocations: 105.6 kB / 16.4 MB, free: 6.484 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.001307/0.001307, allocations: 196.1 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.334/1.334, 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.2071/0.2071, allocations: 43.52 MB / 314.1 MB, free: 468 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.001507/0.001507, allocations: 67.89 kB / 441.3 MB, free: 6.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09731/0.09883, allocations: 57.79 MB / 499.1 MB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01081/0.1097, allocations: 9.425 MB / 0.4966 GB, free: 2.844 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007011/0.1167, allocations: 3.61 MB / 0.5001 GB, free: 15.22 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001309/0.1181, allocations: 51.88 kB / 0.5002 GB, free: 15.17 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003496/0.1217, allocations: 1.685 MB / 0.5018 GB, free: 13.48 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004037/0.1257, allocations: 1.642 MB / 0.5034 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001353/0.1271, allocations: 0.5536 MB / 0.504 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004751/0.1319, allocations: 3.517 MB / 0.5074 GB, free: 7.75 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003158/0.135, allocations: 2.259 MB / 0.5096 GB, free: 5.441 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001976/0.137, allocations: 1.16 MB / 0.5107 GB, free: 4.277 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002442/0.1395, allocations: 1.635 MB / 0.5123 GB, free: 2.637 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006981/0.1402, allocations: 236 kB / 0.5125 GB, free: 2.406 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002152/0.1424, allocations: 1.119 MB / 0.5136 GB, free: 1.285 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001693/0.1441, allocations: 1.512 MB / 0.5151 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002547/0.1467, allocations: 1.81 MB / 0.5169 GB, free: 13.95 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007122/0.1538, allocations: 5.937 MB / 0.5227 GB, free: 7.992 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.313e-06/0.1539, allocations: 3.984 kB / 0.5227 GB, free: 7.988 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1539, allocations: 0 / 0.5227 GB, free: 7.988 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001766/0.1541, allocations: 0 / 0.5227 GB, free: 7.988 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.01064/0.1647, allocations: 3.997 MB / 0.5266 GB, free: 3.922 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.476e-05/0.1648, allocations: 15.83 kB / 0.5266 GB, free: 3.906 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001601/0.1664, allocations: 0.5794 MB / 0.5272 GB, free: 3.316 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2785/0.4449, allocations: 6.962 MB / 0.534 GB, free: 36.12 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00573/0.4506, allocations: 2.725 MB / 0.5366 GB, free: 35.6 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001358/0.4508, allocations: 171.4 kB / 0.5368 GB, free: 35.59 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006905/0.4515, allocations: 228.3 kB / 0.537 GB, free: 35.59 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01237/0.4639, allocations: 7.826 MB / 0.5447 GB, free: 32.27 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001178/0.464, allocations: 41.8 kB / 0.5447 GB, free: 32.25 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004306/0.4645, allocations: 114.9 kB / 0.5448 GB, free: 32.21 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002765/0.4673, allocations: 1.664 MB / 0.5464 GB, free: 31.91 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01113/0.4784, allocations: 6.624 MB / 0.5529 GB, free: 29.85 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02706/0.5055, allocations: 31.11 MB / 0.5833 GB, free: 464 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004513/0.5101, allocations: 2.279 MB / 0.5855 GB, free: 14.03 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00148/0.5116, allocations: 1.114 MB / 0.5866 GB, free: 12.91 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003654/0.5119, allocations: 335.7 kB / 0.5869 GB, free: 12.52 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.643e-05/0.512, allocations: 47.12 kB / 0.587 GB, free: 12.47 MB / 430.1 MB Notification: Performance of pre-optimization done (n=117): time 4.779e-06/0.512, allocations: 0 / 0.587 GB, free: 12.47 MB / 430.1 MB Notification: Performance of matching and sorting (n=141): time 0.03602/0.5481, allocations: 11.38 MB / 0.5981 GB, free: 0.9648 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/0.5482, allocations: 196.6 kB / 0.5983 GB, free: 0.7305 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006073/0.5543, allocations: 3.752 MB / 0.6019 GB, free: 12.98 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002404/0.5546, allocations: 45.7 kB / 0.602 GB, free: 12.93 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002079/0.5567, allocations: 2.682 MB / 0.6046 GB, free: 10.21 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007626/0.5574, allocations: 0.5672 MB / 0.6051 GB, free: 9.637 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001945/0.5594, allocations: 1.079 MB / 0.6062 GB, free: 8.547 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.5595, allocations: 301.1 kB / 0.6065 GB, free: 8.25 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002877/0.5624, allocations: 1.705 MB / 0.6081 GB, free: 6.539 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005662/0.5681, allocations: 5.13 MB / 0.6132 GB, free: 15.68 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008763/0.5769, allocations: 7.428 MB / 0.6204 GB, free: 6.539 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001039/0.577, allocations: 36.75 kB / 0.6204 GB, free: 6.504 MB / 462.1 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.01323/0.5903, allocations: 6.799 MB / 0.6271 GB, free: 15.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001302/0.5904, allocations: 60 kB / 0.6271 GB, free: 15.64 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001691/0.5906, allocations: 120 kB / 0.6273 GB, free: 15.52 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00107/0.5917, allocations: 408.6 kB / 0.6276 GB, free: 15.12 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00421/0.5959, allocations: 1.24 MB / 0.6289 GB, free: 13.88 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004177/0.6001, allocations: 3.329 MB / 0.6321 GB, free: 10.41 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003904/0.6041, allocations: 299.5 kB / 0.6324 GB, free: 10.12 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008137/0.6049, allocations: 340 kB / 0.6327 GB, free: 9.785 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.003119/0.6081, allocations: 1.778 MB / 0.6344 GB, free: 7.996 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006951/0.6088, allocations: 315.9 kB / 0.6347 GB, free: 7.684 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003749/0.6125, allocations: 1.849 MB / 0.6366 GB, free: 5.82 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.394e-05/0.6126, allocations: 27.92 kB / 0.6366 GB, free: 5.793 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.311e-05/0.6126, allocations: 7.938 kB / 0.6366 GB, free: 5.785 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.704e-05/0.6126, allocations: 3.984 kB / 0.6366 GB, free: 5.781 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01009/0.6227, allocations: 5.559 MB / 0.642 GB, free: 140 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.037e-05/0.6228, allocations: 4 kB / 0.642 GB, free: 136 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001124/0.6239, allocations: 207.8 kB / 0.6422 GB, free: 15.93 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00069/0.6246, allocations: 235.5 kB / 0.6424 GB, free: 15.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001144/0.6247, allocations: 31.92 kB / 0.6425 GB, free: 15.66 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003061/0.6278, allocations: 2.699 MB / 0.6451 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.6278, allocations: 3.938 kB / 0.6451 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005713/0.6335, allocations: 3.899 MB / 0.6489 GB, free: 8.887 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001211/0.6348, allocations: 0.536 MB / 0.6494 GB, free: 8.328 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005632/0.6354, allocations: 20.06 kB / 0.6495 GB, free: 8.309 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001395/0.6368, allocations: 75.81 kB / 0.6495 GB, free: 8.238 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001993/0.637, allocations: 76.48 kB / 0.6496 GB, free: 8.164 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001066/0.6371, allocations: 36 kB / 0.6496 GB, free: 8.129 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003886/0.641, allocations: 2.354 MB / 0.6519 GB, free: 5.789 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.745e-06/0.641, allocations: 0 / 0.6519 GB, free: 5.789 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004415/0.6454, allocations: 0.8176 MB / 0.6527 GB, free: 4.977 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.006347/0.6518, allocations: 4.53 MB / 0.6572 GB, free: 420 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006742/0.6586, allocations: 4.11 MB / 0.6612 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.76e-06/0.6586, allocations: 4 kB / 0.6612 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001839/0.6604, allocations: 1.141 MB / 0.6623 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002708/0.6632, allocations: 378 kB / 0.6627 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06564/0.7288, allocations: 38.02 MB / 0.6998 GB, free: 15.58 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004099/0.733, allocations: 2.761 MB / 0.7025 GB, free: 12.79 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00461/0.7376, allocations: 1.758 MB / 0.7042 GB, free: 11.03 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002847/0.7405, allocations: 1.507 MB / 0.7057 GB, free: 9.52 MB / 0.545 GB Notification: Performance of SimCode: time 1.202e-06/0.7405, allocations: 0 / 0.7057 GB, free: 9.52 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3158/1.056, allocations: 56.34 MB / 0.7607 GB, free: 194.9 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.71/18.77, allocations: 11.66 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