Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.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.Clocked.Examples.Elementary.RealSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001221/0.001221, allocations: 180.4 kB / 16.38 MB, free: 5.762 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.343/1.343, allocations: 223.2 MB / 240.3 MB, free: 10.14 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.0008581/0.0008581, allocations: 94.09 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003207/0.0003207, allocations: 19.92 kB / 351.1 MB, free: 15.1 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2751/0.2754, allocations: 50.4 MB / 401.5 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1005/0.376, allocations: 77.25 MB / 478.7 MB, free: 3.227 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002455/0.3763, allocations: 75.95 kB / 478.8 MB, free: 3.152 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004365/0.3806, allocations: 1.636 MB / 480.5 MB, free: 1.527 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3807, allocations: 0 / 480.5 MB, free: 1.527 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.868e-06/0.3807, allocations: 0 / 480.5 MB, free: 1.527 MB / 346.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.000413/0.3811, allocations: 382.9 kB / 480.8 MB, free: 1.105 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.3811, allocations: 8.031 kB / 480.8 MB, free: 1.098 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.494e-05/0.3812, allocations: 15.86 kB / 480.9 MB, free: 1.082 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002186/0.3814, allocations: 199.8 kB / 481 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.3814, allocations: 4 kB / 481 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.155e-05/0.3815, allocations: 4 kB / 481.1 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002895/0.3818, allocations: 138.7 kB / 481.2 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.3818, allocations: 3.938 kB / 481.2 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.3818, allocations: 8 kB / 481.2 MB, free: 0.668 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.3818, allocations: 3.953 kB / 481.2 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.364e-05/0.3819, allocations: 27.98 kB / 481.2 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003772/0.3823, allocations: 299.4 kB / 481.5 MB, free: 292 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001173/0.3824, allocations: 94.42 kB / 481.6 MB, free: 160 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.089e-05/0.3825, allocations: 4.062 kB / 481.6 MB, free: 156 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.148e-05/0.3825, allocations: 34.5 kB / 481.7 MB, free: 112 kB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.092e-06/0.3825, allocations: 4 kB / 481.7 MB, free: 108 kB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.000292/0.3828, allocations: 113.5 kB / 481.8 MB, free: 15.99 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.328e-05/0.3829, allocations: 133 kB / 481.9 MB, free: 15.83 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.383, allocations: 142.7 kB / 482 MB, free: 15.68 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.239e-05/0.383, allocations: 25.7 kB / 482.1 MB, free: 15.65 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.357e-05/0.3831, allocations: 92.31 kB / 482.2 MB, free: 15.55 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.382e-05/0.3831, allocations: 7.906 kB / 482.2 MB, free: 15.54 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.266e-06/0.3831, allocations: 0 / 482.2 MB, free: 15.54 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.404e-05/0.3832, allocations: 318.8 kB / 482.5 MB, free: 15.22 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.342e-05/0.3832, allocations: 16 kB / 482.5 MB, free: 15.21 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.513e-05/0.3833, allocations: 49.14 kB / 482.5 MB, free: 15.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.287e-05/0.3834, allocations: 27.86 kB / 482.6 MB, free: 15.11 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.3834, allocations: 0 / 482.6 MB, free: 15.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001376/0.3835, allocations: 85.56 kB / 482.6 MB, free: 15.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.3835, allocations: 7.984 kB / 482.7 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.3836, allocations: 4 kB / 482.7 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.3836, allocations: 0 / 482.7 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.345e-05/0.3837, allocations: 15.95 kB / 482.7 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.3837, allocations: 8.188 kB / 482.7 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.868e-05/0.3837, allocations: 15.83 kB / 482.7 MB, free: 14.97 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.253e-06/0.3837, allocations: 0 / 482.7 MB, free: 14.97 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 7.872e-05/0.3838, allocations: 125.8 kB / 482.8 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.47e-05/0.3839, allocations: 61.66 kB / 482.9 MB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.801e-05/0.384, allocations: 15.86 kB / 482.9 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.384, allocations: 4 kB / 482.9 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.384, allocations: 12.05 kB / 482.9 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.384, allocations: 0 / 482.9 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000167/0.3842, allocations: 173.7 kB / 483.1 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.3842, allocations: 3.984 kB / 483.1 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.502e-05/0.3843, allocations: 12 kB / 483.1 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.3843, allocations: 4 kB / 483.1 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.624e-06/0.3843, allocations: 0 / 483.1 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3843, allocations: 0 / 483.1 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.3843, allocations: 11.92 kB / 483.1 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002055/0.3845, allocations: 240.3 kB / 483.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.083e-05/0.3846, allocations: 101 kB / 483.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.53e-05/0.3846, allocations: 0 / 483.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.885e-05/0.3847, allocations: 4 kB / 483.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.524e-05/0.3847, allocations: 7.984 kB / 483.5 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.492e-06/0.3847, allocations: 3.984 kB / 483.5 MB, free: 14.08 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.638e-05/0.3848, allocations: 111.3 kB / 483.6 MB, free: 13.97 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3848, allocations: 0 / 483.6 MB, free: 13.97 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002167/0.385, allocations: 8 kB / 483.6 MB, free: 13.96 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.618e-05/0.3851, allocations: 103.2 kB / 483.7 MB, free: 13.85 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001479/0.3853, allocations: 47.86 kB / 483.7 MB, free: 13.8 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3853, allocations: 0 / 483.7 MB, free: 13.8 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.014e-05/0.3854, allocations: 11.98 kB / 483.7 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002835/0.3856, allocations: 51.48 kB / 483.8 MB, free: 13.75 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003606/0.386, allocations: 235.5 kB / 484 MB, free: 13.48 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000237/0.3863, allocations: 0.7004 MB / 484.7 MB, free: 12.75 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.352e-05/0.3863, allocations: 4.672 kB / 484.7 MB, free: 12.75 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.008e-05/0.3863, allocations: 19.42 kB / 484.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of SimCode: time 3.31e-07/0.3863, allocations: 0 / 484.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of Templates: time 0.002643/0.389, allocations: 0.7359 MB / 485.5 MB, free: 12 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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