Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001344/0.001345, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001462/0.001462, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.5/1.5, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002127/0.002128, allocations: 59.72 kB / 306.9 MB, free: 0.6523 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1364/0.1385, allocations: 50.55 MB / 357.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.004787/0.1434, allocations: 1.962 MB / 359.4 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002859/0.1463, allocations: 1.344 MB / 360.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003232/0.1466, allocations: 4 kB / 360.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005169/0.1472, allocations: 79.53 kB / 360.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006837/0.1479, allocations: 127.4 kB / 361 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001254/0.1492, allocations: 274.6 kB / 361.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004467/0.1497, allocations: 223.4 kB / 361.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001905/0.1499, allocations: 56.27 kB / 361.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002235/0.1501, allocations: 91.62 kB / 361.6 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002191/0.1503, allocations: 107.5 kB / 361.7 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.089e-05/0.1504, allocations: 12 kB / 361.7 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002494/0.1506, allocations: 71.91 kB / 361.8 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001204/0.1508, allocations: 67.75 kB / 361.9 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001533/0.1509, allocations: 99.34 kB / 362 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005181/0.1515, allocations: 291.3 kB / 362.3 MB, free: 9.309 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.1515, allocations: 8 kB / 362.3 MB, free: 9.301 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.358e-06/0.1515, allocations: 0 / 362.3 MB, free: 9.301 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.262e-05/0.1515, allocations: 3.938 kB / 362.3 MB, free: 9.297 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.001156/0.1527, allocations: 0.5739 MB / 362.8 MB, free: 8.668 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.1527, allocations: 15.97 kB / 362.9 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001433/0.1529, allocations: 28.56 kB / 362.9 MB, free: 8.625 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004998/0.1534, allocations: 311.4 kB / 363.2 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.039e-05/0.1534, allocations: 16.3 kB / 363.2 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.987e-05/0.1535, allocations: 20.12 kB / 363.2 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006761/0.1542, allocations: 323.2 kB / 363.5 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.1542, allocations: 0 / 363.5 MB, free: 7.902 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.247e-05/0.1542, allocations: 4 kB / 363.5 MB, free: 7.898 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.1542, allocations: 4 kB / 363.5 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002003/0.1544, allocations: 67.91 kB / 363.6 MB, free: 7.828 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006568/0.1551, allocations: 418.2 kB / 364 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003866/0.1555, allocations: 196 kB / 364.2 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001605/0.1557, allocations: 98.53 kB / 364.3 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.917e-05/0.1557, allocations: 16.2 kB / 364.3 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001835/0.1559, allocations: 83.31 kB / 364.4 MB, free: 6.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.094e-06/0.1559, allocations: 0 / 364.4 MB, free: 6.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005958/0.1565, allocations: 253.1 kB / 364.7 MB, free: 6.676 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.996e-05/0.1566, allocations: 174.2 kB / 364.8 MB, free: 6.469 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000382/0.157, allocations: 354.9 kB / 365.2 MB, free: 6.105 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.428e-05/0.1571, allocations: 29.7 kB / 365.2 MB, free: 6.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.1572, allocations: 132.6 kB / 365.3 MB, free: 5.938 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.453e-05/0.1572, allocations: 35.67 kB / 365.4 MB, free: 5.902 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.768e-05/0.1573, allocations: 49.94 kB / 365.4 MB, free: 5.848 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.1575, allocations: 342.8 kB / 365.7 MB, free: 5.504 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001073/0.1576, allocations: 48.44 kB / 365.8 MB, free: 5.457 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001841/0.1578, allocations: 188.5 kB / 366 MB, free: 5.211 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002834/0.1581, allocations: 203.2 kB / 366.2 MB, free: 4.957 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.582e-06/0.1581, allocations: 7.984 kB / 366.2 MB, free: 4.949 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004216/0.1586, allocations: 236.9 kB / 366.4 MB, free: 4.711 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.1586, allocations: 4 kB / 366.4 MB, free: 4.707 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.158e-06/0.1586, allocations: 4.375 kB / 366.4 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.1586, allocations: 8 kB / 366.4 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001618/0.1588, allocations: 39.91 kB / 366.5 MB, free: 4.656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.524e-05/0.1588, allocations: 12.47 kB / 366.5 MB, free: 4.645 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000141/0.159, allocations: 23.78 kB / 366.5 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.727e-05/0.159, allocations: 19.94 kB / 366.5 MB, free: 4.602 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.0001899/0.1592, allocations: 180.2 kB / 366.7 MB, free: 4.418 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002162/0.1594, allocations: 133.3 kB / 366.8 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.82e-05/0.1595, allocations: 33.78 kB / 366.9 MB, free: 4.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.1595, allocations: 8 kB / 366.9 MB, free: 4.242 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.1595, allocations: 3.938 kB / 366.9 MB, free: 4.238 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.1596, allocations: 3.984 kB / 366.9 MB, free: 4.234 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002442/0.1598, allocations: 269.4 kB / 367.1 MB, free: 3.922 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.1598, allocations: 0 / 367.1 MB, free: 3.922 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001361/0.16, allocations: 31.98 kB / 367.2 MB, free: 3.891 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.16, allocations: 0 / 367.2 MB, free: 3.891 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.631e-05/0.16, allocations: 7.938 kB / 367.2 MB, free: 3.883 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.16, allocations: 0 / 367.2 MB, free: 3.883 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.16, allocations: 7.938 kB / 367.2 MB, free: 3.875 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003989/0.1604, allocations: 242.3 kB / 367.4 MB, free: 3.613 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001349/0.1606, allocations: 128.7 kB / 367.6 MB, free: 3.469 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.778e-05/0.1606, allocations: 8 kB / 367.6 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.726e-05/0.1607, allocations: 8 kB / 367.6 MB, free: 3.453 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.126e-05/0.1608, allocations: 15.86 kB / 367.6 MB, free: 3.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.992e-05/0.1608, allocations: 8 kB / 367.6 MB, free: 3.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002665/0.1611, allocations: 257.9 kB / 367.8 MB, free: 3.176 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1611, allocations: 3.938 kB / 367.8 MB, free: 3.172 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003659/0.1615, allocations: 55.98 kB / 367.9 MB, free: 3.117 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.001145/0.1626, allocations: 416 kB / 368.3 MB, free: 2.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000413/0.1631, allocations: 168.6 kB / 368.5 MB, free: 2.676 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.1631, allocations: 4.062 kB / 368.5 MB, free: 2.672 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.076e-05/0.1632, allocations: 27.98 kB / 368.5 MB, free: 2.645 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005782/0.1638, allocations: 123.2 kB / 368.6 MB, free: 2.527 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009184/0.1647, allocations: 481.8 kB / 369.1 MB, free: 2.027 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003962/0.1651, allocations: 0.7675 MB / 369.9 MB, free: 1.23 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001451/0.1653, allocations: 38.5 kB / 369.9 MB, free: 1.191 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.596e-05/0.1653, allocations: 27.42 kB / 369.9 MB, free: 1.164 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1653, allocations: 0 / 369.9 MB, free: 1.164 MB / 302.1 MB Notification: Performance of Templates: time 0.2292/0.3946, allocations: 3.519 MB / 373.4 MB, free: 19.55 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches