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.0009707/0.0009707, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.177/1.177, allocations: 227.2 MB / 245 MB, free: 5.906 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000886/0.000886, allocations: 111.9 kB / 297.3 MB, free: 5.988 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002022/0.0002023, allocations: 4 kB / 357.9 MB, free: 9.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1719/0.1721, allocations: 51.48 MB / 409.4 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08051/0.2527, allocations: 77.85 MB / 487.3 MB, free: 12.78 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000196/0.2529, allocations: 80.67 kB / 487.3 MB, free: 12.7 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004061/0.257, allocations: 1.623 MB / 489 MB, free: 11.09 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.257, allocations: 0 / 489 MB, free: 11.09 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.257, allocations: 0 / 489 MB, free: 11.09 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.0003147/0.2574, allocations: 371 kB / 489.3 MB, free: 10.68 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.001e-05/0.2574, allocations: 8.031 kB / 489.3 MB, free: 10.67 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/0.2575, allocations: 23.89 kB / 489.4 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001505/0.2577, allocations: 189.1 kB / 489.5 MB, free: 10.42 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.739e-06/0.2577, allocations: 15.89 kB / 489.6 MB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.061e-05/0.2577, allocations: 4 kB / 489.6 MB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002153/0.258, allocations: 113 kB / 489.7 MB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.922e-06/0.258, allocations: 0 / 489.7 MB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.413e-06/0.258, allocations: 4 kB / 489.7 MB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.497e-06/0.258, allocations: 0 / 489.7 MB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.471e-05/0.2581, allocations: 23.98 kB / 489.7 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002964/0.2584, allocations: 265.8 kB / 490 MB, free: 9.934 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.995e-05/0.2585, allocations: 53.14 kB / 490 MB, free: 9.863 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.368e-05/0.2585, allocations: 0 / 490 MB, free: 9.863 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.935e-05/0.2585, allocations: 34.62 kB / 490 MB, free: 9.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.2585, allocations: 3.938 kB / 490.1 MB, free: 9.816 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002077/0.2587, allocations: 77.61 kB / 490.1 MB, free: 9.734 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.63e-05/0.2588, allocations: 81.05 kB / 490.2 MB, free: 9.637 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.906e-05/0.2589, allocations: 125 kB / 490.3 MB, free: 9.508 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.2589, allocations: 29.7 kB / 490.4 MB, free: 9.473 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.346e-05/0.2589, allocations: 84.14 kB / 490.4 MB, free: 9.387 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.047e-05/0.259, allocations: 4 kB / 490.4 MB, free: 9.383 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.124e-06/0.259, allocations: 4.156 kB / 490.4 MB, free: 9.379 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.859e-05/0.2591, allocations: 322.8 kB / 490.8 MB, free: 9.055 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.715e-05/0.2591, allocations: 8 kB / 490.8 MB, free: 9.047 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.806e-05/0.2591, allocations: 21.7 kB / 490.8 MB, free: 9.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.799e-05/0.2592, allocations: 12.06 kB / 490.8 MB, free: 9.008 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.2592, allocations: 0 / 490.8 MB, free: 9.008 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001186/0.2593, allocations: 65.52 kB / 490.9 MB, free: 8.938 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.2593, allocations: 8 kB / 490.9 MB, free: 8.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.2594, allocations: 0 / 490.9 MB, free: 8.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.437e-06/0.2594, allocations: 0 / 490.9 MB, free: 8.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.59e-05/0.2594, allocations: 4 kB / 490.9 MB, free: 8.926 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.687e-06/0.2594, allocations: 8.062 kB / 490.9 MB, free: 8.918 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.59e-05/0.2595, allocations: 7.984 kB / 490.9 MB, free: 8.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.2595, allocations: 4 kB / 490.9 MB, free: 8.906 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 6.392e-05/0.2596, allocations: 117.7 kB / 491 MB, free: 8.781 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.187e-05/0.2596, allocations: 49.55 kB / 491.1 MB, free: 8.727 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.578e-05/0.2597, allocations: 7.859 kB / 491.1 MB, free: 8.711 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.2597, allocations: 4 kB / 491.1 MB, free: 8.707 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.2597, allocations: 0 / 491.1 MB, free: 8.707 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.2597, allocations: 4.031 kB / 491.1 MB, free: 8.703 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001444/0.2599, allocations: 169.6 kB / 491.2 MB, free: 8.488 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.2599, allocations: 4 kB / 491.2 MB, free: 8.484 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.383e-05/0.2599, allocations: 4 kB / 491.3 MB, free: 8.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.2599, allocations: 3.984 kB / 491.3 MB, free: 8.477 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.082e-06/0.2599, allocations: 0 / 491.3 MB, free: 8.477 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.2599, allocations: 4 kB / 491.3 MB, free: 8.473 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2599, allocations: 0 / 491.3 MB, free: 8.473 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001555/0.2601, allocations: 174 kB / 491.4 MB, free: 8.277 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.357e-05/0.2602, allocations: 101 kB / 491.5 MB, free: 8.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.234e-05/0.2602, allocations: 3.938 kB / 491.5 MB, free: 8.156 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.797e-05/0.2603, allocations: 7.984 kB / 491.5 MB, free: 8.148 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.223e-05/0.2603, allocations: 0 / 491.5 MB, free: 8.148 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.487e-06/0.2603, allocations: 4.031 kB / 491.5 MB, free: 8.145 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.668e-05/0.2604, allocations: 110 kB / 491.7 MB, free: 8.039 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2604, allocations: 0 / 491.7 MB, free: 8.039 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002071/0.2606, allocations: 11.94 kB / 491.7 MB, free: 8.027 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 8.322e-05/0.2607, allocations: 99.25 kB / 491.8 MB, free: 7.922 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001052/0.2608, allocations: 24.05 kB / 491.8 MB, free: 7.898 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2608, allocations: 0 / 491.8 MB, free: 7.898 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.997e-05/0.2608, allocations: 19.92 kB / 491.8 MB, free: 7.879 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002036/0.2611, allocations: 11.98 kB / 491.8 MB, free: 7.867 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002663/0.2613, allocations: 189.8 kB / 492 MB, free: 7.645 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002234/0.2616, allocations: 0.6926 MB / 492.7 MB, free: 6.926 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.521e-05/0.2616, allocations: 4 kB / 492.7 MB, free: 6.922 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.942e-05/0.2616, allocations: 7.438 kB / 492.7 MB, free: 6.914 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.2616, allocations: 0 / 492.7 MB, free: 6.914 MB / 362.7 MB Notification: Performance of Templates: time 0.001994/0.2636, allocations: 0.5129 MB / 493.2 MB, free: 6.422 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/jenkins/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