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.ZeroOrderHold.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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009052/0.0009052, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.001059/0.001059, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.686/1.686, allocations: 205.4 MB / 222.1 MB, free: 5.641 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.574/1.574, allocations: 252 MB / 0.5102 GB, free: 4.777 MB / 414.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: Performance of FrontEnd - loaded program: time 0.0006406/0.0006411, allocations: 15.59 kB / 0.6243 GB, free: 1.062 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7302/0.7309, allocations: 106.3 MB / 0.7281 GB, free: 11.39 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.002037/0.733, allocations: 1.089 MB / 0.7292 GB, free: 10.29 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0006489/0.7336, allocations: 228.2 kB / 0.7294 GB, free: 10.06 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.577e-05/0.7337, allocations: 4 kB / 0.7294 GB, free: 10.06 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 2.857e-05/0.7338, allocations: 0 / 0.7294 GB, free: 10.06 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001097/0.7339, allocations: 7.922 kB / 0.7294 GB, free: 10.05 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002654/0.7342, allocations: 19.98 kB / 0.7295 GB, free: 10.03 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001086/0.7343, allocations: 43.84 kB / 0.7295 GB, free: 9.988 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001393/0.7344, allocations: 8 kB / 0.7295 GB, free: 9.98 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000105/0.7345, allocations: 19.92 kB / 0.7295 GB, free: 9.961 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 7.509e-05/0.7346, allocations: 19.91 kB / 0.7295 GB, free: 9.941 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.627e-05/0.7347, allocations: 4 kB / 0.7295 GB, free: 9.938 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.421e-05/0.7347, allocations: 4 kB / 0.7295 GB, free: 9.934 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 2.507e-05/0.7347, allocations: 3.984 kB / 0.7296 GB, free: 9.93 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 5.429e-05/0.7348, allocations: 37.64 kB / 0.7296 GB, free: 9.887 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 9.971e-05/0.7349, allocations: 23.94 kB / 0.7296 GB, free: 9.863 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 1.065e-05/0.7349, allocations: 4 kB / 0.7296 GB, free: 9.859 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.327e-06/0.7349, allocations: 3.938 kB / 0.7296 GB, free: 9.855 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.094e-06/0.7349, allocations: 4 kB / 0.7296 GB, free: 9.852 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007367/0.7357, allocations: 365.1 kB / 0.73 GB, free: 9.449 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.719e-05/0.7357, allocations: 8.031 kB / 0.73 GB, free: 9.441 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.122e-05/0.7358, allocations: 4 kB / 0.73 GB, free: 9.438 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001586/0.736, allocations: 171 kB / 0.7301 GB, free: 9.23 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.524e-05/0.736, allocations: 8 kB / 0.7302 GB, free: 9.223 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.448e-05/0.736, allocations: 4 kB / 0.7302 GB, free: 9.219 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002297/0.7362, allocations: 69.59 kB / 0.7302 GB, free: 9.145 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.7363, allocations: 0 / 0.7302 GB, free: 9.145 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.7363, allocations: 7.984 kB / 0.7302 GB, free: 9.137 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.7363, allocations: 0 / 0.7302 GB, free: 9.137 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000197/0.7365, allocations: 55.95 kB / 0.7303 GB, free: 9.082 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005115/0.737, allocations: 280.7 kB / 0.7306 GB, free: 8.758 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001768/0.7372, allocations: 70.48 kB / 0.7306 GB, free: 8.68 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/0.7373, allocations: 36.95 kB / 0.7307 GB, free: 8.641 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.651e-05/0.7374, allocations: 0 / 0.7307 GB, free: 8.641 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002452/0.7376, allocations: 83.38 kB / 0.7307 GB, free: 8.547 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.7376, allocations: 0 / 0.7307 GB, free: 8.547 MB / 0.545 GB Notification: Performance of matching and sorting (n=7): time 0.0004421/0.7381, allocations: 137.9 kB / 0.7309 GB, free: 8.406 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.13e-05/0.7381, allocations: 59.34 kB / 0.7309 GB, free: 8.336 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.995e-05/0.7383, allocations: 113.7 kB / 0.731 GB, free: 8.215 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.806e-05/0.7383, allocations: 29.7 kB / 0.7311 GB, free: 8.18 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.452e-05/0.7384, allocations: 84.05 kB / 0.7311 GB, free: 8.094 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.926e-05/0.7384, allocations: 19.8 kB / 0.7312 GB, free: 8.074 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.638e-06/0.7384, allocations: 0 / 0.7312 GB, free: 8.074 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001482/0.7386, allocations: 318.8 kB / 0.7315 GB, free: 7.754 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/0.7387, allocations: 31.97 kB / 0.7315 GB, free: 7.723 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001227/0.7388, allocations: 64.28 kB / 0.7316 GB, free: 7.645 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001026/0.7389, allocations: 39.97 kB / 0.7316 GB, free: 7.605 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.7389, allocations: 0 / 0.7316 GB, free: 7.605 MB / 0.545 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002652/0.7392, allocations: 129.4 kB / 0.7317 GB, free: 7.473 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.7392, allocations: 4 kB / 0.7317 GB, free: 7.469 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.7392, allocations: 0 / 0.7317 GB, free: 7.469 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.002e-05/0.7393, allocations: 4 kB / 0.7317 GB, free: 7.465 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.7394, allocations: 23.92 kB / 0.7317 GB, free: 7.441 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.138e-05/0.7394, allocations: 8.375 kB / 0.7318 GB, free: 7.434 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.253e-05/0.7395, allocations: 15.95 kB / 0.7318 GB, free: 7.418 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.776e-06/0.7395, allocations: 7.938 kB / 0.7318 GB, free: 7.41 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.zerOrdHol.firstTrigger,zerOrdHol.firstTrigger,$whenCondition1,zerOrdHol.sampleTrigger,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001076/0.7396, allocations: 121.8 kB / 0.7319 GB, free: 7.281 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.287e-06/0.7396, allocations: 0 / 0.7319 GB, free: 7.281 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003006/0.7399, allocations: 129.8 kB / 0.732 GB, free: 7.148 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.7399, allocations: 0 / 0.732 GB, free: 7.148 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.7399, allocations: 0 / 0.732 GB, free: 7.148 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.309e-06/0.74, allocations: 0 / 0.732 GB, free: 7.148 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004647/0.7404, allocations: 370.8 kB / 0.7324 GB, free: 6.73 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.7404, allocations: 4 kB / 0.7324 GB, free: 6.727 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.105e-05/0.7405, allocations: 15.92 kB / 0.7324 GB, free: 6.711 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.7405, allocations: 4 kB / 0.7324 GB, free: 6.707 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.7405, allocations: 3.938 kB / 0.7324 GB, free: 6.703 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.7405, allocations: 0 / 0.7324 GB, free: 6.703 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.7405, allocations: 3.953 kB / 0.7324 GB, free: 6.699 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002864/0.7408, allocations: 207.5 kB / 0.7326 GB, free: 6.48 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.075e-05/0.7409, allocations: 85.02 kB / 0.7327 GB, free: 6.379 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.056e-05/0.7409, allocations: 3.984 kB / 0.7327 GB, free: 6.375 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.888e-05/0.741, allocations: 12 kB / 0.7327 GB, free: 6.363 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.296e-05/0.7411, allocations: 8.031 kB / 0.7327 GB, free: 6.355 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.7411, allocations: 7.938 kB / 0.7327 GB, free: 6.348 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.692e-05/0.7411, allocations: 87.27 kB / 0.7328 GB, free: 6.262 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7411, allocations: 4 kB / 0.7328 GB, free: 6.258 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002261/0.7414, allocations: 12 kB / 0.7328 GB, free: 6.246 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001252/0.7415, allocations: 102.1 kB / 0.7329 GB, free: 6.141 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002602/0.7418, allocations: 83.89 kB / 0.733 GB, free: 6.059 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.7418, allocations: 0 / 0.733 GB, free: 6.059 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001075/0.7419, allocations: 40.22 kB / 0.733 GB, free: 6.02 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002579/0.7422, allocations: 8 kB / 0.733 GB, free: 6.012 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003394/0.7425, allocations: 144.6 kB / 0.7332 GB, free: 5.836 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002561/0.7428, allocations: 0.6809 MB / 0.7338 GB, free: 5.129 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.766e-05/0.7428, allocations: 8.188 kB / 0.7338 GB, free: 5.121 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.253e-05/0.7429, allocations: 15.42 kB / 0.7339 GB, free: 5.105 MB / 0.545 GB Notification: Performance of SimCode: time 2.41e-07/0.7429, allocations: 0 / 0.7339 GB, free: 5.105 MB / 0.545 GB Notification: Performance of Templates: time 0.003291/0.7462, allocations: 0.5867 MB / 0.7344 GB, free: 4.527 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) Environment - environmentSimulation: