Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.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.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008837/0.0008836, allocations: 87.38 kB / 16.64 MB, free: 6.535 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.001123/0.001123, allocations: 177 kB / 17.55 MB, free: 6.188 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.533/1.533, allocations: 223.3 MB / 241.6 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003832/0.0003833, allocations: 8 kB / 301.4 MB, free: 6.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1541/0.1545, allocations: 50.42 MB / 351.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.002739/0.1573, allocations: 1.648 MB / 353.5 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002038/0.1594, allocations: 1.157 MB / 354.6 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001466/0.1596, allocations: 3.938 kB / 354.6 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003873/0.16, allocations: 63.78 kB / 354.7 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002531/0.1602, allocations: 79.72 kB / 354.8 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008479/0.1611, allocations: 278.4 kB / 355.1 MB, free: 492 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002656/0.1614, allocations: 195.5 kB / 355.2 MB, free: 296 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.1615, allocations: 49.59 kB / 355.3 MB, free: 248 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001172/0.1617, allocations: 71.64 kB / 355.4 MB, free: 176 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001605/0.1618, allocations: 99.52 kB / 355.5 MB, free: 76 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.547e-05/0.1619, allocations: 4 kB / 355.5 MB, free: 72 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001456/0.162, allocations: 55.97 kB / 355.5 MB, free: 16 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000104/0.1621, allocations: 59.75 kB / 355.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001108/0.1622, allocations: 117 kB / 355.7 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003361/0.1626, allocations: 271.3 kB / 356 MB, free: 15.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1626, allocations: 0 / 356 MB, free: 15.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1626, allocations: 0 / 356 MB, free: 15.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.1626, allocations: 0 / 356 MB, free: 15.57 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008665/0.1635, allocations: 0.539 MB / 356.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.1635, allocations: 8.031 kB / 356.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.034e-05/0.1636, allocations: 32.56 kB / 356.5 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003879/0.164, allocations: 299.5 kB / 356.8 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.972e-05/0.1641, allocations: 12.38 kB / 356.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.066e-05/0.1641, allocations: 16.12 kB / 356.9 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006041/0.1647, allocations: 327.1 kB / 357.2 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.1647, allocations: 0 / 357.2 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.116e-05/0.1648, allocations: 8 kB / 357.2 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.1648, allocations: 0 / 357.2 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001744/0.165, allocations: 79.92 kB / 357.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006007/0.1656, allocations: 414.2 kB / 357.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000404/0.166, allocations: 192 kB / 357.9 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001639/0.1662, allocations: 94.53 kB / 357.9 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.606e-05/0.1662, allocations: 11.94 kB / 358 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001907/0.1664, allocations: 79.61 kB / 358 MB, free: 13.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.194e-06/0.1664, allocations: 0 / 358 MB, free: 13.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005692/0.167, allocations: 249.5 kB / 358.3 MB, free: 13.02 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000134/0.1671, allocations: 182.1 kB / 358.5 MB, free: 12.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003738/0.1675, allocations: 339 kB / 358.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.026e-05/0.1676, allocations: 37.64 kB / 358.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.662e-05/0.1677, allocations: 132.6 kB / 359 MB, free: 12.28 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.57e-05/0.1677, allocations: 31.64 kB / 359 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.165e-05/0.1678, allocations: 29.7 kB / 359 MB, free: 12.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.1679, allocations: 342.8 kB / 359.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.954e-05/0.168, allocations: 44.44 kB / 359.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001936/0.1682, allocations: 183.9 kB / 359.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002727/0.1685, allocations: 211.2 kB / 359.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.1685, allocations: 0 / 359.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000388/0.1689, allocations: 233.3 kB / 360 MB, free: 11.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.1689, allocations: 11.98 kB / 360 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.1689, allocations: 4 kB / 360 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.977e-05/0.169, allocations: 8 kB / 360 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001566/0.1691, allocations: 35.92 kB / 360.1 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.612e-05/0.1692, allocations: 11.88 kB / 360.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001255/0.1693, allocations: 19.84 kB / 360.1 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.086e-05/0.1693, allocations: 15.98 kB / 360.1 MB, free: 10.98 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000181/0.1695, allocations: 180.7 kB / 360.3 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002055/0.1697, allocations: 141.3 kB / 360.4 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.432e-05/0.1698, allocations: 33.73 kB / 360.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.289e-06/0.1698, allocations: 4 kB / 360.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.375e-06/0.1698, allocations: 4.25 kB / 360.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.1698, allocations: 0 / 360.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002285/0.1701, allocations: 269.4 kB / 360.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.1701, allocations: 0 / 360.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000125/0.1702, allocations: 27.92 kB / 360.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.1702, allocations: 8 kB / 360.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/0.1702, allocations: 4 kB / 360.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.1703, allocations: 4 kB / 360.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.1703, allocations: 3.938 kB / 360.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003772/0.1706, allocations: 241.2 kB / 361 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001245/0.1708, allocations: 144.6 kB / 361.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.944e-05/0.1708, allocations: 8.031 kB / 361.2 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.872e-05/0.1709, allocations: 11.94 kB / 361.2 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.684e-05/0.171, allocations: 11.92 kB / 361.2 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.498e-05/0.171, allocations: 11.98 kB / 361.2 MB, free: 9.793 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002392/0.1713, allocations: 249.9 kB / 361.4 MB, free: 9.547 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1713, allocations: 0 / 361.4 MB, free: 9.547 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003415/0.1716, allocations: 47.98 kB / 361.5 MB, free: 9.5 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: 20 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001066/0.1727, allocations: 433.8 kB / 361.9 MB, free: 9.223 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003719/0.1731, allocations: 155.6 kB / 362.1 MB, free: 9.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.1731, allocations: 5.062 kB / 362.1 MB, free: 9.066 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.027e-05/0.1732, allocations: 27.98 kB / 362.1 MB, free: 9.039 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005613/0.1738, allocations: 125 kB / 362.2 MB, free: 8.914 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008453/0.1746, allocations: 0.5129 MB / 362.7 MB, free: 8.371 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003356/0.175, allocations: 0.7638 MB / 363.5 MB, free: 7.582 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001062/0.1751, allocations: 30.28 kB / 363.5 MB, free: 7.551 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.433e-05/0.1752, allocations: 35.42 kB / 363.6 MB, free: 7.516 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1752, allocations: 0 / 363.6 MB, free: 7.516 MB / 302.1 MB Notification: Performance of Templates: time 0.007799/0.183, allocations: 3.301 MB / 366.9 MB, free: 4.242 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches