Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001299/0.001299, allocations: 200.7 kB / 18.11 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.474/1.474, allocations: 226.5 MB / 245.4 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008763/0.0008764, allocations: 101.4 kB / 297.5 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003581/0.0003585, allocations: 4 kB / 358.1 MB, free: 10.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.336/0.3364, allocations: 51.3 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1109/0.4473, allocations: 82.25 MB / 491.6 MB, free: 9.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002905/0.4477, allocations: 84.58 kB / 491.7 MB, free: 9.188 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01947/0.4672, allocations: 6.919 MB / 498.6 MB, free: 2.273 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.4672, allocations: 0 / 498.6 MB, free: 2.273 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.894e-05/0.4673, allocations: 8 kB / 498.6 MB, free: 2.266 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001084/0.4684, allocations: 0.5468 MB / 499.2 MB, free: 1.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.409e-05/0.4684, allocations: 16.02 kB / 499.2 MB, free: 1.645 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/0.4686, allocations: 24.66 kB / 499.2 MB, free: 1.621 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000585/0.4692, allocations: 299.6 kB / 499.5 MB, free: 1.289 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.296e-05/0.4692, allocations: 8.375 kB / 499.5 MB, free: 1.281 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.691e-05/0.4692, allocations: 8.359 kB / 499.5 MB, free: 1.273 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004222/0.4697, allocations: 160.1 kB / 499.7 MB, free: 1.09 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.4697, allocations: 192 / 499.7 MB, free: 1.09 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.508e-05/0.4697, allocations: 11.94 kB / 499.7 MB, free: 1.078 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.4697, allocations: 0 / 499.7 MB, free: 1.078 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001305/0.4699, allocations: 35.97 kB / 499.7 MB, free: 1.043 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007669/0.4707, allocations: 410.3 kB / 0.4884 GB, free: 0.5859 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002515/0.4709, allocations: 115.9 kB / 0.4885 GB, free: 456 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.642e-05/0.471, allocations: 50.55 kB / 0.4886 GB, free: 396 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.833e-05/0.4711, allocations: 0 / 0.4886 GB, free: 396 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001987/0.4713, allocations: 83.31 kB / 0.4887 GB, free: 300 kB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.984e-06/0.4713, allocations: 0 / 0.4887 GB, free: 300 kB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004203/0.4717, allocations: 157.5 kB / 0.4888 GB, free: 136 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001293/0.4719, allocations: 162.2 kB / 0.489 GB, free: 15.94 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004222/0.4723, allocations: 334.7 kB / 0.4893 GB, free: 15.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.356e-05/0.4723, allocations: 29.7 kB / 0.4893 GB, free: 15.56 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.827e-05/0.4724, allocations: 132 kB / 0.4894 GB, free: 15.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.41e-05/0.4725, allocations: 19.73 kB / 0.4895 GB, free: 15.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.103e-06/0.4725, allocations: 7.938 kB / 0.4895 GB, free: 15.4 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.4727, allocations: 334.8 kB / 0.4898 GB, free: 15.07 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.616e-05/0.4728, allocations: 31.92 kB / 0.4898 GB, free: 15.04 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001295/0.4729, allocations: 94.11 kB / 0.4899 GB, free: 14.92 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001812/0.4731, allocations: 92.22 kB / 0.49 GB, free: 14.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.4731, allocations: 0 / 0.49 GB, free: 14.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002654/0.4734, allocations: 121.7 kB / 0.4901 GB, free: 14.69 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.4734, allocations: 4 kB / 0.4901 GB, free: 14.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.4734, allocations: 3.984 kB / 0.4901 GB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.702e-05/0.4734, allocations: 4 kB / 0.4901 GB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.4736, allocations: 16.12 kB / 0.4901 GB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/0.4736, allocations: 8 kB / 0.4901 GB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.854e-05/0.4737, allocations: 15.89 kB / 0.4902 GB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/0.4737, allocations: 4 kB / 0.4902 GB, free: 14.64 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001756/0.4739, allocations: 157.7 kB / 0.4903 GB, free: 14.47 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.474, allocations: 61.5 kB / 0.4904 GB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002827/0.4743, allocations: 135.3 kB / 0.4905 GB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.4743, allocations: 8 kB / 0.4905 GB, free: 14.26 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.4743, allocations: 0 / 0.4905 GB, free: 14.26 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.4743, allocations: 0 / 0.4905 GB, free: 14.26 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002426/0.4746, allocations: 253.5 kB / 0.4907 GB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.073e-06/0.4746, allocations: 0 / 0.4907 GB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.285e-05/0.4746, allocations: 16 kB / 0.4908 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.4747, allocations: 0 / 0.4908 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.511e-05/0.4747, allocations: 7.984 kB / 0.4908 GB, free: 13.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.561e-06/0.4747, allocations: 0 / 0.4908 GB, free: 13.94 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.4747, allocations: 7.875 kB / 0.4908 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002847/0.475, allocations: 178.4 kB / 0.4909 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001216/0.4751, allocations: 124.7 kB / 0.4911 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.089e-05/0.4752, allocations: 0 / 0.4911 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.535e-05/0.4752, allocations: 8 kB / 0.4911 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.126e-05/0.4753, allocations: 12.02 kB / 0.4911 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.294e-05/0.4753, allocations: 11.98 kB / 0.4911 GB, free: 13.56 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002756/0.4756, allocations: 249.9 kB / 0.4913 GB, free: 13.32 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4756, allocations: 0 / 0.4913 GB, free: 13.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003354/0.476, allocations: 48 kB / 0.4914 GB, free: 13.27 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.001035/0.477, allocations: 436.6 kB / 0.4918 GB, free: 12.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00027/0.4773, allocations: 88.06 kB / 0.4919 GB, free: 12.89 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4773, allocations: 8 kB / 0.4919 GB, free: 12.88 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.423e-05/0.4774, allocations: 31.98 kB / 0.4919 GB, free: 12.85 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004402/0.4778, allocations: 66.94 kB / 0.492 GB, free: 12.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007112/0.4786, allocations: 416.4 kB / 0.4924 GB, free: 12.35 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003564/0.4789, allocations: 0.7478 MB / 0.4931 GB, free: 11.57 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001104/0.479, allocations: 25.55 kB / 0.4931 GB, free: 11.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.4e-05/0.4791, allocations: 23.42 kB / 0.4932 GB, free: 11.53 MB / 378.7 MB Notification: Performance of SimCode: time 3.1e-07/0.4791, allocations: 0 / 0.4932 GB, free: 11.53 MB / 378.7 MB Notification: Performance of Templates: time 0.006725/0.4858, allocations: 2.85 MB / 0.4959 GB, free: 8.699 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y Variables in the result: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.isCsvExt,table.combiTimeTable.nHeaderLines,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