Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002194/0.002194, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.172/2.172, allocations: 205.2 MB / 219.4 MB, free: 14.22 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001073/0.001073, allocations: 82.7 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2801/0.2801, allocations: 43.49 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.184e-05/3.203e-05, allocations: 0 / 425.3 MB, free: 23.38 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1119, allocations: 58.87 MB / 484.1 MB, free: 12.47 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5016/0.6135, allocations: 105.1 MB / 0.5754 GB, free: 14.83 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/0.6139, allocations: 77.69 kB / 0.5755 GB, free: 14.8 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.357/0.9709, allocations: 73.27 MB / 0.647 GB, free: 13.42 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.971, allocations: 4 kB / 0.647 GB, free: 13.41 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001984/0.9712, allocations: 64 kB / 0.6471 GB, free: 13.35 MB / 458.7 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.01301/0.9842, allocations: 3.267 MB / 0.6503 GB, free: 10.02 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.9843, allocations: 8.031 kB / 0.6503 GB, free: 10.02 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03195/1.016, allocations: 4.25 MB / 0.6544 GB, free: 5.754 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0169/1.033, allocations: 4.22 MB / 0.6586 GB, free: 1.469 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003657/1.034, allocations: 246.5 kB / 0.6588 GB, free: 1.227 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001934/1.036, allocations: 327.8 kB / 0.6591 GB, free: 0.9062 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02304/1.059, allocations: 8.232 MB / 0.6671 GB, free: 7.711 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002074/1.059, allocations: 63.41 kB / 0.6672 GB, free: 7.648 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001062/1.06, allocations: 167.9 kB / 0.6674 GB, free: 7.484 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001834/1.062, allocations: 0.8173 MB / 0.6682 GB, free: 6.668 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01947/1.081, allocations: 6.586 MB / 0.6746 GB, free: 76 kB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4202/1.502, allocations: 39.85 MB / 0.7135 GB, free: 101.6 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007912/1.51, allocations: 2.252 MB / 0.7157 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002455/1.512, allocations: 1.061 MB / 0.7168 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005443/1.513, allocations: 323.2 kB / 0.7171 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.562e-05/1.513, allocations: 47.05 kB / 0.7171 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=117): time 5.55e-06/1.513, allocations: 0 / 0.7171 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=141): time 0.04684/1.56, allocations: 9.42 MB / 0.7263 GB, free: 98.21 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.502e-05/1.56, allocations: 196 kB / 0.7265 GB, free: 97.99 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008369/1.568, allocations: 3.293 MB / 0.7297 GB, free: 97.67 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003324/1.568, allocations: 42.86 kB / 0.7298 GB, free: 97.64 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002375/1.571, allocations: 2.639 MB / 0.7323 GB, free: 96.32 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009063/1.572, allocations: 0.5635 MB / 0.7329 GB, free: 96.02 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005972/1.572, allocations: 103.6 kB / 0.733 GB, free: 96.02 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0003277/1.573, allocations: 0.5423 MB / 0.7335 GB, free: 95.7 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003831/1.577, allocations: 1.592 MB / 0.7351 GB, free: 95.68 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006365/1.583, allocations: 5.027 MB / 0.74 GB, free: 91.21 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006348/1.589, allocations: 2.848 MB / 0.7428 GB, free: 91.19 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001352/1.59, allocations: 32.41 kB / 0.7428 GB, free: 91.19 MB / 0.4948 GB Notification: Performance of matching and sorting (n=702) (initialization): time 0.01731/1.607, allocations: 6.456 MB / 0.7491 GB, free: 90.87 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001052/1.607, allocations: 57.81 kB / 0.7491 GB, free: 90.87 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001714/1.607, allocations: 120.8 kB / 0.7493 GB, free: 90.87 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001137/1.608, allocations: 345.1 kB / 0.7496 GB, free: 90.86 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007559/1.616, allocations: 1.247 MB / 0.7508 GB, free: 90.75 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004222/1.62, allocations: 2.704 MB / 0.7534 GB, free: 89.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006269/1.627, allocations: 287.3 kB / 0.7537 GB, free: 89.32 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001189/1.628, allocations: 341.1 kB / 0.754 GB, free: 89.32 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 557 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (667): * Single equations (assignments): 663 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001223/1.629, allocations: 0.5249 MB / 0.7546 GB, free: 89.02 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008573/1.63, allocations: 311.8 kB / 0.7549 GB, free: 88.85 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004514/1.635, allocations: 1.693 MB / 0.7565 GB, free: 88.74 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-05/1.635, allocations: 16.06 kB / 0.7565 GB, free: 88.74 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.309e-05/1.635, allocations: 3.875 kB / 0.7565 GB, free: 88.74 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.22e-05/1.635, allocations: 7.781 kB / 0.7565 GB, free: 88.74 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01539/1.65, allocations: 5.382 MB / 0.7618 GB, free: 86.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.716e-05/1.65, allocations: 3.969 kB / 0.7618 GB, free: 86.75 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002198/1.652, allocations: 226.4 kB / 0.762 GB, free: 86.73 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007976/1.653, allocations: 154.5 kB / 0.7622 GB, free: 86.69 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002599/1.653, allocations: 30.14 kB / 0.7622 GB, free: 86.67 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00312/1.657, allocations: 2.145 MB / 0.7643 GB, free: 85.04 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/1.657, allocations: 3.938 kB / 0.7643 GB, free: 85.03 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007794/1.664, allocations: 3.764 MB / 0.768 GB, free: 83.26 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002024/1.667, allocations: 0.5341 MB / 0.7685 GB, free: 82.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000963/1.668, allocations: 26.02 kB / 0.7685 GB, free: 82.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002505/1.67, allocations: 68.11 kB / 0.7686 GB, free: 82.88 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003329/1.67, allocations: 79.05 kB / 0.7686 GB, free: 82.87 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001453/1.671, allocations: 37.72 kB / 0.7687 GB, free: 82.86 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.005835/1.676, allocations: 2.287 MB / 0.7709 GB, free: 82.07 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.21e-07/1.676, allocations: 0 / 0.7709 GB, free: 82.07 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005946/1.682, allocations: 0.8044 MB / 0.7717 GB, free: 81.96 MB / 0.4948 GB 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005112/1.683, allocations: 163 kB / 0.7719 GB, free: 81.84 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.008544/1.692, allocations: 3.916 MB / 0.7757 GB, free: 80.46 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/1.692, allocations: 0 / 0.7757 GB, free: 80.46 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002198/1.694, allocations: 1.07 MB / 0.7767 GB, free: 80 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002634/1.696, allocations: 343.9 kB / 0.7771 GB, free: 79.84 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01561/1.712, allocations: 6.309 MB / 0.7832 GB, free: 77.41 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004589/1.717, allocations: 2.837 MB / 0.786 GB, free: 76.25 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001437/1.718, allocations: 267 kB / 0.7862 GB, free: 76.23 MB / 0.4948 GB Notification: Performance of SimCode: time 1.072e-06/1.718, allocations: 0 / 0.7862 GB, free: 76.23 MB / 0.4948 GB Notification: Performance of Templates: time 0.1125/1.831, allocations: 60.99 MB / 0.8458 GB, free: 24.97 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches