Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.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.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.691/1.691, allocations: 288.4 MB / 304.3 MB, free: 8.07 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00102/0.00102, allocations: 172.5 kB / 372.9 MB, free: 10.16 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.594/1.594, allocations: 205.4 MB / 0.6317 GB, free: 9.898 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007526/0.0007527, allocations: 100.9 kB / 0.745 GB, free: 5.824 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003981/0.0003981, allocations: 11.62 kB / 0.8681 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2504, allocations: 115.3 MB / 0.9807 GB, free: 27.4 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8399/1.09, allocations: 138 MB / 1.115 GB, free: 16.3 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002371/1.091, allocations: 68.89 kB / 1.116 GB, free: 16.3 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003487/1.094, allocations: 1.04 MB / 1.117 GB, free: 31.96 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.335e-06/1.094, allocations: 4 kB / 1.117 GB, free: 31.95 MB / 0.698 GB Notification: Performance of Transformations before backend: time 9.548e-06/1.094, allocations: 0 / 1.117 GB, free: 31.95 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000423/1.095, allocations: 365 kB / 1.117 GB, free: 31.58 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/1.095, allocations: 7.875 kB / 1.117 GB, free: 31.58 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.52e-05/1.095, allocations: 9.281 kB / 1.117 GB, free: 31.58 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001399/1.095, allocations: 166.7 kB / 1.117 GB, free: 31.38 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.195e-05/1.095, allocations: 7.469 kB / 1.117 GB, free: 31.38 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.742e-05/1.095, allocations: 7.75 kB / 1.117 GB, free: 31.38 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001906/1.095, allocations: 63.31 kB / 1.117 GB, free: 31.34 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/1.095, allocations: 192 / 1.117 GB, free: 31.34 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.407e-05/1.095, allocations: 6.703 kB / 1.117 GB, free: 31.34 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/1.095, allocations: 0 / 1.117 GB, free: 31.34 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001818/1.095, allocations: 50.42 kB / 1.117 GB, free: 31.34 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004385/1.096, allocations: 281.5 kB / 1.117 GB, free: 31.07 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001429/1.096, allocations: 51.89 kB / 1.118 GB, free: 31.04 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.89e-05/1.096, allocations: 34.03 kB / 1.118 GB, free: 31.03 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.367e-05/1.096, allocations: 1.312 kB / 1.118 GB, free: 31.03 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002111/1.096, allocations: 78.52 kB / 1.118 GB, free: 30.98 MB / 0.698 GB Notification: Performance of pre-optimization done (n=5): time 1.332e-06/1.096, allocations: 0 / 1.118 GB, free: 30.98 MB / 0.698 GB Notification: Performance of matching and sorting (n=5): time 0.0004179/1.097, allocations: 123.3 kB / 1.118 GB, free: 30.94 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.042e-05/1.097, allocations: 55.02 kB / 1.118 GB, free: 30.88 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.224e-05/1.097, allocations: 111.1 kB / 1.118 GB, free: 30.77 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.634e-05/1.097, allocations: 27.05 kB / 1.118 GB, free: 30.74 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 4.597e-05/1.097, allocations: 83.95 kB / 1.118 GB, free: 30.66 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.063e-05/1.097, allocations: 15.8 kB / 1.118 GB, free: 30.65 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.087e-06/1.097, allocations: 0 / 1.118 GB, free: 30.65 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001216/1.097, allocations: 315.1 kB / 1.118 GB, free: 30.34 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.471e-05/1.097, allocations: 33.23 kB / 1.118 GB, free: 30.34 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001004/1.097, allocations: 55.38 kB / 1.118 GB, free: 30.3 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001823/1.097, allocations: 84.86 kB / 1.118 GB, free: 30.26 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/1.098, allocations: 0 / 1.118 GB, free: 30.26 MB / 0.698 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002372/1.098, allocations: 117.1 kB / 1.119 GB, free: 30.22 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/1.098, allocations: 7.719 kB / 1.119 GB, free: 30.22 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/1.098, allocations: 0.625 kB / 1.119 GB, free: 30.22 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/1.098, allocations: 0 / 1.119 GB, free: 30.22 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/1.098, allocations: 18.33 kB / 1.119 GB, free: 30.21 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/1.098, allocations: 3.812 kB / 1.119 GB, free: 30.21 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.637e-05/1.098, allocations: 18.75 kB / 1.119 GB, free: 30.21 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.838e-06/1.098, allocations: 3.25 kB / 1.119 GB, free: 30.21 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 ($PRE.unitDelay1.y,unitDelay1.y,$whenCondition1,unitDelay1.sampleTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 8.419e-05/1.098, allocations: 123.8 kB / 1.119 GB, free: 30.09 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.012e-05/1.098, allocations: 3.938 kB / 1.119 GB, free: 30.09 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002508/1.098, allocations: 95.7 kB / 1.119 GB, free: 30.05 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/1.098, allocations: 10.91 kB / 1.119 GB, free: 30.05 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/1.098, allocations: 0 / 1.119 GB, free: 30.05 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/1.098, allocations: 0 / 1.119 GB, free: 30.05 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003738/1.099, allocations: 359.7 kB / 1.119 GB, free: 29.74 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/1.099, allocations: 0 / 1.119 GB, free: 29.74 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.8e-05/1.099, allocations: 14.92 kB / 1.119 GB, free: 29.74 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/1.099, allocations: 0 / 1.119 GB, free: 29.74 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/1.099, allocations: 3.375 kB / 1.119 GB, free: 29.74 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/1.099, allocations: 7.141 kB / 1.119 GB, free: 29.73 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/1.099, allocations: 0 / 1.119 GB, free: 29.73 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002958/1.099, allocations: 197.5 kB / 1.119 GB, free: 29.59 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.123e-05/1.099, allocations: 81.09 kB / 1.12 GB, free: 29.5 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.71e-05/1.099, allocations: 4 kB / 1.12 GB, free: 29.49 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.089e-05/1.099, allocations: 14.36 kB / 1.12 GB, free: 29.49 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.167e-05/1.099, allocations: 2.625 kB / 1.12 GB, free: 29.49 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.364e-06/1.099, allocations: 7.812 kB / 1.12 GB, free: 29.49 MB / 0.698 GB Notification: Performance of sorting global known variables: time 5.111e-05/1.099, allocations: 90.33 kB / 1.12 GB, free: 29.41 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.1e-07/1.099, allocations: 0 / 1.12 GB, free: 29.41 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002317/1.1, allocations: 15.53 kB / 1.12 GB, free: 29.41 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001584/1.1, allocations: 106.5 kB / 1.12 GB, free: 29.31 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002361/1.1, allocations: 75.52 kB / 1.12 GB, free: 29.31 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/1.1, allocations: 0 / 1.12 GB, free: 29.31 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 9.869e-05/1.1, allocations: 33.08 kB / 1.12 GB, free: 29.3 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002405/1.101, allocations: 9.797 kB / 1.12 GB, free: 29.3 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002994/1.101, allocations: 139.2 kB / 1.12 GB, free: 29.18 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002766/1.101, allocations: 0.6897 MB / 1.121 GB, free: 28.48 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 3.225e-05/1.101, allocations: 2.469 kB / 1.121 GB, free: 28.48 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.117e-05/1.101, allocations: 15.28 kB / 1.121 GB, free: 28.46 MB / 0.698 GB Notification: Performance of SimCode: time 2.2e-07/1.101, allocations: 0 / 1.121 GB, free: 28.46 MB / 0.698 GB Notification: Performance of Templates: time 0.002762/1.104, allocations: 0.6422 MB / 1.121 GB, free: 28.41 MB / 0.698 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)