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: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 115.7 kB / 17.05 MB, free: 6.035 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.001212/0.001212, allocations: 192.5 kB / 17.98 MB, free: 5.121 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.394/1.394, allocations: 205.1 MB / 223.8 MB, free: 12.26 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.2063/0.2063, allocations: 43.52 MB / 314.7 MB, free: 472 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.00141/0.00141, allocations: 69.45 kB / 442.4 MB, free: 5.703 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1198, allocations: 57.79 MB / 0.4885 GB, free: 11.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01111/0.1309, allocations: 9.425 MB / 0.4977 GB, free: 2.371 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007802/0.1389, allocations: 3.606 MB / 0.5012 GB, free: 14.75 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001804/0.1407, allocations: 51.81 kB / 0.5013 GB, free: 14.7 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003573/0.1443, allocations: 1.686 MB / 0.5029 GB, free: 13.01 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005281/0.1497, allocations: 1.642 MB / 0.5045 GB, free: 11.36 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001495/0.1512, allocations: 0.5536 MB / 0.505 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004913/0.1561, allocations: 3.513 MB / 0.5085 GB, free: 7.289 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002919/0.1591, allocations: 2.271 MB / 0.5107 GB, free: 4.969 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001988/0.1611, allocations: 1.148 MB / 0.5118 GB, free: 3.816 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002347/0.1634, allocations: 1.647 MB / 0.5134 GB, free: 2.164 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006322/0.1641, allocations: 236 kB / 0.5136 GB, free: 1.934 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002045/0.1662, allocations: 1.116 MB / 0.5147 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001529/0.1677, allocations: 1.512 MB / 0.5162 GB, free: 15.3 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001964/0.1697, allocations: 1.732 MB / 0.5179 GB, free: 13.56 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006489/0.1762, allocations: 5.769 MB / 0.5235 GB, free: 7.77 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.325e-06/0.1762, allocations: 0 / 0.5235 GB, free: 7.77 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.1762, allocations: 4 kB / 0.5235 GB, free: 7.766 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001661/0.1764, allocations: 0 / 0.5235 GB, free: 7.766 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.008798/0.1852, allocations: 3.849 MB / 0.5273 GB, free: 3.852 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/0.1853, allocations: 11.89 kB / 0.5273 GB, free: 3.84 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01622/0.2015, allocations: 2.379 MB / 0.5296 GB, free: 1.453 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2604/0.462, allocations: 2.319 MB / 0.5319 GB, free: 36.7 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001776/0.4622, allocations: 172.5 kB / 0.5321 GB, free: 36.69 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008817/0.4631, allocations: 234.7 kB / 0.5323 GB, free: 36.69 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01458/0.4777, allocations: 7.884 MB / 0.54 GB, free: 33.96 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001383/0.4779, allocations: 44.38 kB / 0.54 GB, free: 33.94 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003972/0.4783, allocations: 114.6 kB / 0.5401 GB, free: 33.89 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003605/0.4819, allocations: 1.672 MB / 0.5418 GB, free: 33.6 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01474/0.4966, allocations: 6.751 MB / 0.5484 GB, free: 31.5 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03382/0.5305, allocations: 31.4 MB / 0.579 GB, free: 5.621 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004286/0.5348, allocations: 2.348 MB / 0.5813 GB, free: 3.129 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001334/0.5362, allocations: 1.176 MB / 0.5825 GB, free: 1.941 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003186/0.5365, allocations: 323.9 kB / 0.5828 GB, free: 1.57 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.449e-05/0.5366, allocations: 47.06 kB / 0.5828 GB, free: 1.516 MB / 414.1 MB Notification: Performance of pre-optimization done (n=117): time 4.359e-06/0.5366, allocations: 1.875 kB / 0.5828 GB, free: 1.516 MB / 414.1 MB Notification: Performance of matching and sorting (n=141): time 0.03632/0.5729, allocations: 12.3 MB / 0.5948 GB, free: 5.07 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.5731, allocations: 196.5 kB / 0.595 GB, free: 4.836 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004918/0.578, allocations: 3.738 MB / 0.5987 GB, free: 1.102 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002691/0.5783, allocations: 45.7 kB / 0.5987 GB, free: 1.051 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001726/0.58, allocations: 2.666 MB / 0.6013 GB, free: 14.34 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007119/0.5808, allocations: 0.5633 MB / 0.6019 GB, free: 13.77 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001376/0.5821, allocations: 1.122 MB / 0.603 GB, free: 12.64 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.5823, allocations: 305.1 kB / 0.6033 GB, free: 12.34 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002569/0.5848, allocations: 1.807 MB / 0.605 GB, free: 10.53 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004772/0.5896, allocations: 5.252 MB / 0.6101 GB, free: 3.547 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008415/0.5981, allocations: 7.615 MB / 0.6176 GB, free: 10.22 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.397e-05/0.5982, allocations: 39.94 kB / 0.6176 GB, free: 10.18 MB / 462.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.0125/0.6107, allocations: 7.273 MB / 0.6247 GB, free: 2.898 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.484e-05/0.6108, allocations: 59.98 kB / 0.6248 GB, free: 2.84 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000115/0.6109, allocations: 124 kB / 0.6249 GB, free: 2.719 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001561/0.6125, allocations: 0.6531 MB / 0.6255 GB, free: 2.062 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003856/0.6164, allocations: 1.275 MB / 0.6268 GB, free: 0.7852 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004743/0.6211, allocations: 4.059 MB / 0.6307 GB, free: 12.59 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004237/0.6254, allocations: 311.1 kB / 0.631 GB, free: 12.29 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007392/0.6261, allocations: 344 kB / 0.6314 GB, free: 11.95 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 (684): * Single equations (assignments): 680 * 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 {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002941/0.6291, allocations: 1.786 MB / 0.6331 GB, free: 10.16 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000653/0.6298, allocations: 304.1 kB / 0.6334 GB, free: 9.855 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004353/0.6341, allocations: 2.223 MB / 0.6356 GB, free: 7.617 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.176e-05/0.6342, allocations: 20.09 kB / 0.6356 GB, free: 7.598 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/0.6342, allocations: 3.938 kB / 0.6356 GB, free: 7.594 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.524e-05/0.6342, allocations: 11.98 kB / 0.6356 GB, free: 7.582 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01103/0.6453, allocations: 5.925 MB / 0.6414 GB, free: 1.57 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.553e-05/0.6454, allocations: 7.938 kB / 0.6414 GB, free: 1.562 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001273/0.6467, allocations: 215.7 kB / 0.6416 GB, free: 1.352 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001471/0.6481, allocations: 484.3 kB / 0.6421 GB, free: 0.875 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001745/0.6483, allocations: 27.98 kB / 0.6421 GB, free: 0.8477 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004082/0.6524, allocations: 3.43 MB / 0.6454 GB, free: 13.28 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.6524, allocations: 0 / 0.6454 GB, free: 13.28 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006492/0.6589, allocations: 4.351 MB / 0.6497 GB, free: 8.891 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00141/0.6604, allocations: 0.5399 MB / 0.6502 GB, free: 8.328 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003579/0.6607, allocations: 39.97 kB / 0.6503 GB, free: 8.289 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/0.6619, allocations: 83.78 kB / 0.6503 GB, free: 8.207 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001987/0.6621, allocations: 72.55 kB / 0.6504 GB, free: 8.137 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.83e-05/0.6622, allocations: 43.98 kB / 0.6505 GB, free: 8.094 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003382/0.6656, allocations: 2.333 MB / 0.6527 GB, free: 5.773 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.6656, allocations: 0 / 0.6527 GB, free: 5.773 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00415/0.6698, allocations: 0.8386 MB / 0.6536 GB, free: 4.938 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.0003786/0.6702, allocations: 160 kB / 0.6537 GB, free: 4.777 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006607/0.6768, allocations: 4.298 MB / 0.6579 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.6768, allocations: 4 kB / 0.6579 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001615/0.6785, allocations: 1.185 MB / 0.6591 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002238/0.6807, allocations: 376.5 kB / 0.6594 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01271/0.6934, allocations: 7.805 MB / 0.667 GB, free: 7.086 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002861/0.6963, allocations: 2.746 MB / 0.6697 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009751/0.6973, allocations: 259.4 kB / 0.67 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of SimCode: time 8.91e-07/0.6974, allocations: 0 / 0.67 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of Templates: time 0.09693/0.7943, allocations: 63.67 MB / 0.7322 GB, free: 4.32 MB / 0.5606 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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