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.001701/0.001701, allocations: 119.4 kB / 17.09 MB, free: 5.992 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.002029/0.002029, allocations: 193.3 kB / 18.01 MB, free: 5.078 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.762/1.762, allocations: 205.1 MB / 223.9 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.202/0.202, allocations: 43.53 MB / 314.8 MB, free: 460 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.001467/0.001467, allocations: 67.89 kB / 442.5 MB, free: 5.688 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1259, allocations: 57.79 MB / 0.4885 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.0121/0.1381, allocations: 9.429 MB / 0.4977 GB, free: 2.352 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008252/0.1464, allocations: 3.598 MB / 0.5012 GB, free: 14.74 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001843/0.1483, allocations: 51.81 kB / 0.5013 GB, free: 14.69 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003592/0.1519, allocations: 1.686 MB / 0.5029 GB, free: 13 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004839/0.1568, allocations: 1.65 MB / 0.5046 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001624/0.1585, allocations: 0.5497 MB / 0.5051 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005806/0.1643, allocations: 3.521 MB / 0.5085 GB, free: 7.262 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003951/0.1683, allocations: 2.259 MB / 0.5107 GB, free: 4.953 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002655/0.171, allocations: 1.156 MB / 0.5119 GB, free: 3.793 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003084/0.1741, allocations: 1.643 MB / 0.5135 GB, free: 2.145 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001113/0.1753, allocations: 239.9 kB / 0.5137 GB, free: 1.91 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003109/0.1784, allocations: 1.12 MB / 0.5148 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002478/0.1809, allocations: 1.516 MB / 0.5163 GB, free: 15.27 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003505/0.1844, allocations: 1.732 MB / 0.518 GB, free: 13.53 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008806/0.1933, allocations: 5.773 MB / 0.5236 GB, free: 7.734 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.1933, allocations: 0 / 0.5236 GB, free: 7.734 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1933, allocations: 4 kB / 0.5236 GB, free: 7.73 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002864/0.1936, allocations: 0 / 0.5236 GB, free: 7.73 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.01225/0.2059, allocations: 3.849 MB / 0.5274 GB, free: 3.812 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.655e-05/0.206, allocations: 11.89 kB / 0.5274 GB, free: 3.801 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01723/0.2232, allocations: 2.371 MB / 0.5297 GB, free: 1.422 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2586/0.4819, allocations: 2.326 MB / 0.532 GB, free: 36.65 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001755/0.4821, allocations: 174.1 kB / 0.5321 GB, free: 36.64 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008166/0.4829, allocations: 234.5 kB / 0.5324 GB, free: 36.64 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01404/0.497, allocations: 7.886 MB / 0.5401 GB, free: 33.93 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001681/0.4972, allocations: 35.97 kB / 0.5401 GB, free: 33.91 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005175/0.4977, allocations: 112.6 kB / 0.5402 GB, free: 33.87 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003545/0.5013, allocations: 1.666 MB / 0.5418 GB, free: 33.58 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01449/0.5158, allocations: 6.755 MB / 0.5484 GB, free: 31.48 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03686/0.5527, allocations: 31.4 MB / 0.5791 GB, free: 5.633 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004365/0.5571, allocations: 2.343 MB / 0.5814 GB, free: 3.141 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001399/0.5586, allocations: 1.181 MB / 0.5825 GB, free: 1.949 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000326/0.5589, allocations: 319.9 kB / 0.5828 GB, free: 1.582 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.25e-05/0.559, allocations: 51.06 kB / 0.5829 GB, free: 1.523 MB / 414.1 MB Notification: Performance of pre-optimization done (n=117): time 3.677e-06/0.559, allocations: 0 / 0.5829 GB, free: 1.523 MB / 414.1 MB Notification: Performance of matching and sorting (n=141): time 0.04037/0.5994, allocations: 12.31 MB / 0.5949 GB, free: 5.074 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/0.5995, allocations: 196.6 kB / 0.5951 GB, free: 4.84 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006626/0.6061, allocations: 3.73 MB / 0.5987 GB, free: 1.113 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00033/0.6065, allocations: 49.7 kB / 0.5988 GB, free: 1.059 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002216/0.6087, allocations: 2.658 MB / 0.6014 GB, free: 14.36 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008043/0.6096, allocations: 0.5711 MB / 0.6019 GB, free: 13.79 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002164/0.6117, allocations: 1.118 MB / 0.603 GB, free: 12.66 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.6119, allocations: 301.1 kB / 0.6033 GB, free: 12.36 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003147/0.615, allocations: 1.807 MB / 0.6051 GB, free: 10.55 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00577/0.6208, allocations: 5.252 MB / 0.6102 GB, free: 3.562 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01004/0.6309, allocations: 7.611 MB / 0.6176 GB, free: 10.24 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000144/0.6311, allocations: 46.44 kB / 0.6177 GB, free: 10.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01528/0.6464, allocations: 7.281 MB / 0.6248 GB, free: 2.91 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001481/0.6466, allocations: 56 kB / 0.6248 GB, free: 2.855 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002261/0.6468, allocations: 124 kB / 0.625 GB, free: 2.734 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001799/0.6486, allocations: 0.6565 MB / 0.6256 GB, free: 2.074 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004282/0.6529, allocations: 1.263 MB / 0.6268 GB, free: 0.8086 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005224/0.6582, allocations: 4.065 MB / 0.6308 GB, free: 12.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004093/0.6623, allocations: 307.2 kB / 0.6311 GB, free: 12.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009014/0.6633, allocations: 344 kB / 0.6314 GB, free: 11.97 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.003616/0.6669, allocations: 1.78 MB / 0.6332 GB, free: 10.18 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000822/0.6677, allocations: 312 kB / 0.6335 GB, free: 9.871 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005063/0.6728, allocations: 2.227 MB / 0.6356 GB, free: 7.629 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.076e-05/0.6729, allocations: 16 kB / 0.6357 GB, free: 7.613 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.573e-05/0.6729, allocations: 4 kB / 0.6357 GB, free: 7.609 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.212e-05/0.6729, allocations: 7.969 kB / 0.6357 GB, free: 7.602 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01322/0.6861, allocations: 5.929 MB / 0.6415 GB, free: 1.586 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.929e-05/0.6862, allocations: 7.938 kB / 0.6415 GB, free: 1.578 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001145/0.6874, allocations: 215.7 kB / 0.6417 GB, free: 1.367 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001424/0.6888, allocations: 488.3 kB / 0.6421 GB, free: 0.8867 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001489/0.689, allocations: 23.98 kB / 0.6422 GB, free: 0.8633 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004296/0.6933, allocations: 3.43 MB / 0.6455 GB, free: 13.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.6933, allocations: 64 / 0.6455 GB, free: 13.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006913/0.7002, allocations: 4.356 MB / 0.6498 GB, free: 8.902 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001404/0.7016, allocations: 0.5477 MB / 0.6503 GB, free: 8.332 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007037/0.7024, allocations: 27.92 kB / 0.6503 GB, free: 8.305 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001592/0.704, allocations: 79.89 kB / 0.6504 GB, free: 8.227 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002974/0.7043, allocations: 76.61 kB / 0.6505 GB, free: 8.152 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001135/0.7044, allocations: 36 kB / 0.6505 GB, free: 8.117 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004892/0.7093, allocations: 2.337 MB / 0.6528 GB, free: 5.793 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.7093, allocations: 0 / 0.6528 GB, free: 5.793 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005309/0.7147, allocations: 0.8384 MB / 0.6536 GB, free: 4.957 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.0005643/0.7152, allocations: 156.2 kB / 0.6538 GB, free: 4.801 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007885/0.7231, allocations: 4.306 MB / 0.658 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.574e-06/0.7232, allocations: 1.125 kB / 0.658 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002095/0.7253, allocations: 1.197 MB / 0.6591 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003257/0.7286, allocations: 365.7 kB / 0.6595 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01578/0.7444, allocations: 7.8 MB / 0.6671 GB, free: 7.117 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003996/0.7484, allocations: 2.75 MB / 0.6698 GB, free: 4.344 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001065/0.7495, allocations: 255.4 kB / 0.67 GB, free: 4.094 MB / 0.4981 GB Notification: Performance of SimCode: time 1.192e-06/0.7495, allocations: 0 / 0.67 GB, free: 4.094 MB / 0.4981 GB Notification: Performance of Templates: time 0.0938/0.8433, allocations: 64.27 MB / 0.7328 GB, free: 3.754 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