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.UnitDelay.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.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001115/0.001115, allocations: 91.12 kB / 15.06 MB, free: 1.078 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.0011/0.0011, allocations: 172.7 kB / 15.95 MB, free: 192 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.683/1.683, allocations: 205.4 MB / 222.1 MB, free: 5.637 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.568/1.568, allocations: 252 MB / 0.5102 GB, free: 4.77 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.00055/0.0005502, allocations: 16 kB / 0.6243 GB, free: 1.086 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6344/0.635, allocations: 106.3 MB / 0.7281 GB, free: 11.42 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001773/0.6368, allocations: 1.097 MB / 0.7292 GB, free: 10.32 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0005376/0.6373, allocations: 224.3 kB / 0.7294 GB, free: 10.09 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.365e-05/0.6374, allocations: 0 / 0.7294 GB, free: 10.09 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.786e-05/0.6374, allocations: 0 / 0.7294 GB, free: 10.09 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 7.896e-05/0.6375, allocations: 7.938 kB / 0.7294 GB, free: 10.09 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001846/0.6377, allocations: 15.92 kB / 0.7294 GB, free: 10.07 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 8.936e-05/0.6378, allocations: 43.91 kB / 0.7295 GB, free: 10.03 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001036/0.6379, allocations: 11.98 kB / 0.7295 GB, free: 10.02 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 6.721e-05/0.638, allocations: 15.86 kB / 0.7295 GB, free: 10 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.763e-05/0.6381, allocations: 19.92 kB / 0.7295 GB, free: 9.98 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.902e-05/0.6381, allocations: 0 / 0.7295 GB, free: 9.98 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.213e-05/0.6381, allocations: 4 kB / 0.7295 GB, free: 9.977 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 2.02e-05/0.6381, allocations: 11.92 kB / 0.7295 GB, free: 9.965 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 4.338e-05/0.6382, allocations: 29.7 kB / 0.7296 GB, free: 9.93 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 7.259e-05/0.6382, allocations: 35.92 kB / 0.7296 GB, free: 9.895 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.6383, allocations: 4 kB / 0.7296 GB, free: 9.891 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.244e-06/0.6383, allocations: 0 / 0.7296 GB, free: 9.891 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.139e-06/0.6383, allocations: 0 / 0.7296 GB, free: 9.891 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000609/0.6389, allocations: 365.1 kB / 0.73 GB, free: 9.488 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.639, allocations: 8.031 kB / 0.73 GB, free: 9.48 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.169e-05/0.639, allocations: 8 kB / 0.73 GB, free: 9.473 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001334/0.6391, allocations: 175 kB / 0.7301 GB, free: 9.262 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.6392, allocations: 4 kB / 0.7301 GB, free: 9.258 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.484e-05/0.6392, allocations: 4 kB / 0.7301 GB, free: 9.254 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000207/0.6394, allocations: 65.61 kB / 0.7302 GB, free: 9.184 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.6394, allocations: 0 / 0.7302 GB, free: 9.184 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.111e-05/0.6394, allocations: 3.984 kB / 0.7302 GB, free: 9.18 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.6395, allocations: 4 kB / 0.7302 GB, free: 9.176 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001737/0.6396, allocations: 47.97 kB / 0.7303 GB, free: 9.129 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004568/0.6401, allocations: 288.8 kB / 0.7305 GB, free: 8.797 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001667/0.6403, allocations: 66.55 kB / 0.7306 GB, free: 8.723 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.6404, allocations: 28.91 kB / 0.7306 GB, free: 8.691 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.624e-05/0.6404, allocations: 16.05 kB / 0.7306 GB, free: 8.676 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002041/0.6406, allocations: 71.39 kB / 0.7307 GB, free: 8.594 MB / 0.545 GB Notification: Performance of pre-optimization done (n=6): time 1.563e-06/0.6407, allocations: 0 / 0.7307 GB, free: 8.594 MB / 0.545 GB Notification: Performance of matching and sorting (n=6): time 0.0004044/0.6411, allocations: 133.6 kB / 0.7308 GB, free: 8.457 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.791e-05/0.6411, allocations: 55.41 kB / 0.7309 GB, free: 8.391 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.845e-05/0.6412, allocations: 113.7 kB / 0.731 GB, free: 8.27 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.497e-05/0.6413, allocations: 25.7 kB / 0.731 GB, free: 8.238 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.525e-05/0.6413, allocations: 92.08 kB / 0.7311 GB, free: 8.145 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.242e-05/0.6414, allocations: 19.8 kB / 0.7311 GB, free: 8.125 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.729e-06/0.6414, allocations: 3.938 kB / 0.7311 GB, free: 8.121 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001242/0.6415, allocations: 318.8 kB / 0.7314 GB, free: 7.801 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.719e-05/0.6416, allocations: 27.97 kB / 0.7315 GB, free: 7.773 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001165/0.6417, allocations: 72.2 kB / 0.7315 GB, free: 7.688 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001024/0.6418, allocations: 35.92 kB / 0.7316 GB, free: 7.652 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.6418, allocations: 0 / 0.7316 GB, free: 7.652 MB / 0.545 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002396/0.6421, allocations: 113.6 kB / 0.7317 GB, free: 7.535 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.6421, allocations: 4 kB / 0.7317 GB, free: 7.531 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.6421, allocations: 4 kB / 0.7317 GB, free: 7.527 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.6421, allocations: 4.156 kB / 0.7317 GB, free: 7.523 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.6423, allocations: 23.92 kB / 0.7317 GB, free: 7.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.6423, allocations: 4 kB / 0.7317 GB, free: 7.496 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.214e-05/0.6424, allocations: 15.84 kB / 0.7317 GB, free: 7.48 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.332e-06/0.6424, allocations: 4 kB / 0.7317 GB, free: 7.477 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.unitDelay1.y,unitDelay1.y,$PRE.unitDelay1.firstTrigger,unitDelay1.firstTrigger,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.197e-05/0.6425, allocations: 113.8 kB / 0.7318 GB, free: 7.355 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.078e-05/0.6425, allocations: 4 kB / 0.7319 GB, free: 7.352 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002667/0.6428, allocations: 117.9 kB / 0.732 GB, free: 7.23 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.6428, allocations: 4 kB / 0.732 GB, free: 7.227 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.6428, allocations: 3.984 kB / 0.732 GB, free: 7.223 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.6428, allocations: 0 / 0.732 GB, free: 7.223 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004249/0.6432, allocations: 370.3 kB / 0.7323 GB, free: 6.805 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.6432, allocations: 0 / 0.7323 GB, free: 6.805 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.43e-05/0.6433, allocations: 12.38 kB / 0.7323 GB, free: 6.793 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.6433, allocations: 0 / 0.7323 GB, free: 6.793 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.506e-06/0.6433, allocations: 4 kB / 0.7323 GB, free: 6.789 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.648e-06/0.6433, allocations: 7.984 kB / 0.7323 GB, free: 6.781 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.6433, allocations: 3.953 kB / 0.7324 GB, free: 6.777 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002636/0.6436, allocations: 199.5 kB / 0.7325 GB, free: 6.566 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.577e-05/0.6436, allocations: 81.02 kB / 0.7326 GB, free: 6.469 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.904e-05/0.6437, allocations: 3.984 kB / 0.7326 GB, free: 6.465 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.891e-05/0.6438, allocations: 8 kB / 0.7326 GB, free: 6.457 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.338e-05/0.6438, allocations: 7.984 kB / 0.7326 GB, free: 6.449 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.335e-06/0.6438, allocations: 3.953 kB / 0.7326 GB, free: 6.445 MB / 0.545 GB Notification: Performance of sorting global known variables: time 6.356e-05/0.6439, allocations: 95.2 kB / 0.7327 GB, free: 6.352 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6439, allocations: 0 / 0.7327 GB, free: 6.352 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002351/0.6442, allocations: 12 kB / 0.7327 GB, free: 6.34 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 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y,unitDelay1.firstTrigger) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0001555/0.6443, allocations: 103.4 kB / 0.7328 GB, free: 6.23 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002573/0.6446, allocations: 76.14 kB / 0.7329 GB, free: 6.156 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.6446, allocations: 0 / 0.7329 GB, free: 6.156 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001132/0.6447, allocations: 39.91 kB / 0.733 GB, free: 6.117 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002639/0.645, allocations: 8 kB / 0.733 GB, free: 6.109 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003454/0.6453, allocations: 140.7 kB / 0.7331 GB, free: 5.938 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002776/0.6456, allocations: 0.6887 MB / 0.7338 GB, free: 5.223 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.124e-05/0.6457, allocations: 192 / 0.7338 GB, free: 5.223 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.563e-05/0.6457, allocations: 11.44 kB / 0.7338 GB, free: 5.211 MB / 0.545 GB Notification: Performance of SimCode: time 1.412e-06/0.6457, allocations: 0 / 0.7338 GB, free: 5.211 MB / 0.545 GB Notification: Performance of Templates: time 0.002935/0.6486, allocations: 0.5594 MB / 0.7343 GB, free: 4.66 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) Environment - environmentSimulation: