Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.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.Clocked.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009818/0.0009821, allocations: 198.6 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.203/1.203, allocations: 227.2 MB / 245 MB, free: 7.488 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007881/0.0007881, allocations: 108.6 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002421/0.0002421, allocations: 8 kB / 357.9 MB, free: 9.543 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.19/0.1903, allocations: 51.48 MB / 409.4 MB, free: 26.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0816/0.2719, allocations: 77.88 MB / 487.3 MB, free: 12.77 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002057/0.2721, allocations: 87.88 kB / 487.4 MB, free: 12.69 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004085/0.2762, allocations: 1.612 MB / 489 MB, free: 11.09 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2763, allocations: 0 / 489 MB, free: 11.09 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.2763, allocations: 8 kB / 489 MB, free: 11.08 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003194/0.2766, allocations: 370.9 kB / 489.4 MB, free: 10.67 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.275e-05/0.2767, allocations: 12.03 kB / 489.4 MB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001263/0.2768, allocations: 19.89 kB / 489.4 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000165/0.277, allocations: 193.1 kB / 489.6 MB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.277, allocations: 7.953 kB / 489.6 MB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.019e-05/0.277, allocations: 4 kB / 489.6 MB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002258/0.2772, allocations: 113.9 kB / 489.7 MB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.802e-06/0.2772, allocations: 3.938 kB / 489.7 MB, free: 10.26 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.849e-06/0.2773, allocations: 4 kB / 489.7 MB, free: 10.26 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.2773, allocations: 0 / 489.7 MB, free: 10.26 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.452e-05/0.2774, allocations: 27.98 kB / 489.7 MB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003096/0.2777, allocations: 286.5 kB / 490 MB, free: 9.895 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.107e-05/0.2778, allocations: 67.8 kB / 490.1 MB, free: 9.801 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.563e-05/0.2778, allocations: 0 / 490.1 MB, free: 9.801 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.376e-05/0.2778, allocations: 42.61 kB / 490.1 MB, free: 9.75 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.2778, allocations: 0 / 490.1 MB, free: 9.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002366/0.2781, allocations: 97.45 kB / 490.2 MB, free: 9.648 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.914e-05/0.2781, allocations: 106.8 kB / 490.3 MB, free: 9.52 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.384e-05/0.2782, allocations: 129 kB / 490.5 MB, free: 9.387 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.137e-05/0.2783, allocations: 26.08 kB / 490.5 MB, free: 9.355 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.612e-05/0.2783, allocations: 92.14 kB / 490.6 MB, free: 9.262 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.311e-05/0.2783, allocations: 7.891 kB / 490.6 MB, free: 9.254 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.685e-06/0.2783, allocations: 0 / 490.6 MB, free: 9.254 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.007e-05/0.2784, allocations: 318.8 kB / 490.9 MB, free: 8.934 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.255e-05/0.2785, allocations: 11.98 kB / 490.9 MB, free: 8.922 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.544e-05/0.2785, allocations: 39.42 kB / 490.9 MB, free: 8.871 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.428e-05/0.2786, allocations: 16 kB / 491 MB, free: 8.855 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.2786, allocations: 0 / 491 MB, free: 8.855 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000132/0.2787, allocations: 77.64 kB / 491 MB, free: 8.773 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.062e-05/0.2787, allocations: 7.938 kB / 491 MB, free: 8.766 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.2787, allocations: 0 / 491 MB, free: 8.766 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.2788, allocations: 4 kB / 491 MB, free: 8.762 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.912e-05/0.2788, allocations: 8 kB / 491 MB, free: 8.754 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.2788, allocations: 0 / 491 MB, free: 8.754 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.334e-05/0.2789, allocations: 15.92 kB / 491.1 MB, free: 8.738 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-06/0.2789, allocations: 4 kB / 491.1 MB, free: 8.734 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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 6.8e-05/0.279, allocations: 121.8 kB / 491.2 MB, free: 8.605 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.481e-05/0.2791, allocations: 53.53 kB / 491.2 MB, free: 8.547 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.971e-05/0.2791, allocations: 11.88 kB / 491.2 MB, free: 8.527 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.2791, allocations: 0 / 491.2 MB, free: 8.527 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2791, allocations: 4 kB / 491.3 MB, free: 8.523 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.2791, allocations: 0 / 491.3 MB, free: 8.523 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001471/0.2793, allocations: 181.5 kB / 491.4 MB, free: 8.297 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.2793, allocations: 0 / 491.4 MB, free: 8.297 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.852e-05/0.2793, allocations: 8 kB / 491.4 MB, free: 8.289 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.2794, allocations: 0 / 491.4 MB, free: 8.289 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.617e-06/0.2794, allocations: 12.05 kB / 491.5 MB, free: 8.277 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.2794, allocations: 3.938 kB / 491.5 MB, free: 8.273 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2794, allocations: 0 / 491.5 MB, free: 8.273 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001844/0.2796, allocations: 208.6 kB / 491.7 MB, free: 8.035 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.156e-05/0.2796, allocations: 89.09 kB / 491.7 MB, free: 7.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.434e-05/0.2796, allocations: 4 kB / 491.7 MB, free: 7.926 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.838e-05/0.2797, allocations: 4 kB / 491.8 MB, free: 7.922 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.296e-05/0.2798, allocations: 0 / 491.8 MB, free: 7.922 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.908e-06/0.2798, allocations: 0 / 491.8 MB, free: 7.922 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.463e-05/0.2798, allocations: 118 kB / 491.9 MB, free: 7.809 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2798, allocations: 0 / 491.9 MB, free: 7.809 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002087/0.2801, allocations: 11.91 kB / 491.9 MB, free: 7.797 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (4): * Single equations (assignments): 4 * 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 8.953e-05/0.2801, allocations: 114.7 kB / 492 MB, free: 7.68 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001272/0.2803, allocations: 31.98 kB / 492 MB, free: 7.648 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2803, allocations: 0 / 492 MB, free: 7.648 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.033e-05/0.2803, allocations: 16.19 kB / 492 MB, free: 7.633 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002265/0.2806, allocations: 24.02 kB / 492.1 MB, free: 7.609 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002882/0.2809, allocations: 215.9 kB / 492.3 MB, free: 7.363 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000209/0.2811, allocations: 0.6926 MB / 493 MB, free: 6.645 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.083e-05/0.2811, allocations: 4.172 kB / 493 MB, free: 6.637 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.98e-05/0.2812, allocations: 11.44 kB / 493 MB, free: 6.625 MB / 362.7 MB Notification: Performance of SimCode: time 2.8e-07/0.2812, allocations: 0 / 493 MB, free: 6.625 MB / 362.7 MB Notification: Performance of Templates: time 0.002095/0.2833, allocations: 0.5618 MB / 493.5 MB, free: 6.082 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,time