Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Translational.Examples.Sensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass.s|mass.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors") translateModel(Modelica.Mechanics.Translational.Examples.Sensors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass.s|mass.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001694/0.001694, allocations: 195.4 kB / 18.06 MB, free: 3.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.105/2.105, allocations: 226.5 MB / 245.4 MB, free: 8.273 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001021/0.001021, allocations: 105 kB / 297.4 MB, free: 6.926 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004445/0.0004449, allocations: 12 kB / 357.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4327/0.4332, allocations: 51.29 MB / 408.7 MB, free: 27.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2158/0.6491, allocations: 78.98 MB / 487.6 MB, free: 12.66 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003473/0.6495, allocations: 80.7 kB / 487.7 MB, free: 12.58 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01547/0.665, allocations: 2.774 MB / 490.5 MB, free: 9.816 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.819e-06/0.6651, allocations: 0 / 490.5 MB, free: 9.816 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.963e-05/0.6651, allocations: 0 / 490.5 MB, free: 9.816 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0007986/0.6659, allocations: 414.9 kB / 490.9 MB, free: 9.359 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.868e-05/0.666, allocations: 11.97 kB / 490.9 MB, free: 9.348 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002635/0.6663, allocations: 36.73 kB / 490.9 MB, free: 9.312 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002837/0.6666, allocations: 200.3 kB / 491.1 MB, free: 9.078 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.824e-05/0.6666, allocations: 8.375 kB / 491.1 MB, free: 9.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.787e-05/0.6667, allocations: 20.31 kB / 491.2 MB, free: 9.051 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004014/0.6671, allocations: 134.8 kB / 491.3 MB, free: 8.914 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.767e-05/0.6671, allocations: 8.094 kB / 491.3 MB, free: 8.906 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.131e-05/0.6672, allocations: 15.88 kB / 491.3 MB, free: 8.891 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.6672, allocations: 4 kB / 491.3 MB, free: 8.887 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003137/0.6675, allocations: 99.69 kB / 491.4 MB, free: 8.789 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001133/0.6686, allocations: 0.5328 MB / 492 MB, free: 8.199 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002388/0.6689, allocations: 74.55 kB / 492 MB, free: 8.117 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.669, allocations: 32.84 kB / 492.1 MB, free: 8.082 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.448e-05/0.6691, allocations: 0 / 492.1 MB, free: 8.082 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.722e-05/0.6691, allocations: 38.75 kB / 492.1 MB, free: 8.035 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 4.369e-06/0.6691, allocations: 0 / 492.1 MB, free: 8.035 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.001354/0.6705, allocations: 0.6061 MB / 492.7 MB, free: 7.336 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/0.6705, allocations: 55.41 kB / 492.8 MB, free: 7.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001468/0.6707, allocations: 129.7 kB / 492.9 MB, free: 7.133 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.6707, allocations: 33.7 kB / 492.9 MB, free: 7.094 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.6709, allocations: 140.9 kB / 493.1 MB, free: 6.953 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.818e-05/0.6709, allocations: 31.47 kB / 493.1 MB, free: 6.922 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.111e-05/0.6709, allocations: 4 kB / 493.1 MB, free: 6.918 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.6711, allocations: 326.8 kB / 493.4 MB, free: 6.59 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001057/0.6712, allocations: 27.98 kB / 493.4 MB, free: 6.562 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001563/0.6713, allocations: 93.02 kB / 493.5 MB, free: 6.449 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002794/0.6716, allocations: 139.5 kB / 493.7 MB, free: 6.289 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.98e-06/0.6716, allocations: 4 kB / 493.7 MB, free: 6.285 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003941/0.6721, allocations: 157.4 kB / 493.8 MB, free: 6.125 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.6721, allocations: 4 kB / 493.8 MB, free: 6.121 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.789e-06/0.6721, allocations: 4 kB / 493.8 MB, free: 6.117 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.6721, allocations: 4 kB / 493.8 MB, free: 6.113 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002292/0.6724, allocations: 44.11 kB / 493.9 MB, free: 6.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.223e-05/0.6724, allocations: 3.984 kB / 493.9 MB, free: 6.066 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001472/0.6726, allocations: 11.94 kB / 493.9 MB, free: 6.055 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.881e-05/0.6726, allocations: 8 kB / 493.9 MB, free: 6.047 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000156/0.6728, allocations: 121.8 kB / 494 MB, free: 5.918 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.28e-05/0.6728, allocations: 7.906 kB / 494 MB, free: 5.91 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.703e-05/0.6729, allocations: 12.38 kB / 494 MB, free: 5.895 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.853e-06/0.6729, allocations: 11.94 kB / 494 MB, free: 5.883 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.6729, allocations: 3.984 kB / 494 MB, free: 5.879 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.6729, allocations: 3.938 kB / 494.1 MB, free: 5.875 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008569/0.6738, allocations: 447.9 kB / 494.5 MB, free: 5.375 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.6738, allocations: 4.062 kB / 494.5 MB, free: 5.371 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001926/0.674, allocations: 31.92 kB / 494.5 MB, free: 5.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.674, allocations: 0 / 494.5 MB, free: 5.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.588e-05/0.6741, allocations: 0 / 494.5 MB, free: 5.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.897e-06/0.6741, allocations: 4 kB / 494.5 MB, free: 5.336 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.6741, allocations: 3.938 kB / 494.5 MB, free: 5.332 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004668/0.6746, allocations: 254.9 kB / 494.8 MB, free: 5.062 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.169e-05/0.6746, allocations: 92.97 kB / 494.9 MB, free: 4.953 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.697e-05/0.6747, allocations: 3.938 kB / 494.9 MB, free: 4.949 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.6748, allocations: 8 kB / 494.9 MB, free: 4.941 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.95e-05/0.6749, allocations: 7.984 kB / 494.9 MB, free: 4.934 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.6749, allocations: 4 kB / 494.9 MB, free: 4.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.9e-05/0.675, allocations: 103.3 kB / 495 MB, free: 4.828 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.675, allocations: 0 / 495 MB, free: 4.828 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004718/0.6755, allocations: 24 kB / 495 MB, free: 4.805 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mass.s,mass.v) * 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 (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001972/0.6757, allocations: 107.2 kB / 495.1 MB, free: 4.691 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003437/0.6761, allocations: 104.1 kB / 495.2 MB, free: 4.59 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.6761, allocations: 0 / 495.2 MB, free: 4.59 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001188/0.6762, allocations: 39.92 kB / 495.3 MB, free: 4.551 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004681/0.6809, allocations: 19.92 kB / 495.3 MB, free: 4.531 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001461/0.6824, allocations: 0.5399 MB / 495.8 MB, free: 3.953 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003569/0.6828, allocations: 0.716 MB / 496.5 MB, free: 3.211 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.205e-05/0.6829, allocations: 19.44 kB / 496.6 MB, free: 3.191 MB / 362.7 MB Notification: Performance of SimCode: time 1.443e-06/0.6829, allocations: 0 / 496.6 MB, free: 3.191 MB / 362.7 MB Notification: Performance of Templates: time 0.004104/0.687, allocations: 1.42 MB / 498 MB, free: 1.781 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Sensors/Sensors.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Sensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches