Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.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.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper1.s_rel|damper1.v_rel|mass1.s|mass1.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Oscillator") translateModel(Modelica.Mechanics.Translational.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper1.s_rel|damper1.v_rel|mass1.s|mass1.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Oscillator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001183/0.001184, allocations: 203 kB / 18.07 MB, free: 3.641 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.792/1.792, allocations: 226.5 MB / 245.4 MB, free: 8.141 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001299/0.001299, allocations: 100.3 kB / 297.4 MB, free: 6.867 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004853/0.0004854, allocations: 8 kB / 357.4 MB, free: 10.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4639/0.4644, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1731/0.6376, allocations: 78.98 MB / 487.6 MB, free: 12.62 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003742/0.638, allocations: 75.95 kB / 487.7 MB, free: 12.54 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01983/0.6579, allocations: 3.995 MB / 491.7 MB, free: 8.539 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.658, allocations: 0 / 491.7 MB, free: 8.539 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.742e-05/0.658, allocations: 4 kB / 491.7 MB, free: 8.535 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001278/0.6593, allocations: 0.4917 MB / 492.2 MB, free: 7.996 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.097e-05/0.6594, allocations: 12.03 kB / 492.2 MB, free: 7.984 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004621/0.6599, allocations: 44.64 kB / 492.3 MB, free: 7.941 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004033/0.6603, allocations: 236.4 kB / 492.5 MB, free: 7.668 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.811e-05/0.6604, allocations: 16.81 kB / 492.5 MB, free: 7.652 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.455e-05/0.6604, allocations: 24.38 kB / 492.5 MB, free: 7.629 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008097/0.6613, allocations: 226.5 kB / 492.8 MB, free: 7.395 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.888e-05/0.6613, allocations: 0 / 492.8 MB, free: 7.395 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.14e-05/0.6614, allocations: 8 kB / 492.8 MB, free: 7.387 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.752e-05/0.6614, allocations: 8 kB / 492.8 MB, free: 7.379 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006715/0.6621, allocations: 155.8 kB / 492.9 MB, free: 7.227 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002204/0.6643, allocations: 0.7988 MB / 493.7 MB, free: 6.363 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007513/0.6651, allocations: 201 kB / 493.9 MB, free: 6.148 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003976/0.6655, allocations: 109.7 kB / 494 MB, free: 6.035 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.682e-05/0.6656, allocations: 4 kB / 494 MB, free: 6.031 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.102e-05/0.6657, allocations: 42.66 kB / 494.1 MB, free: 5.98 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 5.32e-06/0.6657, allocations: 0 / 494.1 MB, free: 5.98 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.003095/0.6688, allocations: 0.8708 MB / 494.9 MB, free: 5.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.845e-05/0.6689, allocations: 85.02 kB / 495 MB, free: 4.918 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002961/0.6692, allocations: 183.3 kB / 495.2 MB, free: 4.727 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.819e-05/0.6693, allocations: 25.7 kB / 495.2 MB, free: 4.695 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001458/0.6694, allocations: 144.4 kB / 495.4 MB, free: 4.551 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001122/0.6696, allocations: 90.64 kB / 495.5 MB, free: 4.461 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.295e-05/0.6696, allocations: 8 kB / 495.5 MB, free: 4.453 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.6698, allocations: 334.8 kB / 495.8 MB, free: 4.117 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002707/0.6701, allocations: 63.97 kB / 495.9 MB, free: 4.055 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002923/0.6704, allocations: 112.2 kB / 496 MB, free: 3.93 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000616/0.671, allocations: 194.6 kB / 496.2 MB, free: 3.727 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.671, allocations: 4 kB / 496.2 MB, free: 3.723 MB / 362.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008385/0.6719, allocations: 256 kB / 496.4 MB, free: 3.469 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.227e-05/0.6719, allocations: 4 kB / 496.4 MB, free: 3.465 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.672, allocations: 0 / 496.4 MB, free: 3.465 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.61e-05/0.672, allocations: 4 kB / 496.4 MB, free: 3.461 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005289/0.6725, allocations: 63.89 kB / 496.5 MB, free: 3.398 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.631e-05/0.6726, allocations: 7.938 kB / 496.5 MB, free: 3.391 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002917/0.6729, allocations: 12 kB / 496.5 MB, free: 3.379 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.784e-05/0.6729, allocations: 8.094 kB / 496.5 MB, free: 3.371 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (32): * Single equations (assignments): 32 * 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.0002821/0.6732, allocations: 145.7 kB / 496.6 MB, free: 3.219 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.6734, allocations: 23.72 kB / 496.7 MB, free: 3.195 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001212/0.6735, allocations: 29.84 kB / 496.7 MB, free: 3.168 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.094e-06/0.6735, allocations: 4 kB / 496.7 MB, free: 3.164 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.361e-05/0.6735, allocations: 0 / 496.7 MB, free: 3.164 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.6736, allocations: 4 kB / 496.7 MB, free: 3.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001497/0.6751, allocations: 0.5934 MB / 497.3 MB, free: 2.504 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.6751, allocations: 0 / 497.3 MB, free: 2.504 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005149/0.6756, allocations: 63.91 kB / 497.4 MB, free: 2.441 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.274e-05/0.6756, allocations: 8.094 kB / 497.4 MB, free: 2.434 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.222e-05/0.6757, allocations: 4 kB / 497.4 MB, free: 2.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.294e-05/0.6757, allocations: 4 kB / 497.4 MB, free: 2.426 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.6757, allocations: 3.938 kB / 497.4 MB, free: 2.422 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001215/0.677, allocations: 0.4892 MB / 497.9 MB, free: 1.906 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00011/0.6771, allocations: 100.9 kB / 498 MB, free: 1.789 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.509e-05/0.6772, allocations: 4 kB / 498 MB, free: 1.785 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003292/0.6775, allocations: 16 kB / 498 MB, free: 1.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.803e-05/0.6776, allocations: 19.91 kB / 498 MB, free: 1.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.991e-05/0.6777, allocations: 16 kB / 498 MB, free: 1.734 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001665/0.6778, allocations: 132.3 kB / 498.2 MB, free: 1.605 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6779, allocations: 0 / 498.2 MB, free: 1.605 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006684/0.6785, allocations: 52 kB / 498.2 MB, free: 1.555 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (mass1.s,mass1.v,damper1.s_rel,damper1.v_rel) * 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 (26): * Single equations (assignments): 26 * 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.0002088/0.6788, allocations: 107.1 kB / 498.3 MB, free: 1.441 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006762/0.6795, allocations: 187.7 kB / 498.5 MB, free: 1.258 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.6795, allocations: 0 / 498.5 MB, free: 1.258 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003261/0.6798, allocations: 96.22 kB / 498.6 MB, free: 1.164 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000929/0.6808, allocations: 48.64 kB / 498.6 MB, free: 1.117 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002172/0.683, allocations: 0.8705 MB / 499.5 MB, free: 200 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005515/0.6835, allocations: 0.7478 MB / 0.4885 GB, free: 15.42 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.6837, allocations: 23.42 kB / 0.4885 GB, free: 15.4 MB / 378.7 MB Notification: Performance of SimCode: time 7.81e-07/0.6837, allocations: 0 / 0.4885 GB, free: 15.4 MB / 378.7 MB Notification: Performance of Templates: time 0.01218/0.6959, allocations: 2.553 MB / 0.491 GB, free: 12.86 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Oscillator --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches