Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009706/0.0009713, allocations: 95.23 kB / 16.65 MB, free: 6.539 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.0009761/0.0009761, allocations: 175.9 kB / 17.56 MB, free: 6.18 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.544/1.544, allocations: 223.3 MB / 241.6 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000382/0.0003824, allocations: 11.94 kB / 301.4 MB, free: 5.902 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1571/0.1575, allocations: 50.42 MB / 351.8 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003113/0.1607, allocations: 1.605 MB / 353.4 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002557/0.1634, allocations: 1.107 MB / 354.5 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002418/0.1636, allocations: 0 / 354.5 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005357/0.1642, allocations: 59.73 kB / 354.6 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000333/0.1645, allocations: 83.66 kB / 354.7 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009847/0.1655, allocations: 228.3 kB / 354.9 MB, free: 384 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002963/0.1659, allocations: 167.5 kB / 355.1 MB, free: 216 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001673/0.166, allocations: 25.55 kB / 355.1 MB, free: 192 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001383/0.1662, allocations: 75.62 kB / 355.2 MB, free: 116 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001457/0.1663, allocations: 71.69 kB / 355.2 MB, free: 44 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.243e-05/0.1664, allocations: 0 / 355.2 MB, free: 44 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002077/0.1666, allocations: 63.89 kB / 355.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001127/0.1667, allocations: 43.84 kB / 355.4 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001412/0.1668, allocations: 97.12 kB / 355.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003739/0.1672, allocations: 231.4 kB / 355.7 MB, free: 15.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.155e-06/0.1672, allocations: 0 / 355.7 MB, free: 15.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.168e-06/0.1673, allocations: 0 / 355.7 MB, free: 15.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.1673, allocations: 0 / 355.7 MB, free: 15.61 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.0009244/0.1682, allocations: 0.5117 MB / 356.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.1683, allocations: 8.031 kB / 356.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.28e-05/0.1684, allocations: 24.66 kB / 356.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003772/0.1687, allocations: 279.6 kB / 356.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.345e-05/0.1688, allocations: 8.375 kB / 356.5 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.588e-05/0.1688, allocations: 12.06 kB / 356.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004034/0.1692, allocations: 172.4 kB / 356.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.1692, allocations: 0 / 356.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.797e-05/0.1693, allocations: 8 kB / 356.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.1693, allocations: 0 / 356.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001288/0.1694, allocations: 39.91 kB / 356.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006537/0.1701, allocations: 478.5 kB / 357.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002714/0.1704, allocations: 142.5 kB / 357.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.1705, allocations: 55.42 kB / 357.4 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.641e-05/0.1705, allocations: 7.984 kB / 357.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002535/0.1708, allocations: 101 kB / 357.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.784e-06/0.1708, allocations: 0 / 357.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004312/0.1712, allocations: 169.6 kB / 357.7 MB, free: 13.37 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001633/0.1714, allocations: 187.9 kB / 357.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004231/0.1718, allocations: 326.7 kB / 358.2 MB, free: 12.81 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.228e-05/0.1719, allocations: 33.7 kB / 358.2 MB, free: 12.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001448/0.172, allocations: 136.2 kB / 358.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.066e-05/0.1721, allocations: 15.75 kB / 358.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.282e-05/0.1721, allocations: 25.7 kB / 358.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001927/0.1723, allocations: 334.8 kB / 358.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.928e-05/0.1724, allocations: 31.92 kB / 358.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/0.1726, allocations: 91.7 kB / 358.8 MB, free: 12.1 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001861/0.1728, allocations: 101 kB / 358.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.184e-06/0.1728, allocations: 4 kB / 358.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002816/0.1731, allocations: 133.3 kB / 359 MB, free: 11.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.1731, allocations: 4 kB / 359 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.1731, allocations: 4.156 kB / 359.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.1731, allocations: 4 kB / 359.1 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001436/0.1733, allocations: 23.92 kB / 359.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.1733, allocations: 7.984 kB / 359.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001048/0.1734, allocations: 11.84 kB / 359.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.856e-05/0.1735, allocations: 8 kB / 359.1 MB, free: 11.78 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.0001979/0.1737, allocations: 149.8 kB / 359.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.1738, allocations: 77.42 kB / 359.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.476e-05/0.1739, allocations: 33.73 kB / 359.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/0.1739, allocations: 3.984 kB / 359.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/0.1739, allocations: 4 kB / 359.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.1739, allocations: 3.938 kB / 359.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003171/0.1742, allocations: 241.6 kB / 359.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1743, allocations: 4 kB / 359.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.684e-05/0.1743, allocations: 19.92 kB / 359.6 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.1744, allocations: 0 / 359.6 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.002e-05/0.1744, allocations: 8 kB / 359.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.1744, allocations: 320 / 359.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.1744, allocations: 7.984 kB / 359.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003351/0.1747, allocations: 195.1 kB / 359.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001369/0.1749, allocations: 116.8 kB / 360 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.499e-05/0.1749, allocations: 4 kB / 360 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.057e-05/0.175, allocations: 12 kB / 360 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.141e-05/0.1751, allocations: 11.92 kB / 360 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.543e-05/0.1751, allocations: 4 kB / 360 MB, free: 10.79 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002764/0.1754, allocations: 245.9 kB / 360.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1754, allocations: 0 / 360.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002964/0.1757, allocations: 36 kB / 360.3 MB, free: 10.52 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.001086/0.1768, allocations: 433.4 kB / 360.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000264/0.1771, allocations: 83.84 kB / 360.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1771, allocations: 0 / 360.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.454e-05/0.1772, allocations: 39.97 kB / 360.8 MB, free: 10.13 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005149/0.1778, allocations: 67.69 kB / 360.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007602/0.1785, allocations: 433.7 kB / 361.3 MB, free: 9.609 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004368/0.179, allocations: 0.7362 MB / 362 MB, free: 8.848 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001095/0.1791, allocations: 33.53 kB / 362.1 MB, free: 8.809 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.857e-05/0.1792, allocations: 19.44 kB / 362.1 MB, free: 8.789 MB / 302.1 MB Notification: Performance of SimCode: time 2.665e-06/0.1792, allocations: 0 / 362.1 MB, free: 8.789 MB / 302.1 MB Notification: Performance of Templates: time 0.007795/0.187, allocations: 2.785 MB / 364.9 MB, free: 6.035 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches