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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009567/0.0009568, allocations: 95.08 kB / 16.3 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009603/0.0009604, allocations: 182.5 kB / 17.2 MB, free: 5.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 223.2 MB / 241.1 MB, free: 14.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003285/0.0003285, allocations: 4 kB / 300.7 MB, free: 6.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1447/0.145, allocations: 50.42 MB / 351.1 MB, free: 3.797 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.0025/0.1476, allocations: 1.539 MB / 352.7 MB, free: 2.242 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001768/0.1494, allocations: 1.018 MB / 353.7 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.1495, allocations: 4 kB / 353.7 MB, free: 1.215 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003137/0.1499, allocations: 63.73 kB / 353.8 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002414/0.1501, allocations: 71.83 kB / 353.8 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006862/0.1508, allocations: 221.8 kB / 354.1 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001975/0.151, allocations: 95.81 kB / 354.2 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.1511, allocations: 33.53 kB / 354.2 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.64e-05/0.1512, allocations: 59.7 kB / 354.2 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001163/0.1514, allocations: 59.75 kB / 354.3 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.365e-05/0.1514, allocations: 4 kB / 354.3 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001657/0.1516, allocations: 39.92 kB / 354.3 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.263e-05/0.1517, allocations: 47.81 kB / 354.4 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.66e-05/0.1518, allocations: 53.58 kB / 354.4 MB, free: 492 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002635/0.152, allocations: 175.7 kB / 354.6 MB, free: 316 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1521, allocations: 0 / 354.6 MB, free: 316 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1521, allocations: 4 kB / 354.6 MB, free: 312 kB / 286.1 MB Notification: Performance of Transformations before backend: time 8.846e-06/0.1521, allocations: 0 / 354.6 MB, free: 312 kB / 286.1 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.0008186/0.1529, allocations: 0.5115 MB / 355.1 MB, free: 15.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.481e-05/0.153, allocations: 8.031 kB / 355.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.272e-05/0.1531, allocations: 27.72 kB / 355.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000375/0.1534, allocations: 262.6 kB / 355.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.27e-05/0.1535, allocations: 8 kB / 355.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.955e-05/0.1535, allocations: 4 kB / 355.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003481/0.1539, allocations: 159.5 kB / 355.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.1539, allocations: 0 / 355.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.49e-05/0.1539, allocations: 0 / 355.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.1539, allocations: 7.953 kB / 355.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001101/0.154, allocations: 35.98 kB / 355.6 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005294/0.1546, allocations: 378.4 kB / 356 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002356/0.1548, allocations: 123.9 kB / 356.1 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.014e-05/0.1549, allocations: 8.047 kB / 356.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002272/0.1551, allocations: 79.39 kB / 356.2 MB, free: 14.5 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.653e-06/0.1551, allocations: 0 / 356.2 MB, free: 14.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.000413/0.1555, allocations: 157.3 kB / 356.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.201e-05/0.1556, allocations: 154.2 kB / 356.5 MB, free: 14.15 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003333/0.156, allocations: 330.7 kB / 356.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.156, allocations: 25.7 kB / 356.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.517e-05/0.1561, allocations: 132 kB / 357 MB, free: 13.65 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.653e-05/0.1561, allocations: 15.83 kB / 357 MB, free: 13.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.723e-06/0.1561, allocations: 8.188 kB / 357 MB, free: 13.63 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.1563, allocations: 334.8 kB / 357.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.631e-05/0.1564, allocations: 23.98 kB / 357.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.698e-05/0.1565, allocations: 78.84 kB / 357.4 MB, free: 13.17 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.688e-05/0.1566, allocations: 32 kB / 357.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1566, allocations: 0 / 357.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002092/0.1568, allocations: 133.2 kB / 357.6 MB, free: 13 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.1568, allocations: 7.953 kB / 357.6 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.1568, allocations: 0 / 357.6 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.1569, allocations: 4 kB / 357.6 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.157, allocations: 16.11 kB / 357.6 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.157, allocations: 11.94 kB / 357.6 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.198e-05/0.1571, allocations: 4.312 kB / 357.6 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.062e-05/0.1571, allocations: 4 kB / 357.6 MB, free: 12.95 MB / 302.1 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,table.y,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.0001349/0.1572, allocations: 158.6 kB / 357.8 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.966e-05/0.1573, allocations: 69.34 kB / 357.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.495e-05/0.1574, allocations: 29.66 kB / 357.9 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.1574, allocations: 4 kB / 357.9 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.1574, allocations: 4.062 kB / 357.9 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.958e-06/0.1574, allocations: 0 / 357.9 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002171/0.1576, allocations: 237.5 kB / 358.1 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1576, allocations: 0 / 358.1 MB, free: 12.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.375e-05/0.1577, allocations: 15.98 kB / 358.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.1577, allocations: 0 / 358.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.1577, allocations: 7.938 kB / 358.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.1577, allocations: 3.953 kB / 358.2 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.1578, allocations: 0 / 358.2 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002565/0.158, allocations: 189.9 kB / 358.4 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.1581, allocations: 120.8 kB / 358.5 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.047e-05/0.1582, allocations: 0 / 358.5 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.525e-05/0.1582, allocations: 7.984 kB / 358.5 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.227e-05/0.1583, allocations: 15.92 kB / 358.5 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.741e-05/0.1583, allocations: 8 kB / 358.5 MB, free: 11.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002139/0.1585, allocations: 241.9 kB / 358.7 MB, free: 11.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1585, allocations: 0 / 358.7 MB, free: 11.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002636/0.1588, allocations: 31.98 kB / 358.8 MB, free: 11.71 MB / 302.1 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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.0009417/0.1598, allocations: 423 kB / 359.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002178/0.16, allocations: 80.08 kB / 359.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.16, allocations: 0 / 359.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.01e-05/0.1601, allocations: 27.92 kB / 359.3 MB, free: 11.35 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003291/0.1604, allocations: 59.81 kB / 359.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005973/0.161, allocations: 392.5 kB / 359.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002883/0.1613, allocations: 0.7439 MB / 360.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.204e-05/0.1614, allocations: 33.45 kB / 360.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.653e-05/0.1615, allocations: 23.42 kB / 360.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1615, allocations: 0 / 360.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of Templates: time 0.005764/0.1673, allocations: 2.632 MB / 363.2 MB, free: 7.441 MB / 302.1 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