Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001267/0.001267, allocations: 180.6 kB / 16.39 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.407/1.407, allocations: 223.2 MB / 240.3 MB, free: 11.89 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.0009211/0.0009211, allocations: 100.2 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002723/0.0002723, allocations: 7.938 kB / 351.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2844/0.2847, allocations: 50.4 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1155/0.4002, allocations: 81.08 MB / 482.6 MB, free: 15.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000287/0.4006, allocations: 83.95 kB / 482.6 MB, free: 15.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01747/0.418, allocations: 6.12 MB / 488.8 MB, free: 9.227 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4181, allocations: 4 kB / 488.8 MB, free: 9.223 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.969e-05/0.4181, allocations: 3.984 kB / 488.8 MB, free: 9.219 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.0007978/0.4189, allocations: 0.531 MB / 489.3 MB, free: 8.633 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.419, allocations: 8.031 kB / 489.3 MB, free: 8.625 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.144e-05/0.419, allocations: 19.81 kB / 489.3 MB, free: 8.605 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004349/0.4195, allocations: 294.4 kB / 489.6 MB, free: 8.277 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.913e-05/0.4195, allocations: 7.984 kB / 489.6 MB, free: 8.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.732e-05/0.4195, allocations: 8 kB / 489.6 MB, free: 8.262 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004108/0.4199, allocations: 159.5 kB / 489.8 MB, free: 8.078 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.42, allocations: 4 kB / 489.8 MB, free: 8.074 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.707e-05/0.42, allocations: 3.953 kB / 489.8 MB, free: 8.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.42, allocations: 0 / 489.8 MB, free: 8.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001226/0.4201, allocations: 35.98 kB / 489.8 MB, free: 8.035 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006617/0.4208, allocations: 410.2 kB / 490.2 MB, free: 7.578 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002726/0.4211, allocations: 115.9 kB / 490.3 MB, free: 7.438 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.331e-05/0.4211, allocations: 7.938 kB / 490.4 MB, free: 7.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001864/0.4213, allocations: 91.44 kB / 490.4 MB, free: 7.328 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.513e-06/0.4213, allocations: 0 / 490.4 MB, free: 7.328 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003847/0.4217, allocations: 157.3 kB / 490.6 MB, free: 7.168 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.4218, allocations: 158.2 kB / 490.8 MB, free: 6.977 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003492/0.4222, allocations: 297.8 kB / 491 MB, free: 6.676 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.233e-05/0.4222, allocations: 29.95 kB / 491.1 MB, free: 6.641 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001529/0.4224, allocations: 128 kB / 491.2 MB, free: 6.512 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.601e-05/0.4224, allocations: 15.89 kB / 491.2 MB, free: 6.496 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.13e-06/0.4225, allocations: 0 / 491.2 MB, free: 6.496 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.4226, allocations: 334.8 kB / 491.5 MB, free: 6.16 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.827e-05/0.4227, allocations: 23.98 kB / 491.6 MB, free: 6.137 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001277/0.4228, allocations: 94.78 kB / 491.7 MB, free: 6.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.154e-05/0.4229, allocations: 31.98 kB / 491.7 MB, free: 5.988 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4229, allocations: 0 / 491.7 MB, free: 5.988 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002462/0.4232, allocations: 129.2 kB / 491.8 MB, free: 5.855 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.4232, allocations: 12.08 kB / 491.8 MB, free: 5.844 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.4232, allocations: 4 kB / 491.8 MB, free: 5.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/0.4232, allocations: 3.938 kB / 491.8 MB, free: 5.836 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.4233, allocations: 23.94 kB / 491.9 MB, free: 5.812 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.4234, allocations: 3.984 kB / 491.9 MB, free: 5.809 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.159e-05/0.4235, allocations: 15.88 kB / 491.9 MB, free: 5.793 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.117e-05/0.4235, allocations: 4 kB / 491.9 MB, free: 5.789 MB / 362.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.0001503/0.4236, allocations: 150.1 kB / 492 MB, free: 5.633 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.499e-05/0.4237, allocations: 73.34 kB / 492.1 MB, free: 5.555 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000282/0.424, allocations: 127.4 kB / 492.2 MB, free: 5.422 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.424, allocations: 4 kB / 492.2 MB, free: 5.418 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.424, allocations: 0 / 492.2 MB, free: 5.418 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.287e-06/0.424, allocations: 0 / 492.2 MB, free: 5.418 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002365/0.4243, allocations: 249.5 kB / 492.5 MB, free: 5.125 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.4243, allocations: 0 / 492.5 MB, free: 5.125 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.041e-05/0.4244, allocations: 15.94 kB / 492.5 MB, free: 5.109 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.4244, allocations: 0 / 492.5 MB, free: 5.109 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.439e-05/0.4244, allocations: 12.06 kB / 492.5 MB, free: 5.098 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.419e-06/0.4244, allocations: 7.938 kB / 492.5 MB, free: 5.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.4244, allocations: 0 / 492.5 MB, free: 5.09 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002821/0.4247, allocations: 189.9 kB / 492.7 MB, free: 4.867 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001336/0.4249, allocations: 128.8 kB / 492.8 MB, free: 4.723 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.978e-05/0.4249, allocations: 0 / 492.8 MB, free: 4.723 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.884e-05/0.425, allocations: 8 kB / 492.8 MB, free: 4.715 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.515e-05/0.425, allocations: 7.984 kB / 492.8 MB, free: 4.707 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.507e-06/0.425, allocations: 4 kB / 492.8 MB, free: 4.703 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002576/0.4253, allocations: 245.9 kB / 493.1 MB, free: 4.461 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4253, allocations: 3.938 kB / 493.1 MB, free: 4.457 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002971/0.4256, allocations: 47.92 kB / 493.1 MB, free: 4.41 MB / 362.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.001057/0.4267, allocations: 446 kB / 493.6 MB, free: 4.133 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000319/0.427, allocations: 95.81 kB / 493.7 MB, free: 4.039 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.427, allocations: 0 / 493.7 MB, free: 4.039 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.135e-05/0.4271, allocations: 35.92 kB / 493.7 MB, free: 4.004 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004131/0.4275, allocations: 56.41 kB / 493.7 MB, free: 3.949 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007483/0.4283, allocations: 412.7 kB / 494.2 MB, free: 3.512 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000328/0.4287, allocations: 0.74 MB / 494.9 MB, free: 2.746 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001016/0.4288, allocations: 37.67 kB / 494.9 MB, free: 2.711 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.11e-05/0.4288, allocations: 31.36 kB / 495 MB, free: 2.684 MB / 362.7 MB Notification: Performance of SimCode: time 3.51e-07/0.4288, allocations: 0 / 495 MB, free: 2.684 MB / 362.7 MB Notification: Performance of Templates: time 0.006368/0.4352, allocations: 2.769 MB / 497.7 MB, free: 15.95 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","../files/Modelica_4.0.0_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.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