Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001429/0.001437, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001647/0.001647, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.497/1.497, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001677/0.001677, allocations: 61.48 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1624/0.1641, allocations: 50.52 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.004892/0.169, allocations: 1.911 MB / 360.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003027/0.1721, allocations: 1.305 MB / 362.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002165/0.1723, allocations: 7.938 kB / 362.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004245/0.1728, allocations: 63.66 kB / 362.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005227/0.1734, allocations: 135.4 kB / 362.3 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009857/0.1744, allocations: 238.7 kB / 362.5 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003445/0.1747, allocations: 187.5 kB / 362.7 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001646/0.1749, allocations: 33.53 kB / 362.8 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001656/0.1751, allocations: 83.69 kB / 362.8 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001574/0.1752, allocations: 83.61 kB / 362.9 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.303e-05/0.1753, allocations: 8 kB / 362.9 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002064/0.1755, allocations: 63.91 kB / 363 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.1756, allocations: 55.81 kB / 363 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001229/0.1758, allocations: 83.42 kB / 363.1 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004658/0.1762, allocations: 255.1 kB / 363.4 MB, free: 8.836 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.735e-06/0.1763, allocations: 0 / 363.4 MB, free: 8.836 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1763, allocations: 0 / 363.4 MB, free: 8.836 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.1e-05/0.1763, allocations: 0 / 363.4 MB, free: 8.836 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009957/0.1773, allocations: 0.5428 MB / 363.9 MB, free: 8.238 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.1774, allocations: 8.031 kB / 363.9 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.031e-05/0.1775, allocations: 24.66 kB / 364 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006231/0.1781, allocations: 299.5 kB / 364.2 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.983e-05/0.1781, allocations: 8.359 kB / 364.3 MB, free: 7.867 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.929e-05/0.1782, allocations: 12.12 kB / 364.3 MB, free: 7.855 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005146/0.1787, allocations: 172.4 kB / 364.4 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.1787, allocations: 0 / 364.4 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.604e-05/0.1787, allocations: 7.984 kB / 364.4 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.1788, allocations: 0 / 364.4 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001589/0.1789, allocations: 43.92 kB / 364.5 MB, free: 7.605 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008396/0.1798, allocations: 474.4 kB / 364.9 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003854/0.1802, allocations: 146.5 kB / 365.1 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001379/0.1803, allocations: 63.36 kB / 365.2 MB, free: 6.828 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.983e-05/0.1804, allocations: 4 kB / 365.2 MB, free: 6.824 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002367/0.1806, allocations: 89.09 kB / 365.2 MB, free: 6.719 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 4.378e-06/0.1806, allocations: 4 kB / 365.2 MB, free: 6.715 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005736/0.1812, allocations: 173.6 kB / 365.4 MB, free: 6.539 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001598/0.1814, allocations: 187.9 kB / 365.6 MB, free: 6.312 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004945/0.1819, allocations: 342.9 kB / 365.9 MB, free: 5.965 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.638e-05/0.1819, allocations: 33.7 kB / 366 MB, free: 5.926 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.1821, allocations: 120.4 kB / 366.1 MB, free: 5.801 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.459e-05/0.1821, allocations: 23.73 kB / 366.1 MB, free: 5.777 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.132e-05/0.1822, allocations: 37.7 kB / 366.1 MB, free: 5.734 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.1824, allocations: 342.8 kB / 366.5 MB, free: 5.391 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.641e-05/0.1825, allocations: 23.98 kB / 366.5 MB, free: 5.367 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001623/0.1827, allocations: 87.72 kB / 366.6 MB, free: 5.254 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002315/0.1829, allocations: 116.9 kB / 366.7 MB, free: 5.121 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1829, allocations: 0 / 366.7 MB, free: 5.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003016/0.1832, allocations: 133.3 kB / 366.8 MB, free: 4.984 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.1833, allocations: 8.156 kB / 366.8 MB, free: 4.977 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.1833, allocations: 4 kB / 366.8 MB, free: 4.973 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/0.1833, allocations: 0 / 366.8 MB, free: 4.973 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/0.1834, allocations: 23.98 kB / 366.9 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.1835, allocations: 0 / 366.9 MB, free: 4.949 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.66e-05/0.1836, allocations: 19.83 kB / 366.9 MB, free: 4.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.383e-05/0.1836, allocations: 8 kB / 366.9 MB, free: 4.922 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample1.y,hold1.y,hold1.u,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001523/0.1837, allocations: 161.7 kB / 367.1 MB, free: 4.754 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.295e-05/0.1838, allocations: 77.34 kB / 367.1 MB, free: 4.672 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.018e-05/0.1839, allocations: 25.73 kB / 367.2 MB, free: 4.641 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.1839, allocations: 4 kB / 367.2 MB, free: 4.637 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.1839, allocations: 320 / 367.2 MB, free: 4.637 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.1839, allocations: 7.938 kB / 367.2 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002475/0.1842, allocations: 253.6 kB / 367.4 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1842, allocations: 0 / 367.4 MB, free: 4.332 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.221e-05/0.1843, allocations: 15.98 kB / 367.4 MB, free: 4.316 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.1843, allocations: 4 kB / 367.4 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.1843, allocations: 0 / 367.4 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.1843, allocations: 8.062 kB / 367.4 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1843, allocations: 0 / 367.4 MB, free: 4.305 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003/0.1846, allocations: 183.2 kB / 367.6 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001231/0.1848, allocations: 120.8 kB / 367.7 MB, free: 3.961 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.12e-05/0.1848, allocations: 4 kB / 367.7 MB, free: 3.957 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.143e-05/0.1849, allocations: 11.98 kB / 367.8 MB, free: 3.945 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.804e-05/0.1849, allocations: 7.938 kB / 367.8 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.325e-05/0.185, allocations: 15.98 kB / 367.8 MB, free: 3.922 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002625/0.1852, allocations: 241.9 kB / 368 MB, free: 3.688 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1852, allocations: 0 / 368 MB, free: 3.688 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002944/0.1855, allocations: 39.98 kB / 368.1 MB, free: 3.648 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.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 (11): * Single equations (assignments): 9 * 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.001045/0.1866, allocations: 440.5 kB / 368.5 MB, free: 3.355 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002486/0.1869, allocations: 87.83 kB / 368.6 MB, free: 3.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1869, allocations: 0 / 368.6 MB, free: 3.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.506e-05/0.187, allocations: 35.92 kB / 368.6 MB, free: 3.234 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004318/0.1874, allocations: 71.94 kB / 368.7 MB, free: 3.164 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006284/0.188, allocations: 391.4 kB / 369.1 MB, free: 2.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003406/0.1884, allocations: 0.7437 MB / 369.8 MB, free: 1.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.778e-05/0.1885, allocations: 33.53 kB / 369.8 MB, free: 1.945 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.187e-05/0.1886, allocations: 19.44 kB / 369.9 MB, free: 1.93 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1886, allocations: 0 / 369.9 MB, free: 1.93 MB / 302.1 MB Notification: Performance of Templates: time 0.2142/0.4028, allocations: 2.937 MB / 372.8 MB, free: 19.24 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches