Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.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.IntegerSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009955/0.0009956, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.281/1.281, allocations: 221.5 MB / 230.3 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008608/0.0008608, allocations: 98.78 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.277e-05/1.279e-05, allocations: 4 kB / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1131, allocations: 50.42 MB / 387.5 MB, free: 7.562 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3214/0.4346, allocations: 80.51 MB / 468 MB, free: 14.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002139/0.4348, allocations: 83.89 kB / 468.1 MB, free: 14.26 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01675/0.4516, allocations: 6.191 MB / 474.2 MB, free: 8.078 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.4517, allocations: 0 / 474.2 MB, free: 8.078 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.861e-05/0.4517, allocations: 4 kB / 474.2 MB, free: 8.074 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007229/0.4524, allocations: 0.4962 MB / 474.7 MB, free: 7.527 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/0.4525, allocations: 8.031 kB / 474.8 MB, free: 7.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.497e-05/0.4526, allocations: 23.72 kB / 474.8 MB, free: 7.496 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005058/0.4531, allocations: 290.4 kB / 475.1 MB, free: 7.168 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.572e-05/0.4531, allocations: 8 kB / 475.1 MB, free: 7.16 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.592e-05/0.4532, allocations: 8 kB / 475.1 MB, free: 7.152 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001313/0.4533, allocations: 43.92 kB / 475.1 MB, free: 7.109 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003346/0.4536, allocations: 161.1 kB / 475.3 MB, free: 6.922 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.4537, allocations: 4 kB / 475.3 MB, free: 6.918 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.771e-05/0.4537, allocations: 3.953 kB / 475.3 MB, free: 6.914 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.4537, allocations: 4 kB / 475.3 MB, free: 6.91 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006064/0.4543, allocations: 383.8 kB / 475.7 MB, free: 6.488 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001809/0.4545, allocations: 134.5 kB / 475.8 MB, free: 6.32 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.169e-05/0.4546, allocations: 51.56 kB / 475.8 MB, free: 6.258 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.576e-05/0.4546, allocations: 11.98 kB / 475.9 MB, free: 6.246 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001542/0.4548, allocations: 87.27 kB / 475.9 MB, free: 6.148 MB / 346.7 MB Notification: Performance of pre-optimization done (n=11): time 1.803e-06/0.4548, allocations: 0 / 475.9 MB, free: 6.148 MB / 346.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002718/0.4551, allocations: 125.3 kB / 476.1 MB, free: 6.02 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.656e-05/0.4552, allocations: 192 kB / 476.2 MB, free: 5.789 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002991/0.4555, allocations: 294.2 kB / 476.5 MB, free: 5.496 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.343e-05/0.4555, allocations: 25.7 kB / 476.6 MB, free: 5.465 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.569e-05/0.4556, allocations: 128.3 kB / 476.7 MB, free: 5.332 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.203e-05/0.4557, allocations: 23.73 kB / 476.7 MB, free: 5.309 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.902e-06/0.4557, allocations: 0 / 476.7 MB, free: 5.309 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.4558, allocations: 330.8 kB / 477 MB, free: 4.977 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.384e-05/0.4559, allocations: 27.98 kB / 477.1 MB, free: 4.949 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.884e-05/0.456, allocations: 100.5 kB / 477.2 MB, free: 4.82 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.991e-05/0.456, allocations: 31.98 kB / 477.2 MB, free: 4.789 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.456, allocations: 0 / 477.2 MB, free: 4.789 MB / 346.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001784/0.4562, allocations: 121.4 kB / 477.3 MB, free: 4.664 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.836e-05/0.4562, allocations: 8 kB / 477.3 MB, free: 4.656 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.4563, allocations: 0 / 477.3 MB, free: 4.656 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.02e-05/0.4563, allocations: 15.88 kB / 477.3 MB, free: 4.641 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/0.4564, allocations: 20.12 kB / 477.4 MB, free: 4.621 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.4564, allocations: 11.98 kB / 477.4 MB, free: 4.609 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.135e-05/0.4565, allocations: 7.906 kB / 477.4 MB, free: 4.602 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.177e-05/0.4565, allocations: 4 kB / 477.4 MB, free: 4.598 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 9.55e-05/0.4566, allocations: 109 kB / 477.5 MB, free: 4.484 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.654e-05/0.4567, allocations: 77.34 kB / 477.6 MB, free: 4.402 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002076/0.457, allocations: 115.5 kB / 477.7 MB, free: 4.285 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-06/0.457, allocations: 11.95 kB / 477.7 MB, free: 4.273 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.457, allocations: 0 / 477.7 MB, free: 4.273 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.473e-06/0.457, allocations: 3.984 kB / 477.7 MB, free: 4.27 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002037/0.4572, allocations: 234.2 kB / 477.9 MB, free: 4.004 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.4572, allocations: 4 kB / 477.9 MB, free: 4 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.929e-05/0.4573, allocations: 15.98 kB / 477.9 MB, free: 3.984 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.4573, allocations: 4 kB / 477.9 MB, free: 3.98 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.225e-05/0.4573, allocations: 0 / 477.9 MB, free: 3.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.4573, allocations: 4 kB / 477.9 MB, free: 3.977 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.4573, allocations: 0 / 477.9 MB, free: 3.977 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000236/0.4576, allocations: 212.4 kB / 478.1 MB, free: 3.723 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001218/0.4577, allocations: 128.7 kB / 478.3 MB, free: 3.578 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.034e-05/0.4578, allocations: 19.92 kB / 478.3 MB, free: 3.559 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.117e-05/0.4578, allocations: 4 kB / 478.3 MB, free: 3.555 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.478e-05/0.4579, allocations: 7.984 kB / 478.3 MB, free: 3.547 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.178e-05/0.4579, allocations: 4 kB / 478.3 MB, free: 3.543 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002294/0.4582, allocations: 230 kB / 478.5 MB, free: 3.316 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4582, allocations: 0 / 478.5 MB, free: 3.316 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003323/0.4585, allocations: 51.89 kB / 478.6 MB, free: 3.266 MB / 346.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: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0009189/0.4594, allocations: 376.9 kB / 479 MB, free: 2.973 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002316/0.4597, allocations: 83.91 kB / 479 MB, free: 2.891 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.4597, allocations: 0 / 479 MB, free: 2.891 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.867e-05/0.4598, allocations: 35.92 kB / 479.1 MB, free: 2.855 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003722/0.4601, allocations: 62.86 kB / 479.1 MB, free: 2.793 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005356/0.4607, allocations: 297.7 kB / 479.4 MB, free: 2.473 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004025/0.4611, allocations: 0.7477 MB / 480.2 MB, free: 1.699 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001028/0.4612, allocations: 33.8 kB / 480.2 MB, free: 1.664 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.518e-05/0.4613, allocations: 27.42 kB / 480.2 MB, free: 1.637 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4613, allocations: 0 / 480.2 MB, free: 1.637 MB / 346.7 MB Notification: Performance of Templates: time 0.00594/0.4672, allocations: 2.779 MB / 483 MB, free: 14.88 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.table[4,1],table.combiTimeTable.table[4,2],table.combiTimeTable.table[5,1],table.combiTimeTable.table[5,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.extrapolation,table.n,table.shiftTime,table.startTime,table.table[1,1],table.table[1,2],table.table[2,1],table.table[2,2],table.table[3,1],table.table[3,2],table.table[4,1],table.table[4,2],table.table[5,1],table.table[5,2],time