Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 176.4 kB / 17.4 MB, free: 4.297 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.248/1.248, allocations: 223.3 MB / 241.4 MB, free: 11.69 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007933/0.0007933, allocations: 92.5 kB / 292.6 MB, free: 10.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002786/0.0002787, allocations: 11.94 kB / 352.3 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1794/0.1797, allocations: 50.39 MB / 402.7 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.078/0.2577, allocations: 78.28 MB / 481 MB, free: 2.062 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001842/0.258, allocations: 79.94 kB / 481.1 MB, free: 1.984 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009927/0.2679, allocations: 3.916 MB / 485 MB, free: 14.06 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2679, allocations: 0 / 485 MB, free: 14.06 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.358e-05/0.2679, allocations: 8 kB / 485 MB, free: 14.05 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.000609/0.2686, allocations: 499 kB / 485.5 MB, free: 13.52 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.2686, allocations: 8.031 kB / 485.5 MB, free: 13.51 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.977e-05/0.2687, allocations: 24.66 kB / 485.5 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002244/0.2689, allocations: 234.2 kB / 485.8 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.933e-05/0.2689, allocations: 16.81 kB / 485.8 MB, free: 13.2 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.999e-05/0.269, allocations: 20.36 kB / 485.8 MB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003795/0.2694, allocations: 229.7 kB / 486 MB, free: 12.94 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.2694, allocations: 0 / 486 MB, free: 12.94 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.988e-05/0.2694, allocations: 8 kB / 486 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.2694, allocations: 4 kB / 486 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003145/0.2697, allocations: 163.8 kB / 486.2 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001165/0.2709, allocations: 0.7961 MB / 487 MB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003778/0.2713, allocations: 209 kB / 487.2 MB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002211/0.2715, allocations: 105.7 kB / 487.3 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.085e-05/0.2716, allocations: 8 kB / 487.3 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/0.2716, allocations: 46.48 kB / 487.4 MB, free: 11.51 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 1.423e-06/0.2716, allocations: 0 / 487.4 MB, free: 11.51 MB / 362.7 MB Notification: Performance of matching and sorting (n=26): time 0.001614/0.2732, allocations: 0.8769 MB / 488.2 MB, free: 10.55 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.873e-05/0.2733, allocations: 88.89 kB / 488.3 MB, free: 10.44 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001657/0.2735, allocations: 175.6 kB / 488.5 MB, free: 10.26 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.281e-05/0.2735, allocations: 33.7 kB / 488.5 MB, free: 10.22 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.384e-05/0.2736, allocations: 132.6 kB / 488.7 MB, free: 10.09 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.528e-05/0.2737, allocations: 98.58 kB / 488.7 MB, free: 9.988 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.086e-05/0.2737, allocations: 4 kB / 488.8 MB, free: 9.984 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.2739, allocations: 330.8 kB / 489.1 MB, free: 9.652 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.274, allocations: 71.95 kB / 489.1 MB, free: 9.582 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001741/0.2742, allocations: 108.2 kB / 489.3 MB, free: 9.461 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003233/0.2745, allocations: 191 kB / 489.4 MB, free: 9.262 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.2745, allocations: 0 / 489.4 MB, free: 9.262 MB / 362.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004364/0.275, allocations: 261.4 kB / 489.7 MB, free: 9 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.275, allocations: 4 kB / 489.7 MB, free: 8.996 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.362e-06/0.275, allocations: 4 kB / 489.7 MB, free: 8.992 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.275, allocations: 0 / 489.7 MB, free: 8.992 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002444/0.2753, allocations: 67.91 kB / 489.8 MB, free: 8.926 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.116e-06/0.2753, allocations: 4.062 kB / 489.8 MB, free: 8.922 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001102/0.2754, allocations: 15.98 kB / 489.8 MB, free: 8.906 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.542e-05/0.2755, allocations: 8.094 kB / 489.8 MB, free: 8.898 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.0001189/0.2756, allocations: 142.2 kB / 489.9 MB, free: 8.75 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.742e-05/0.2756, allocations: 23.72 kB / 490 MB, free: 8.727 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.009e-05/0.2757, allocations: 29.86 kB / 490 MB, free: 8.703 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.2757, allocations: 4 kB / 490 MB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.2757, allocations: 0 / 490 MB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.2757, allocations: 0 / 490 MB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008737/0.2766, allocations: 0.5865 MB / 490.6 MB, free: 8.047 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.2766, allocations: 4 kB / 490.6 MB, free: 8.043 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000268/0.2769, allocations: 59.91 kB / 490.6 MB, free: 7.984 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.2769, allocations: 8.094 kB / 490.6 MB, free: 7.977 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.279e-05/0.277, allocations: 11.98 kB / 490.7 MB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.277, allocations: 0 / 490.7 MB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.167e-06/0.277, allocations: 7.938 kB / 490.7 MB, free: 7.957 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000635/0.2776, allocations: 493.9 kB / 491.1 MB, free: 7.449 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.927e-05/0.2777, allocations: 104.8 kB / 491.3 MB, free: 7.328 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.91e-05/0.2777, allocations: 8 kB / 491.3 MB, free: 7.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001584/0.2779, allocations: 12.03 kB / 491.3 MB, free: 7.309 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.685e-05/0.2779, allocations: 23.92 kB / 491.3 MB, free: 7.285 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.304e-05/0.278, allocations: 7.984 kB / 491.3 MB, free: 7.277 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001135/0.2781, allocations: 132.3 kB / 491.4 MB, free: 7.148 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2781, allocations: 0 / 491.4 MB, free: 7.148 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003224/0.2784, allocations: 52 kB / 491.5 MB, free: 7.098 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.0001318/0.2786, allocations: 107.2 kB / 491.6 MB, free: 6.984 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003839/0.2789, allocations: 191.7 kB / 491.8 MB, free: 6.797 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.279, allocations: 0 / 491.8 MB, free: 6.797 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001789/0.2791, allocations: 104.2 kB / 491.9 MB, free: 6.695 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004874/0.2796, allocations: 42.42 kB / 491.9 MB, free: 6.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001209/0.2809, allocations: 0.8383 MB / 492.8 MB, free: 5.777 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003263/0.2812, allocations: 0.7517 MB / 493.5 MB, free: 5 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001021/0.2813, allocations: 21.89 kB / 493.5 MB, free: 4.98 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.116e-05/0.2814, allocations: 23.44 kB / 493.6 MB, free: 4.957 MB / 362.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2814, allocations: 0 / 493.6 MB, free: 4.957 MB / 362.7 MB Notification: Performance of Templates: time 0.004919/0.2863, allocations: 1.824 MB / 495.4 MB, free: 3.148 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.sim & ./Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches