Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.605/1.605, allocations: 252 MB / 268 MB, free: 10.86 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001152/0.001152, allocations: 184.5 kB / 327.6 MB, free: 2.086 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.943/1.943, allocations: 205.4 MB / 0.5786 GB, free: 20.18 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007739/0.0007739, allocations: 92.22 kB / 0.6832 GB, free: 12.77 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003189/0.0003189, allocations: 9.969 kB / 0.7976 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.163/0.1633, allocations: 106.3 MB / 0.9015 GB, free: 63.48 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001263/0.1647, allocations: 1.124 MB / 0.9026 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0003857/0.1651, allocations: 244.2 kB / 0.9028 GB, free: 62.1 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.117e-05/0.1651, allocations: 3.938 kB / 0.9028 GB, free: 62.1 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 1.937e-05/0.1651, allocations: 0 / 0.9028 GB, free: 62.1 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.317e-05/0.1652, allocations: 3.938 kB / 0.9028 GB, free: 62.09 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001718/0.1654, allocations: 35.95 kB / 0.9028 GB, free: 62.06 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.031e-05/0.1655, allocations: 63.78 kB / 0.9029 GB, free: 62 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 9.404e-05/0.1656, allocations: 4 kB / 0.9029 GB, free: 61.99 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 6.048e-05/0.1656, allocations: 27.92 kB / 0.9029 GB, free: 61.96 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 4.968e-05/0.1657, allocations: 31.89 kB / 0.903 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.046e-05/0.1657, allocations: 4 kB / 0.903 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 1.282e-05/0.1657, allocations: 0 / 0.903 GB, free: 61.93 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.188e-05/0.1658, allocations: 15.92 kB / 0.903 GB, free: 61.91 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.396e-05/0.1658, allocations: 53.56 kB / 0.903 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 6.528e-05/0.1659, allocations: 39.89 kB / 0.9031 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1659, allocations: 0 / 0.9031 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.694e-06/0.1659, allocations: 0 / 0.9031 GB, free: 61.82 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 7.444e-06/0.1659, allocations: 0 / 0.9031 GB, free: 61.82 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0004803/0.1664, allocations: 383.6 kB / 0.9034 GB, free: 61.39 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.1664, allocations: 8.031 kB / 0.9034 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.313e-05/0.1665, allocations: 8.875 kB / 0.9034 GB, free: 61.38 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.918e-05/0.1666, allocations: 172.3 kB / 0.9036 GB, free: 61.17 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.489e-05/0.1666, allocations: 8.312 kB / 0.9036 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.622e-05/0.1666, allocations: 8.375 kB / 0.9036 GB, free: 61.15 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002008/0.1668, allocations: 86.2 kB / 0.9037 GB, free: 61.06 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.1668, allocations: 4.125 kB / 0.9037 GB, free: 61.06 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.1669, allocations: 7.938 kB / 0.9037 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.1669, allocations: 4 kB / 0.9037 GB, free: 61.05 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001905/0.1671, allocations: 59.95 kB / 0.9038 GB, free: 60.99 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004052/0.1675, allocations: 308.8 kB / 0.9041 GB, free: 60.64 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001756/0.1677, allocations: 90.42 kB / 0.9042 GB, free: 60.54 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001107/0.1678, allocations: 52.83 kB / 0.9042 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/0.1678, allocations: 0 / 0.9042 GB, free: 60.48 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002184/0.168, allocations: 107.4 kB / 0.9043 GB, free: 60.37 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=10): time 1.292e-06/0.168, allocations: 0 / 0.9043 GB, free: 60.37 MB / 0.6042 GB Notification: Performance of matching and sorting (n=10): time 0.0004396/0.1685, allocations: 189.5 kB / 0.9045 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.157e-05/0.1685, allocations: 51.41 kB / 0.9045 GB, free: 60.11 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.3e-05/0.1686, allocations: 109.8 kB / 0.9046 GB, free: 60 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/0.1686, allocations: 29.7 kB / 0.9047 GB, free: 59.96 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.829e-05/0.1687, allocations: 92.27 kB / 0.9048 GB, free: 59.86 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 2.08e-05/0.1687, allocations: 27.64 kB / 0.9048 GB, free: 59.84 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.472e-06/0.1687, allocations: 8 kB / 0.9048 GB, free: 59.83 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 4.988e-05/0.1688, allocations: 322.8 kB / 0.9051 GB, free: 59.5 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001043/0.1689, allocations: 35.98 kB / 0.9051 GB, free: 59.47 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/0.169, allocations: 71.39 kB / 0.9052 GB, free: 59.39 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002085/0.1692, allocations: 123.3 kB / 0.9053 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1692, allocations: 4.312 kB / 0.9053 GB, free: 59.25 MB / 0.6042 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002638/0.1695, allocations: 153.5 kB / 0.9055 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.293e-05/0.1695, allocations: 7.984 kB / 0.9055 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.1695, allocations: 0 / 0.9055 GB, free: 59.09 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.1695, allocations: 7.938 kB / 0.9055 GB, free: 59.08 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/0.1697, allocations: 28.02 kB / 0.9055 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.1697, allocations: 4 kB / 0.9055 GB, free: 59.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.359e-05/0.1697, allocations: 8 kB / 0.9055 GB, free: 59.04 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.1698, allocations: 8 kB / 0.9055 GB, free: 59.03 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.firOrdHol.firstTrigger,firOrdHol.firstTrigger,$whenCondition1,firOrdHol.sampleTrigger,$PRE.firOrdHol.tSample,firOrdHol.tSample,$PRE.firOrdHol.uSample,firOrdHol.uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.pre_uSample,$PRE.firOrdHol.c,firOrdHol.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 7.021e-05/0.1698, allocations: 129.6 kB / 0.9057 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.3e-05/0.1699, allocations: 7.906 kB / 0.9057 GB, free: 58.89 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003072/0.1702, allocations: 157.9 kB / 0.9058 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.1702, allocations: 0 / 0.9058 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.1702, allocations: 0 / 0.9058 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.1702, allocations: 0 / 0.9058 GB, free: 58.73 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003965/0.1706, allocations: 422.4 kB / 0.9062 GB, free: 58.26 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-06/0.1706, allocations: 0 / 0.9062 GB, free: 58.26 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.526e-05/0.1707, allocations: 19.92 kB / 0.9062 GB, free: 58.24 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1707, allocations: 0 / 0.9062 GB, free: 58.24 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.237e-06/0.1707, allocations: 256 / 0.9062 GB, free: 58.24 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.1707, allocations: 8 kB / 0.9062 GB, free: 58.23 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1707, allocations: 4 kB / 0.9063 GB, free: 58.23 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002751/0.171, allocations: 247.3 kB / 0.9065 GB, free: 57.97 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 1.768e-05/0.171, allocations: 89.02 kB / 0.9066 GB, free: 57.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.698e-05/0.171, allocations: 0 / 0.9066 GB, free: 57.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.716e-05/0.1712, allocations: 11.98 kB / 0.9066 GB, free: 57.85 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.969e-05/0.1712, allocations: 12.27 kB / 0.9066 GB, free: 57.84 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.916e-06/0.1712, allocations: 7.938 kB / 0.9066 GB, free: 57.83 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.261e-05/0.1712, allocations: 83.27 kB / 0.9067 GB, free: 57.75 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1712, allocations: 3.938 kB / 0.9067 GB, free: 57.75 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.000221/0.1715, allocations: 16 kB / 0.9067 GB, free: 57.73 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 8.397e-05/0.1716, allocations: 111.2 kB / 0.9068 GB, free: 57.61 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.000261/0.1718, allocations: 103.9 kB / 0.9069 GB, free: 57.51 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1718, allocations: 0 / 0.9069 GB, free: 57.51 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001194/0.172, allocations: 56.16 kB / 0.907 GB, free: 57.46 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002412/0.1722, allocations: 15.92 kB / 0.907 GB, free: 57.44 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002899/0.1725, allocations: 195.1 kB / 0.9072 GB, free: 57.21 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.25e-05/0.1726, allocations: 0.6848 MB / 0.9078 GB, free: 56.5 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.179e-05/0.1727, allocations: 15.44 kB / 0.9078 GB, free: 56.49 MB / 0.6042 GB Notification: Performance of SimCode: time 9.12e-07/0.1727, allocations: 0 / 0.9078 GB, free: 56.49 MB / 0.6042 GB Notification: Performance of Templates: time 0.001839/0.1745, allocations: 1.008 MB / 0.9088 GB, free: 55.48 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1)