Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00157/0.00157, allocations: 198.7 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.217/1.217, allocations: 227.2 MB / 245 MB, free: 5.875 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008763/0.0008762, allocations: 98.78 kB / 297.3 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002028/0.0002028, allocations: 8 kB / 357.9 MB, free: 9.312 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1777/0.1779, allocations: 51.48 MB / 409.4 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08304/0.261, allocations: 78.05 MB / 487.5 MB, free: 12.56 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002128/0.2613, allocations: 83.95 kB / 487.6 MB, free: 12.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004374/0.2656, allocations: 1.729 MB / 489.3 MB, free: 10.76 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2657, allocations: 2.062 kB / 489.3 MB, free: 10.76 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.115e-05/0.2657, allocations: 4 kB / 489.3 MB, free: 10.75 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003549/0.266, allocations: 382.9 kB / 489.7 MB, free: 10.33 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.079e-05/0.2661, allocations: 12.03 kB / 489.7 MB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001252/0.2662, allocations: 19.89 kB / 489.7 MB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001827/0.2664, allocations: 199.6 kB / 489.9 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.2664, allocations: 4 kB / 489.9 MB, free: 10.06 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.246e-05/0.2664, allocations: 7.953 kB / 489.9 MB, free: 10.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002684/0.2667, allocations: 150.6 kB / 490 MB, free: 9.883 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.072e-06/0.2667, allocations: 0 / 490 MB, free: 9.883 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.2668, allocations: 4 kB / 490.1 MB, free: 9.879 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.2668, allocations: 4 kB / 490.1 MB, free: 9.875 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.43e-05/0.2669, allocations: 27.92 kB / 490.1 MB, free: 9.848 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003634/0.2672, allocations: 295.5 kB / 490.4 MB, free: 9.5 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001315/0.2674, allocations: 98.41 kB / 490.5 MB, free: 9.367 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.883e-05/0.2674, allocations: 11.94 kB / 490.5 MB, free: 9.355 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.156e-05/0.2674, allocations: 30.56 kB / 490.5 MB, free: 9.316 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.142e-06/0.2674, allocations: 0 / 490.5 MB, free: 9.316 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002848/0.2677, allocations: 109.5 kB / 490.6 MB, free: 9.203 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.822e-05/0.2678, allocations: 136.5 kB / 490.7 MB, free: 9.039 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001184/0.2679, allocations: 136.2 kB / 490.9 MB, free: 8.898 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/0.2679, allocations: 29.7 kB / 490.9 MB, free: 8.863 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.941e-05/0.268, allocations: 88.33 kB / 491 MB, free: 8.77 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.582e-05/0.268, allocations: 11.89 kB / 491 MB, free: 8.758 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.518e-06/0.268, allocations: 4 kB / 491 MB, free: 8.754 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.2681, allocations: 310.8 kB / 491.3 MB, free: 8.441 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.743e-05/0.2682, allocations: 15.98 kB / 491.3 MB, free: 8.426 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.789e-05/0.2683, allocations: 61.08 kB / 491.4 MB, free: 8.348 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.814e-05/0.2683, allocations: 16 kB / 491.4 MB, free: 8.332 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2683, allocations: 0 / 491.4 MB, free: 8.332 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001502/0.2685, allocations: 97.41 kB / 491.5 MB, free: 8.23 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.2685, allocations: 4 kB / 491.5 MB, free: 8.227 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.2685, allocations: 4 kB / 491.5 MB, free: 8.223 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.107e-05/0.2685, allocations: 0 / 491.5 MB, free: 8.223 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.736e-05/0.2686, allocations: 15.98 kB / 491.5 MB, free: 8.207 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.2686, allocations: 4.125 kB / 491.5 MB, free: 8.203 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.397e-05/0.2687, allocations: 8 kB / 491.5 MB, free: 8.195 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.115e-06/0.2687, allocations: 4 kB / 491.5 MB, free: 8.191 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (6): * Single equations (assignments): 6 * 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 8.285e-05/0.2688, allocations: 129.8 kB / 491.7 MB, free: 8.055 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.76e-05/0.2689, allocations: 65.48 kB / 491.7 MB, free: 7.984 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.528e-05/0.2689, allocations: 15.88 kB / 491.7 MB, free: 7.961 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.2689, allocations: 0 / 491.7 MB, free: 7.961 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.2689, allocations: 4.094 kB / 491.8 MB, free: 7.957 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.2689, allocations: 7.984 kB / 491.8 MB, free: 7.949 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000168/0.2691, allocations: 169.7 kB / 491.9 MB, free: 7.734 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.2691, allocations: 0 / 491.9 MB, free: 7.734 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.306e-05/0.2692, allocations: 15.98 kB / 491.9 MB, free: 7.719 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.2692, allocations: 3.953 kB / 491.9 MB, free: 7.715 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.532e-06/0.2692, allocations: 4 kB / 491.9 MB, free: 7.711 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.2692, allocations: 3.938 kB / 492 MB, free: 7.707 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.2692, allocations: 11.88 kB / 492 MB, free: 7.695 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002034/0.2694, allocations: 232.3 kB / 492.2 MB, free: 7.426 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.649e-05/0.2695, allocations: 108.9 kB / 492.3 MB, free: 7.301 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.319e-05/0.2695, allocations: 0 / 492.3 MB, free: 7.301 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.213e-05/0.2696, allocations: 4 kB / 492.3 MB, free: 7.297 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.523e-05/0.2696, allocations: 4 kB / 492.3 MB, free: 7.293 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-06/0.2697, allocations: 0 / 492.3 MB, free: 7.293 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.881e-05/0.2697, allocations: 117.7 kB / 492.4 MB, free: 7.18 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2697, allocations: 0 / 492.4 MB, free: 7.18 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002188/0.27, allocations: 8 kB / 492.4 MB, free: 7.172 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (6): * Single equations (assignments): 6 * 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 9.152e-05/0.2701, allocations: 107.2 kB / 492.5 MB, free: 7.059 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001298/0.2702, allocations: 43.92 kB / 492.6 MB, free: 7.016 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.2702, allocations: 0 / 492.6 MB, free: 7.016 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.676e-05/0.2702, allocations: 11.98 kB / 492.6 MB, free: 7.004 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002558/0.2705, allocations: 50.66 kB / 492.6 MB, free: 6.957 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003155/0.2708, allocations: 234.8 kB / 492.9 MB, free: 6.691 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002151/0.2711, allocations: 0.7004 MB / 493.6 MB, free: 5.965 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.586e-05/0.2711, allocations: 12.66 kB / 493.6 MB, free: 5.953 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.31e-05/0.2711, allocations: 19.38 kB / 493.6 MB, free: 5.934 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.2711, allocations: 0 / 493.6 MB, free: 5.934 MB / 362.7 MB Notification: Performance of Templates: time 0.002443/0.2736, allocations: 0.7313 MB / 494.3 MB, free: 5.219 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/BackSample/BackSample.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y,backSample1.y Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.y,backSample1.y_start,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