Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.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.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 113 kB / 17.68 MB, free: 5.473 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.00122/0.00122, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.477/1.477, allocations: 222.9 MB / 242.3 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 50.36 kB / 302 MB, free: 5.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1685/0.1701, allocations: 49.45 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.003499/0.1736, allocations: 0.8364 MB / 352.3 MB, free: 2.855 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004875/0.1741, allocations: 123.6 kB / 352.5 MB, free: 2.734 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001027/0.1742, allocations: 3.938 kB / 352.5 MB, free: 2.73 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.1744, allocations: 7.938 kB / 352.5 MB, free: 2.723 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001573/0.1746, allocations: 11.94 kB / 352.5 MB, free: 2.711 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002739/0.1748, allocations: 35.89 kB / 352.5 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001552/0.175, allocations: 39.91 kB / 352.6 MB, free: 2.637 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001669/0.1752, allocations: 24 kB / 352.6 MB, free: 2.613 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.797e-05/0.1752, allocations: 19.86 kB / 352.6 MB, free: 2.594 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000105/0.1754, allocations: 15.92 kB / 352.6 MB, free: 2.578 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.571e-05/0.1754, allocations: 4 kB / 352.6 MB, free: 2.574 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.843e-05/0.1754, allocations: 4 kB / 352.6 MB, free: 2.57 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.254e-05/0.1755, allocations: 27.91 kB / 352.6 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.373e-05/0.1756, allocations: 27.75 kB / 352.7 MB, free: 2.516 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001682/0.1758, allocations: 59.75 kB / 352.7 MB, free: 2.457 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.1758, allocations: 0 / 352.7 MB, free: 2.457 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.955e-06/0.1758, allocations: 7.938 kB / 352.7 MB, free: 2.449 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.1758, allocations: 0 / 352.7 MB, free: 2.449 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007426/0.1766, allocations: 383.1 kB / 353.1 MB, free: 2.023 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.1767, allocations: 8.031 kB / 353.1 MB, free: 2.016 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.095e-05/0.1767, allocations: 12.75 kB / 353.1 MB, free: 2.004 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003165/0.177, allocations: 196.1 kB / 353.3 MB, free: 1.773 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/0.1771, allocations: 4.375 kB / 353.3 MB, free: 1.77 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.707e-05/0.1771, allocations: 8.375 kB / 353.3 MB, free: 1.762 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000437/0.1775, allocations: 143.8 kB / 353.5 MB, free: 1.609 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.1776, allocations: 192 / 353.5 MB, free: 1.609 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.376e-05/0.1776, allocations: 7.938 kB / 353.5 MB, free: 1.602 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.1776, allocations: 0 / 353.5 MB, free: 1.602 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.077e-05/0.1777, allocations: 23.92 kB / 353.5 MB, free: 1.578 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002522/0.178, allocations: 173.5 kB / 353.7 MB, free: 1.359 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002147/0.1782, allocations: 78.72 kB / 353.8 MB, free: 1.273 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001032/0.1783, allocations: 40.88 kB / 353.8 MB, free: 1.23 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.077e-05/0.1783, allocations: 0 / 353.8 MB, free: 1.23 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.419e-05/0.1784, allocations: 38.56 kB / 353.8 MB, free: 1.184 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 1.653e-06/0.1784, allocations: 0 / 353.8 MB, free: 1.184 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0003097/0.1787, allocations: 109.6 kB / 353.9 MB, free: 1.07 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.314e-05/0.1788, allocations: 55.41 kB / 354 MB, free: 1.004 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001779/0.179, allocations: 144.3 kB / 354.1 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.18e-05/0.179, allocations: 29.7 kB / 354.2 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.385e-05/0.1791, allocations: 80.14 kB / 354.2 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.598e-05/0.1791, allocations: 11.91 kB / 354.3 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.396e-05/0.1792, allocations: 25.7 kB / 354.3 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.1793, allocations: 314.8 kB / 354.6 MB, free: 388 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.82e-05/0.1794, allocations: 19.98 kB / 354.6 MB, free: 368 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.053e-05/0.1795, allocations: 54.81 kB / 354.7 MB, free: 288 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001202/0.1796, allocations: 74.8 kB / 354.7 MB, free: 188 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.1796, allocations: 3.938 kB / 354.7 MB, free: 184 kB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001959/0.1798, allocations: 97.52 kB / 354.8 MB, free: 80 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.1798, allocations: 7.938 kB / 354.8 MB, free: 72 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.1798, allocations: 4 kB / 354.8 MB, free: 68 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.398e-05/0.1799, allocations: 3.984 kB / 354.8 MB, free: 64 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.18, allocations: 15.94 kB / 354.9 MB, free: 48 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.18, allocations: 8.125 kB / 354.9 MB, free: 40 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.97e-05/0.1801, allocations: 7.938 kB / 354.9 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.371e-05/0.1801, allocations: 11.94 kB / 354.9 MB, free: 20 kB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,$CLKPRE.unitDelay1.u,unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.0001619/0.1803, allocations: 129.4 kB / 355 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001472/0.1805, allocations: 85.47 kB / 355.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.762e-05/0.1805, allocations: 16.7 kB / 355.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-06/0.1805, allocations: 0 / 355.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.1805, allocations: 4 kB / 355.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.1806, allocations: 4 kB / 355.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001867/0.1807, allocations: 169.6 kB / 355.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-06/0.1808, allocations: 0 / 355.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.387e-05/0.1809, allocations: 12 kB / 355.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.1809, allocations: 3.938 kB / 355.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.1809, allocations: 4 kB / 355.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.1809, allocations: 4 kB / 355.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1809, allocations: 0 / 355.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001983/0.1811, allocations: 112.9 kB / 355.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.046e-05/0.1812, allocations: 93 kB / 355.5 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.386e-05/0.1813, allocations: 3.938 kB / 355.5 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.702e-05/0.1813, allocations: 8 kB / 355.5 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.605e-06/0.1813, allocations: 0 / 355.5 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.172e-06/0.1813, allocations: 4 kB / 355.5 MB, free: 15.28 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.936e-05/0.1814, allocations: 115.2 kB / 355.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1815, allocations: 0 / 355.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003747/0.1818, allocations: 4 kB / 355.6 MB, free: 15.16 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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 Backend phase and start with SimCode phase: time 0.0001363/0.182, allocations: 107.7 kB / 355.8 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000169/0.1822, allocations: 48.81 kB / 355.8 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.1822, allocations: 8 kB / 355.8 MB, free: 14.99 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.62e-07/0.1822, allocations: 0 / 355.8 MB, free: 14.99 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004311/0.1826, allocations: 44.25 kB / 355.9 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000423/0.1831, allocations: 185.2 kB / 356 MB, free: 14.74 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003985/0.1835, allocations: 0.7001 MB / 356.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.874e-05/0.1835, allocations: 4.656 kB / 356.7 MB, free: 14.01 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.495e-05/0.1836, allocations: 15.44 kB / 356.8 MB, free: 13.99 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1836, allocations: 0 / 356.8 MB, free: 13.99 MB / 302.1 MB Notification: Performance of Templates: time 0.004384/0.188, allocations: 0.6964 MB / 357.4 MB, free: 13.3 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches