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.001908/0.001908, allocations: 106.3 kB / 17.16 MB, free: 6.324 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.002326/0.002326, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.056/2.056, allocations: 222.9 MB / 241.8 MB, free: 15.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 48.92 kB / 300.6 MB, free: 6.324 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1571/0.1583, allocations: 49.44 MB / 350.1 MB, free: 4.867 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.006171/0.1645, allocations: 2.011 MB / 352.1 MB, free: 2.836 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003757/0.1684, allocations: 1.173 MB / 353.2 MB, free: 1.656 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002604/0.1687, allocations: 4 kB / 353.2 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005537/0.1693, allocations: 67.72 kB / 353.3 MB, free: 1.586 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004171/0.1698, allocations: 83.72 kB / 353.4 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001652/0.1714, allocations: 268.6 kB / 353.7 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004657/0.1719, allocations: 195.4 kB / 353.8 MB, free: 1.055 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002279/0.1722, allocations: 53.64 kB / 353.9 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001908/0.1724, allocations: 79.64 kB / 354 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002737/0.1727, allocations: 111.5 kB / 354.1 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.401e-05/0.1727, allocations: 4 kB / 354.1 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000241/0.173, allocations: 59.97 kB / 354.1 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001478/0.1732, allocations: 67.73 kB / 354.2 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001767/0.1733, allocations: 83.36 kB / 354.3 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004621/0.1738, allocations: 223.8 kB / 354.5 MB, free: 396 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.1739, allocations: 0 / 354.5 MB, free: 396 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1739, allocations: 0 / 354.5 MB, free: 396 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.1739, allocations: 0 / 354.5 MB, free: 396 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001464/0.1754, allocations: 0.5779 MB / 355.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.432e-05/0.1754, allocations: 8.031 kB / 355.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/0.1756, allocations: 28.59 kB / 355.1 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006474/0.1763, allocations: 311.4 kB / 355.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.251e-05/0.1763, allocations: 8.375 kB / 355.4 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.98e-05/0.1764, allocations: 20.12 kB / 355.5 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001074/0.1775, allocations: 315.3 kB / 355.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.1775, allocations: 0 / 355.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.544e-05/0.1776, allocations: 8 kB / 355.8 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.81e-05/0.1776, allocations: 4 kB / 355.8 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003363/0.1779, allocations: 71.89 kB / 355.8 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009699/0.1789, allocations: 418.2 kB / 356.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006332/0.1796, allocations: 200 kB / 356.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002951/0.1799, allocations: 86.78 kB / 356.5 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.339e-05/0.18, allocations: 11.97 kB / 356.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003112/0.1803, allocations: 83.27 kB / 356.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 3.256e-06/0.1803, allocations: 0 / 356.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001085/0.1814, allocations: 257.1 kB / 356.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001754/0.1816, allocations: 162.2 kB / 357 MB, free: 13.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006496/0.1823, allocations: 346.9 kB / 357.4 MB, free: 13.24 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.17e-05/0.1823, allocations: 37.7 kB / 357.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001711/0.1825, allocations: 128.6 kB / 357.5 MB, free: 13.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.652e-05/0.1826, allocations: 39.67 kB / 357.6 MB, free: 13.03 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001319/0.1828, allocations: 49.94 kB / 357.6 MB, free: 12.97 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001991/0.183, allocations: 342.8 kB / 358 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001823/0.1832, allocations: 40.44 kB / 358 MB, free: 12.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003572/0.1835, allocations: 186.9 kB / 358.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005164/0.1841, allocations: 219.5 kB / 358.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/0.1841, allocations: 0 / 358.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007606/0.1849, allocations: 237.3 kB / 358.6 MB, free: 11.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.146e-05/0.1849, allocations: 15.06 kB / 358.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.185, allocations: 4 kB / 358.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.604e-05/0.185, allocations: 4 kB / 358.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002963/0.1853, allocations: 39.91 kB / 358.7 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.463e-05/0.1854, allocations: 15.88 kB / 358.7 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002485/0.1856, allocations: 19.84 kB / 358.7 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.459e-05/0.1857, allocations: 12 kB / 358.7 MB, free: 11.73 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.0003313/0.186, allocations: 180.5 kB / 358.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003938/0.1864, allocations: 133.6 kB / 359 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001132/0.1866, allocations: 33.81 kB / 359.1 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.198e-05/0.1866, allocations: 4.469 kB / 359.1 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/0.1866, allocations: 3.938 kB / 359.1 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.121e-05/0.1866, allocations: 3.984 kB / 359.1 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004117/0.1871, allocations: 265.4 kB / 359.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.1871, allocations: 0 / 359.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002451/0.1873, allocations: 39.84 kB / 359.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.1874, allocations: 0 / 359.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.991e-05/0.1874, allocations: 12 kB / 359.4 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.544e-06/0.1874, allocations: 3.984 kB / 359.4 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.1874, allocations: 3.938 kB / 359.4 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007236/0.1882, allocations: 241.2 kB / 359.6 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002069/0.1884, allocations: 128.6 kB / 359.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.049e-05/0.1885, allocations: 12.06 kB / 359.8 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001859/0.1887, allocations: 7.984 kB / 359.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.186e-05/0.1888, allocations: 19.86 kB / 359.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.9e-05/0.1889, allocations: 11.94 kB / 359.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004569/0.1893, allocations: 249.9 kB / 360.1 MB, free: 10.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.1894, allocations: 0 / 360.1 MB, free: 10.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006382/0.19, allocations: 44 kB / 360.1 MB, free: 10.25 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.001934/0.192, allocations: 437.9 kB / 360.5 MB, free: 9.973 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006336/0.1926, allocations: 155.7 kB / 360.7 MB, free: 9.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.1927, allocations: 0 / 360.7 MB, free: 9.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001587/0.1928, allocations: 27.98 kB / 360.7 MB, free: 9.793 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009674/0.1938, allocations: 117.9 kB / 360.8 MB, free: 9.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001422/0.1953, allocations: 0.5561 MB / 361.4 MB, free: 9.086 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005247/0.1958, allocations: 0.7677 MB / 362.1 MB, free: 8.293 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/0.1959, allocations: 27.44 kB / 362.2 MB, free: 8.266 MB / 302.1 MB Notification: Performance of SimCode: time 1.012e-06/0.196, allocations: 0 / 362.2 MB, free: 8.266 MB / 302.1 MB Notification: Performance of Templates: time 0.0118/0.2078, allocations: 3.593 MB / 365.8 MB, free: 4.688 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/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