Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001114/0.001115, allocations: 113 kB / 17.68 MB, free: 5.355 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.00101/0.00101, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.545/1.545, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001469/0.001469, allocations: 46.55 kB / 302 MB, free: 5.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1527/0.1542, allocations: 49.45 MB / 351.5 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.003895/0.1582, allocations: 1.858 MB / 353.4 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002135/0.1603, allocations: 1.126 MB / 354.5 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002098/0.1606, allocations: 3.938 kB / 354.5 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004424/0.1611, allocations: 67.66 kB / 354.5 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003124/0.1614, allocations: 87.66 kB / 354.6 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008435/0.1623, allocations: 257 kB / 354.9 MB, free: 312 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003162/0.1626, allocations: 167.5 kB / 355 MB, free: 144 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001294/0.1627, allocations: 33.55 kB / 355.1 MB, free: 112 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001458/0.1629, allocations: 75.62 kB / 355.2 MB, free: 36 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001411/0.163, allocations: 75.81 kB / 355.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.456e-05/0.1631, allocations: 8 kB / 355.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001675/0.1632, allocations: 75.75 kB / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.85e-05/0.1633, allocations: 55.78 kB / 355.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.609e-05/0.1634, allocations: 71.48 kB / 355.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003672/0.1638, allocations: 243.2 kB / 355.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1638, allocations: 0 / 355.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1638, allocations: 0 / 355.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.1638, allocations: 0 / 355.7 MB, free: 15.52 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007713/0.1646, allocations: 0.5272 MB / 356.2 MB, free: 14.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.118e-05/0.1647, allocations: 11.89 kB / 356.2 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.097e-05/0.1648, allocations: 24.66 kB / 356.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004651/0.1653, allocations: 295.5 kB / 356.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.745e-05/0.1653, allocations: 4.375 kB / 356.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.88e-05/0.1653, allocations: 8.125 kB / 356.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004335/0.1657, allocations: 159.5 kB / 356.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-06/0.1658, allocations: 0 / 356.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.728e-05/0.1658, allocations: 4 kB / 356.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.1658, allocations: 4 kB / 356.7 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000117/0.1659, allocations: 27.98 kB / 356.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005833/0.1665, allocations: 398.3 kB / 357.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002806/0.1668, allocations: 115.9 kB / 357.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.603e-05/0.1669, allocations: 50.55 kB / 357.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.875e-05/0.1669, allocations: 4 kB / 357.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001746/0.1671, allocations: 79.31 kB / 357.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.853e-06/0.1671, allocations: 0 / 357.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004502/0.1676, allocations: 149.6 kB / 357.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002361/0.1678, allocations: 166.2 kB / 357.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003492/0.1682, allocations: 326.7 kB / 358 MB, free: 12.92 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.21e-05/0.1682, allocations: 25.7 kB / 358 MB, free: 12.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/0.1683, allocations: 132 kB / 358.1 MB, free: 12.76 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.622e-05/0.1684, allocations: 15.8 kB / 358.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.218e-05/0.1684, allocations: 29.72 kB / 358.2 MB, free: 12.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.1686, allocations: 338.8 kB / 358.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.464e-05/0.1687, allocations: 31.92 kB / 358.5 MB, free: 12.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001188/0.1688, allocations: 82.8 kB / 358.6 MB, free: 12.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001658/0.169, allocations: 92.45 kB / 358.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.169, allocations: 0 / 358.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000232/0.1692, allocations: 125.3 kB / 358.8 MB, free: 12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.1693, allocations: 6.5 kB / 358.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.1693, allocations: 4 kB / 358.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.1693, allocations: 0 / 358.9 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001197/0.1694, allocations: 24.11 kB / 358.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.675e-06/0.1694, allocations: 0 / 358.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.284e-05/0.1695, allocations: 15.88 kB / 358.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.312e-05/0.1695, allocations: 4 kB / 358.9 MB, free: 11.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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,subSample1.y,subSample1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001653/0.1697, allocations: 162.1 kB / 359.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.098e-05/0.1698, allocations: 69.36 kB / 359.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.764e-05/0.1699, allocations: 25.7 kB / 359.1 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.1699, allocations: 0 / 359.1 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.1699, allocations: 4.062 kB / 359.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.1699, allocations: 3.938 kB / 359.2 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002411/0.1702, allocations: 237.6 kB / 359.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.1702, allocations: 4 kB / 359.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.14e-05/0.1702, allocations: 8 kB / 359.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.1703, allocations: 0 / 359.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.832e-05/0.1703, allocations: 11.98 kB / 359.4 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1703, allocations: 0 / 359.4 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1703, allocations: 0 / 359.4 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002857/0.1706, allocations: 174.5 kB / 359.6 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001169/0.1707, allocations: 108.8 kB / 359.7 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.021e-05/0.1708, allocations: 4 kB / 359.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.365e-05/0.1708, allocations: 7.984 kB / 359.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.92e-05/0.1709, allocations: 8 kB / 359.7 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-05/0.1709, allocations: 11.92 kB / 359.7 MB, free: 11.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002424/0.1712, allocations: 249.9 kB / 360 MB, free: 10.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1712, allocations: 0 / 360 MB, free: 10.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002828/0.1715, allocations: 36 kB / 360 MB, free: 10.74 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,subSample1.y,sample1.y,subSample1.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 (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.00108/0.1726, allocations: 420.5 kB / 360.4 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002393/0.1728, allocations: 75.91 kB / 360.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1728, allocations: 256 / 360.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.727e-05/0.1729, allocations: 31.98 kB / 360.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004128/0.1734, allocations: 70.77 kB / 360.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006866/0.1741, allocations: 353.2 kB / 360.9 MB, free: 9.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004171/0.1745, allocations: 0.7477 MB / 361.7 MB, free: 9.156 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.921e-05/0.1746, allocations: 33.45 kB / 361.7 MB, free: 9.121 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.133e-05/0.1746, allocations: 19.44 kB / 361.7 MB, free: 9.102 MB / 302.1 MB Notification: Performance of SimCode: time 4e-07/0.1746, allocations: 0 / 361.7 MB, free: 9.102 MB / 302.1 MB Notification: Performance of Templates: time 0.00674/0.1814, allocations: 2.799 MB / 364.5 MB, free: 6.324 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches