Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.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.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001087/0.001087, allocations: 196.5 kB / 18.1 MB, free: 3.613 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.282/1.282, allocations: 226.5 MB / 245.4 MB, free: 6.453 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008856/0.0008855, allocations: 95.11 kB / 297.5 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002185/0.0002188, allocations: 4 kB / 358.1 MB, free: 10.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2162/0.2164, allocations: 51.28 MB / 409.4 MB, free: 27.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1062/0.3227, allocations: 77.79 MB / 487.2 MB, free: 13.74 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003749/0.3231, allocations: 79.95 kB / 487.2 MB, free: 13.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006684/0.3298, allocations: 1.614 MB / 488.8 MB, free: 12.05 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3299, allocations: 0 / 488.8 MB, free: 12.05 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.447e-05/0.3299, allocations: 7.984 kB / 488.9 MB, free: 12.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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005235/0.3304, allocations: 367.2 kB / 489.2 MB, free: 11.64 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.778e-05/0.3305, allocations: 8.031 kB / 489.2 MB, free: 11.63 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002293/0.3308, allocations: 20.83 kB / 489.2 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003251/0.3311, allocations: 206.5 kB / 489.4 MB, free: 11.37 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.3311, allocations: 4.375 kB / 489.4 MB, free: 11.37 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.564e-05/0.3312, allocations: 8.375 kB / 489.5 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004253/0.3316, allocations: 101.6 kB / 489.6 MB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.3316, allocations: 192 / 489.6 MB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.016e-05/0.3317, allocations: 3.938 kB / 489.6 MB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.3317, allocations: 4 kB / 489.6 MB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001502/0.3319, allocations: 23.98 kB / 489.6 MB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005685/0.3324, allocations: 269.7 kB / 489.9 MB, free: 10.89 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001155/0.3326, allocations: 49.16 kB / 489.9 MB, free: 10.83 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.993e-05/0.3327, allocations: 21.77 kB / 489.9 MB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.782e-05/0.3327, allocations: 4 kB / 489.9 MB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.833e-05/0.3328, allocations: 34.5 kB / 490 MB, free: 10.75 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 1.753e-06/0.3328, allocations: 4 kB / 490 MB, free: 10.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003982/0.3332, allocations: 77.52 kB / 490 MB, free: 10.67 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.46e-05/0.3333, allocations: 77.11 kB / 490.1 MB, free: 10.57 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000197/0.3335, allocations: 141.8 kB / 490.3 MB, free: 10.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.198e-05/0.3335, allocations: 25.95 kB / 490.3 MB, free: 10.39 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.181e-05/0.3336, allocations: 96.12 kB / 490.4 MB, free: 10.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.087e-05/0.3337, allocations: 0 / 490.4 MB, free: 10.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.128e-06/0.3337, allocations: 0 / 490.4 MB, free: 10.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.3339, allocations: 322.8 kB / 490.7 MB, free: 9.973 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.145e-05/0.3339, allocations: 12 kB / 490.7 MB, free: 9.961 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.395e-05/0.334, allocations: 21.7 kB / 490.7 MB, free: 9.934 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001157/0.3341, allocations: 37.64 kB / 490.8 MB, free: 9.891 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.3342, allocations: 0 / 490.8 MB, free: 9.891 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001754/0.3343, allocations: 61.66 kB / 490.8 MB, free: 9.824 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.816e-05/0.3344, allocations: 12 kB / 490.8 MB, free: 9.812 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.846e-06/0.3344, allocations: 0 / 490.8 MB, free: 9.812 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.298e-05/0.3344, allocations: 0 / 490.8 MB, free: 9.812 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.627e-05/0.3345, allocations: 15.86 kB / 490.8 MB, free: 9.797 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.266e-06/0.3345, allocations: 0 / 490.8 MB, free: 9.797 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.119e-05/0.3346, allocations: 4 kB / 490.8 MB, free: 9.793 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.643e-05/0.3346, allocations: 8 kB / 490.9 MB, free: 9.785 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0001003/0.3348, allocations: 117.8 kB / 491 MB, free: 9.66 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.972e-05/0.3348, allocations: 41.59 kB / 491 MB, free: 9.613 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.633e-05/0.3349, allocations: 11.88 kB / 491 MB, free: 9.598 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.3349, allocations: 0 / 491 MB, free: 9.598 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.3349, allocations: 4 kB / 491 MB, free: 9.594 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.3349, allocations: 0 / 491 MB, free: 9.594 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00019/0.3351, allocations: 169.6 kB / 491.2 MB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.3351, allocations: 0 / 491.2 MB, free: 9.379 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.798e-05/0.3352, allocations: 11.98 kB / 491.2 MB, free: 9.367 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.3352, allocations: 0 / 491.2 MB, free: 9.367 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-06/0.3352, allocations: 0 / 491.2 MB, free: 9.367 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.3352, allocations: 7.969 kB / 491.2 MB, free: 9.359 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.3352, allocations: 4 kB / 491.2 MB, free: 9.355 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002491/0.3355, allocations: 164.2 kB / 491.4 MB, free: 9.176 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.757e-05/0.3355, allocations: 85.09 kB / 491.5 MB, free: 9.074 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.23e-05/0.3356, allocations: 8.031 kB / 491.5 MB, free: 9.066 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.3357, allocations: 0 / 491.5 MB, free: 9.066 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.397e-05/0.3358, allocations: 4 kB / 491.5 MB, free: 9.062 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-06/0.3358, allocations: 0 / 491.5 MB, free: 9.062 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001138/0.3359, allocations: 114.3 kB / 491.6 MB, free: 8.953 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3359, allocations: 0 / 491.6 MB, free: 8.953 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004146/0.3363, allocations: 11.91 kB / 491.6 MB, free: 8.941 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0001536/0.3365, allocations: 94.34 kB / 491.7 MB, free: 8.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002091/0.3367, allocations: 35.92 kB / 491.7 MB, free: 8.805 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/0.3367, allocations: 0 / 491.7 MB, free: 8.805 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.543e-05/0.3368, allocations: 11.98 kB / 491.7 MB, free: 8.793 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000512/0.3374, allocations: 23.89 kB / 491.8 MB, free: 8.77 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004717/0.3378, allocations: 193.4 kB / 491.9 MB, free: 8.547 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003022/0.3382, allocations: 0.6887 MB / 492.6 MB, free: 7.832 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.93e-05/0.3382, allocations: 7.984 kB / 492.6 MB, free: 7.824 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.815e-05/0.3383, allocations: 11.44 kB / 492.7 MB, free: 7.812 MB / 362.7 MB Notification: Performance of SimCode: time 2.81e-07/0.3383, allocations: 0 / 492.7 MB, free: 7.812 MB / 362.7 MB Notification: Performance of Templates: time 0.003188/0.3415, allocations: 0.5115 MB / 493.2 MB, free: 7.316 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,time