Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Synchronous.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.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.005442/0.005442, allocations: 93.23 kB / 15.91 MB, free: 6.273 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.001341/0.001341, allocations: 201 kB / 16.84 MB, free: 6.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.618/1.618, allocations: 205.1 MB / 222.7 MB, free: 4.93 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1409/0.1409, allocations: 12.59 MB / 282.6 MB, free: 9.086 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001661, allocations: 79.89 kB / 342.8 MB, free: 21.24 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.152/0.1537, allocations: 49.4 MB / 392.2 MB, free: 3.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample): time 0.004754/0.1585, allocations: 2.012 MB / 394.2 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002367/0.1609, allocations: 1.108 MB / 395.3 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001918/0.1611, allocations: 4 kB / 395.3 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005339/0.1617, allocations: 67.72 kB / 395.4 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002839/0.162, allocations: 83.72 kB / 395.5 MB, free: 464 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009029/0.1629, allocations: 247.5 kB / 395.7 MB, free: 216 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003182/0.1632, allocations: 203.4 kB / 395.9 MB, free: 12 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000217/0.1635, allocations: 37.67 kB / 395.9 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001497/0.1636, allocations: 87.56 kB / 396 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001957/0.1638, allocations: 99.59 kB / 396.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.59e-05/0.1639, allocations: 8 kB / 396.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001661/0.164, allocations: 59.89 kB / 396.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000115/0.1642, allocations: 59.77 kB / 396.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001451/0.1643, allocations: 103.3 kB / 396.3 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004121/0.1647, allocations: 267.4 kB / 396.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.1648, allocations: 0 / 396.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1648, allocations: 0 / 396.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.1648, allocations: 3.938 kB / 396.6 MB, free: 15.3 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.001275/0.1661, allocations: 0.5855 MB / 397.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.55e-05/0.1662, allocations: 8.031 kB / 397.2 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.924e-05/0.1663, allocations: 32.56 kB / 397.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005137/0.1668, allocations: 295.5 kB / 397.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.474e-05/0.1668, allocations: 20.36 kB / 397.5 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.219e-05/0.1669, allocations: 12.12 kB / 397.6 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000702/0.1676, allocations: 327.1 kB / 397.9 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.1676, allocations: 7.984 kB / 397.9 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.284e-05/0.1676, allocations: 11.98 kB / 397.9 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.1676, allocations: 4 kB / 397.9 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001838/0.1678, allocations: 63.91 kB / 398 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006732/0.1685, allocations: 410.2 kB / 398.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003922/0.1689, allocations: 199.9 kB / 398.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001654/0.1691, allocations: 90.53 kB / 398.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.274e-05/0.1691, allocations: 8.219 kB / 398.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001897/0.1693, allocations: 91.22 kB / 398.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.934e-06/0.1694, allocations: 0 / 398.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005729/0.1699, allocations: 241.3 kB / 399 MB, free: 12.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001569/0.1701, allocations: 174.2 kB / 399.1 MB, free: 12.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003793/0.1705, allocations: 342.9 kB / 399.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.676e-05/0.1705, allocations: 33.7 kB / 399.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001376/0.1707, allocations: 132.7 kB / 399.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.511e-05/0.1707, allocations: 31.69 kB / 399.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.902e-05/0.1708, allocations: 53.84 kB / 399.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001876/0.171, allocations: 342.8 kB / 400.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.1711, allocations: 44.44 kB / 400.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002319/0.1714, allocations: 191.2 kB / 400.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002954/0.1717, allocations: 211.2 kB / 400.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.1717, allocations: 0 / 400.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000396/0.1721, allocations: 233.8 kB / 400.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.1721, allocations: 15.94 kB / 400.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.1722, allocations: 7.984 kB / 400.7 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.992e-05/0.1722, allocations: 4 kB / 400.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/0.1724, allocations: 43.92 kB / 400.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/0.1724, allocations: 7.938 kB / 400.8 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001112/0.1725, allocations: 15.84 kB / 400.8 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.054e-05/0.1725, allocations: 19.98 kB / 400.8 MB, free: 10.63 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,sample.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.0001902/0.1727, allocations: 176 kB / 401 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001991/0.1729, allocations: 141.2 kB / 401.1 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.743e-05/0.173, allocations: 38.08 kB / 401.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.173, allocations: 3.984 kB / 401.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.978e-06/0.173, allocations: 7.938 kB / 401.2 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.173, allocations: 0 / 401.2 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002267/0.1733, allocations: 257.5 kB / 401.4 MB, free: 9.957 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.84e-06/0.1733, allocations: 7.984 kB / 401.5 MB, free: 9.949 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001186/0.1734, allocations: 27.98 kB / 401.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.1734, allocations: 0 / 401.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.571e-05/0.1734, allocations: 8 kB / 401.5 MB, free: 9.914 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.1735, allocations: 4 kB / 401.5 MB, free: 9.91 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.1735, allocations: 3.938 kB / 401.5 MB, free: 9.906 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000385/0.1739, allocations: 242.4 kB / 401.7 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001229/0.174, allocations: 128.6 kB / 401.9 MB, free: 9.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.225e-05/0.174, allocations: 11.98 kB / 401.9 MB, free: 9.488 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.757e-05/0.1741, allocations: 12 kB / 401.9 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.256e-05/0.1742, allocations: 11.92 kB / 401.9 MB, free: 9.465 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.716e-05/0.1742, allocations: 12 kB / 401.9 MB, free: 9.453 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002274/0.1745, allocations: 245.9 kB / 402.1 MB, free: 9.211 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1745, allocations: 0 / 402.1 MB, free: 9.211 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003219/0.1748, allocations: 48 kB / 402.2 MB, free: 9.164 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,sample.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.001081/0.1759, allocations: 436.7 kB / 402.6 MB, free: 8.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003284/0.1762, allocations: 143.8 kB / 402.8 MB, free: 8.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1763, allocations: 0 / 402.8 MB, free: 8.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.47e-05/0.1763, allocations: 35.92 kB / 402.8 MB, free: 8.555 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005373/0.1769, allocations: 126.6 kB / 402.9 MB, free: 8.434 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008842/0.1778, allocations: 0.5079 MB / 403.4 MB, free: 7.898 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000512/0.1783, allocations: 0.7717 MB / 404.2 MB, free: 7.102 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001005/0.1784, allocations: 34.52 kB / 404.2 MB, free: 7.066 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.332e-05/0.1785, allocations: 27.42 kB / 404.3 MB, free: 7.039 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1785, allocations: 0 / 404.3 MB, free: 7.039 MB / 302.1 MB Notification: Performance of Templates: time 0.008032/0.1865, allocations: 3.34 MB / 407.6 MB, free: 3.695 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches