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.00168/0.00168, allocations: 102.5 kB / 16.4 MB, free: 6.465 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.002067/0.002067, allocations: 189.5 kB / 17.34 MB, free: 5.715 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.562/1.562, 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.2293/0.2293, allocations: 43.53 MB / 314.1 MB, free: 448 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.001948/0.001948, allocations: 73.45 kB / 441.8 MB, free: 5.676 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1507/0.1527, allocations: 57.78 MB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01186/0.1646, allocations: 9.428 MB / 0.4971 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008464/0.1731, allocations: 3.606 MB / 0.5006 GB, free: 14.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001681/0.1748, allocations: 47.88 kB / 0.5006 GB, free: 14.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003688/0.1786, allocations: 1.689 MB / 0.5023 GB, free: 12.99 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005015/0.1836, allocations: 1.646 MB / 0.5039 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00152/0.1852, allocations: 0.5536 MB / 0.5044 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005574/0.1907, allocations: 3.513 MB / 0.5079 GB, free: 7.258 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003507/0.1943, allocations: 2.263 MB / 0.5101 GB, free: 4.945 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002404/0.1967, allocations: 1.152 MB / 0.5112 GB, free: 3.789 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002982/0.1997, allocations: 1.639 MB / 0.5128 GB, free: 2.145 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009861/0.2007, allocations: 236 kB / 0.513 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002843/0.2036, allocations: 1.116 MB / 0.5141 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002167/0.2057, allocations: 1.512 MB / 0.5156 GB, free: 15.28 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003662/0.2094, allocations: 1.732 MB / 0.5173 GB, free: 13.54 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008838/0.2183, allocations: 5.793 MB / 0.5229 GB, free: 7.723 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.333e-06/0.2183, allocations: 0 / 0.5229 GB, free: 7.723 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.2183, allocations: 0 / 0.5229 GB, free: 7.723 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002739/0.2186, allocations: 4 kB / 0.523 GB, free: 7.719 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.01134/0.2299, allocations: 3.964 MB / 0.5268 GB, free: 3.68 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.657e-05/0.23, allocations: 15.83 kB / 0.5268 GB, free: 3.664 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01557/0.2456, allocations: 2.401 MB / 0.5292 GB, free: 1.258 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3448/0.5904, allocations: 2.326 MB / 0.5315 GB, free: 36.52 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002311/0.5907, allocations: 169 kB / 0.5316 GB, free: 36.51 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008455/0.5916, allocations: 230.8 kB / 0.5318 GB, free: 36.51 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01678/0.6084, allocations: 7.888 MB / 0.5395 GB, free: 33.8 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001043/0.6085, allocations: 41.47 kB / 0.5396 GB, free: 33.79 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003356/0.6089, allocations: 111.9 kB / 0.5397 GB, free: 33.74 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003409/0.6123, allocations: 1.672 MB / 0.5413 GB, free: 33.45 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0138/0.6261, allocations: 6.75 MB / 0.5479 GB, free: 31.35 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03456/0.6607, allocations: 31.46 MB / 0.5786 GB, free: 5.555 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004134/0.6649, allocations: 2.35 MB / 0.5809 GB, free: 3.059 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001209/0.6661, allocations: 1.178 MB / 0.5821 GB, free: 1.871 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003272/0.6665, allocations: 319.9 kB / 0.5824 GB, free: 1.504 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.565e-05/0.6665, allocations: 55.06 kB / 0.5824 GB, free: 1.441 MB / 414.1 MB Notification: Performance of pre-optimization done (n=117): time 3.416e-06/0.6665, allocations: 0 / 0.5824 GB, free: 1.441 MB / 414.1 MB Notification: Performance of matching and sorting (n=141): time 0.03566/0.7022, allocations: 12.49 MB / 0.5946 GB, free: 4.988 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001502/0.7024, allocations: 200.6 kB / 0.5948 GB, free: 4.75 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005538/0.7079, allocations: 3.739 MB / 0.5985 GB, free: 1.016 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003061/0.7083, allocations: 49.69 kB / 0.5985 GB, free: 0.9609 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002196/0.7105, allocations: 2.776 MB / 0.6012 GB, free: 14.16 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008161/0.7113, allocations: 0.5855 MB / 0.6018 GB, free: 13.57 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0015/0.7128, allocations: 1.131 MB / 0.6029 GB, free: 12.43 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.7129, allocations: 301.1 kB / 0.6032 GB, free: 12.13 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002838/0.7158, allocations: 1.81 MB / 0.605 GB, free: 10.31 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005324/0.7211, allocations: 5.252 MB / 0.6101 GB, free: 3.328 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009646/0.7308, allocations: 7.607 MB / 0.6175 GB, free: 10.01 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001254/0.731, allocations: 43.75 kB / 0.6176 GB, free: 9.973 MB / 462.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01536/0.7463, allocations: 7.294 MB / 0.6247 GB, free: 2.668 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001844/0.7466, allocations: 56 kB / 0.6247 GB, free: 2.613 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002801/0.7469, allocations: 127.9 kB / 0.6249 GB, free: 2.488 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00185/0.7487, allocations: 0.6567 MB / 0.6255 GB, free: 1.828 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004524/0.7533, allocations: 1.267 MB / 0.6267 GB, free: 0.5586 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005556/0.7589, allocations: 4.063 MB / 0.6307 GB, free: 12.36 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005006/0.7639, allocations: 307.6 kB / 0.631 GB, free: 12.05 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001178/0.7651, allocations: 343.9 kB / 0.6313 GB, free: 11.72 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.004675/0.7698, allocations: 1.787 MB / 0.6331 GB, free: 9.926 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009404/0.7708, allocations: 325.8 kB / 0.6334 GB, free: 9.605 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004912/0.7757, allocations: 2.219 MB / 0.6355 GB, free: 7.371 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.813e-05/0.7757, allocations: 19.98 kB / 0.6356 GB, free: 7.352 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.605e-05/0.7758, allocations: 4 kB / 0.6356 GB, free: 7.348 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.62e-05/0.7758, allocations: 7.969 kB / 0.6356 GB, free: 7.34 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01312/0.7889, allocations: 5.934 MB / 0.6414 GB, free: 1.316 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-05/0.789, allocations: 4 kB / 0.6414 GB, free: 1.312 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001113/0.7901, allocations: 215.7 kB / 0.6416 GB, free: 1.102 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001376/0.7915, allocations: 484.3 kB / 0.642 GB, free: 0.625 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001486/0.7916, allocations: 31.98 kB / 0.6421 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004196/0.7958, allocations: 3.433 MB / 0.6454 GB, free: 13.02 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.584e-06/0.7959, allocations: 7.875 kB / 0.6454 GB, free: 13.02 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007107/0.803, allocations: 4.365 MB / 0.6497 GB, free: 8.613 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001621/0.8046, allocations: 0.5612 MB / 0.6502 GB, free: 8.031 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008959/0.8055, allocations: 27.94 kB / 0.6503 GB, free: 8.004 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001822/0.8074, allocations: 87.94 kB / 0.6504 GB, free: 7.918 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002152/0.8076, allocations: 76.53 kB / 0.6504 GB, free: 7.844 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001131/0.8077, allocations: 36 kB / 0.6505 GB, free: 7.809 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004985/0.8127, allocations: 2.337 MB / 0.6527 GB, free: 5.484 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.8127, allocations: 0 / 0.6527 GB, free: 5.484 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005396/0.8181, allocations: 0.8359 MB / 0.6536 GB, free: 4.648 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.0004754/0.8186, allocations: 162.6 kB / 0.6537 GB, free: 4.48 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007516/0.8261, allocations: 4.298 MB / 0.6579 GB, free: 204 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.8262, allocations: 0 / 0.6579 GB, free: 204 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001783/0.828, allocations: 1.194 MB / 0.6591 GB, free: 15 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002759/0.8307, allocations: 368.3 kB / 0.6594 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01598/0.8467, allocations: 7.576 MB / 0.6668 GB, free: 7.012 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004051/0.8508, allocations: 2.757 MB / 0.6695 GB, free: 4.23 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.004634/0.8555, allocations: 1.75 MB / 0.6712 GB, free: 2.477 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008584/0.8564, allocations: 211.4 kB / 0.6714 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of SimCode: time 1.553e-06/0.8564, allocations: 0 / 0.6714 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of Templates: time 0.0586/0.915, allocations: 26.98 MB / 0.6978 GB, free: 7.305 MB / 0.5294 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/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