Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.57/2.57, allocations: 287.5 MB / 303.2 MB, free: 8.324 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.001306/0.001305, allocations: 184.9 kB / 371.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.097/2.097, allocations: 205.4 MB / 0.6305 GB, free: 10.53 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.0008757/0.0008753, allocations: 88.72 kB / 0.7438 GB, free: 6.539 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007689/0.0007693, allocations: 11.5 kB / 0.8667 GB, free: 141 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.241/0.2418, allocations: 115.3 MB / 0.9793 GB, free: 28.18 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9685/1.21, allocations: 137.8 MB / 1.114 GB, free: 16.03 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/1.211, allocations: 71.56 kB / 1.114 GB, free: 16.03 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.004636/1.215, allocations: 1.048 MB / 1.115 GB, free: 31.68 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.194e-06/1.215, allocations: 0 / 1.115 GB, free: 31.68 MB / 0.698 GB Notification: Performance of Transformations before backend: time 8.286e-06/1.215, allocations: 0 / 1.115 GB, free: 31.68 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.0005511/1.216, allocations: 362.2 kB / 1.115 GB, free: 31.32 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/1.216, allocations: 11.72 kB / 1.115 GB, free: 31.32 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.613e-05/1.216, allocations: 6.391 kB / 1.115 GB, free: 31.31 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001427/1.216, allocations: 169.9 kB / 1.115 GB, free: 31.11 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/1.216, allocations: 384 / 1.115 GB, free: 31.11 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.12e-05/1.216, allocations: 4.219 kB / 1.115 GB, free: 31.11 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002581/1.217, allocations: 63.11 kB / 1.116 GB, free: 31.08 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/1.217, allocations: 192 / 1.116 GB, free: 31.08 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/1.217, allocations: 3.938 kB / 1.116 GB, free: 31.08 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/1.217, allocations: 9.141 kB / 1.116 GB, free: 31.07 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002823/1.217, allocations: 52.22 kB / 1.116 GB, free: 31.07 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000533/1.217, allocations: 269.8 kB / 1.116 GB, free: 30.81 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000193/1.218, allocations: 55.88 kB / 1.116 GB, free: 30.77 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001483/1.218, allocations: 35.84 kB / 1.116 GB, free: 30.77 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.854e-05/1.218, allocations: 0 / 1.116 GB, free: 30.77 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002521/1.218, allocations: 82.41 kB / 1.116 GB, free: 30.71 MB / 0.698 GB Notification: Performance of pre-optimization done (n=5): time 2.895e-06/1.218, allocations: 3.984 kB / 1.116 GB, free: 30.71 MB / 0.698 GB Notification: Performance of matching and sorting (n=5): time 0.0005646/1.219, allocations: 123.8 kB / 1.116 GB, free: 30.67 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.656e-05/1.219, allocations: 55.28 kB / 1.116 GB, free: 30.61 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.346e-05/1.219, allocations: 108.4 kB / 1.116 GB, free: 30.5 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.035e-05/1.219, allocations: 25.7 kB / 1.116 GB, free: 30.47 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.961e-05/1.219, allocations: 91.06 kB / 1.116 GB, free: 30.39 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.104e-05/1.219, allocations: 19.23 kB / 1.116 GB, free: 30.38 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.202e-06/1.219, allocations: 4 kB / 1.116 GB, free: 30.38 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001296/1.219, allocations: 317.7 kB / 1.117 GB, free: 30.06 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001512/1.219, allocations: 25.05 kB / 1.117 GB, free: 30.06 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001642/1.219, allocations: 56.78 kB / 1.117 GB, free: 30.03 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003036/1.22, allocations: 92.72 kB / 1.117 GB, free: 29.98 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/1.22, allocations: 0 / 1.117 GB, free: 29.98 MB / 0.698 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0004139/1.22, allocations: 105.8 kB / 1.117 GB, free: 29.95 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/1.22, allocations: 7.938 kB / 1.117 GB, free: 29.95 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/1.22, allocations: 3.906 kB / 1.117 GB, free: 29.95 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/1.22, allocations: 0 / 1.117 GB, free: 29.95 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001668/1.22, allocations: 17.77 kB / 1.117 GB, free: 29.95 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/1.22, allocations: 7.844 kB / 1.117 GB, free: 29.94 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001112/1.221, allocations: 10.77 kB / 1.117 GB, free: 29.94 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.307e-05/1.221, allocations: 3.812 kB / 1.117 GB, free: 29.94 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 0.0001099/1.221, allocations: 125.4 kB / 1.117 GB, free: 29.81 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.541e-05/1.221, allocations: 3.812 kB / 1.117 GB, free: 29.81 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003942/1.221, allocations: 95.17 kB / 1.117 GB, free: 29.78 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.359e-06/1.221, allocations: 0 / 1.117 GB, free: 29.78 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/1.221, allocations: 3.844 kB / 1.117 GB, free: 29.78 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/1.221, allocations: 4 kB / 1.117 GB, free: 29.78 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005885/1.222, allocations: 356.8 kB / 1.118 GB, free: 29.47 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.776e-06/1.222, allocations: 0 / 1.118 GB, free: 29.47 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001033/1.222, allocations: 18.61 kB / 1.118 GB, free: 29.47 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/1.222, allocations: 0 / 1.118 GB, free: 29.47 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/1.222, allocations: 3.938 kB / 1.118 GB, free: 29.46 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.275e-06/1.222, allocations: 0 / 1.118 GB, free: 29.46 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/1.222, allocations: 0 / 1.118 GB, free: 29.46 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003957/1.222, allocations: 206.3 kB / 1.118 GB, free: 29.32 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.307e-05/1.222, allocations: 77.11 kB / 1.118 GB, free: 29.22 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.336e-05/1.223, allocations: 3.562 kB / 1.118 GB, free: 29.22 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001345/1.223, allocations: 10.56 kB / 1.118 GB, free: 29.22 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.278e-05/1.223, allocations: 2.953 kB / 1.118 GB, free: 29.22 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/1.223, allocations: 7.844 kB / 1.118 GB, free: 29.22 MB / 0.698 GB Notification: Performance of sorting global known variables: time 6.254e-05/1.223, allocations: 86.22 kB / 1.118 GB, free: 29.14 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.71e-07/1.223, allocations: 4 kB / 1.118 GB, free: 29.14 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003455/1.223, allocations: 15.53 kB / 1.118 GB, free: 29.14 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.0001716/1.223, allocations: 109.2 kB / 1.118 GB, free: 29.05 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0003763/1.224, allocations: 70.59 kB / 1.118 GB, free: 29.04 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/1.224, allocations: 0 / 1.118 GB, free: 29.04 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001697/1.224, allocations: 31.45 kB / 1.118 GB, free: 29.04 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003717/1.224, allocations: 6.438 kB / 1.118 GB, free: 29.04 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000385/1.225, allocations: 147.8 kB / 1.118 GB, free: 28.91 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000302/1.225, allocations: 0.6832 MB / 1.119 GB, free: 28.21 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 4.679e-05/1.225, allocations: 6.75 kB / 1.119 GB, free: 28.21 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.068e-05/1.225, allocations: 11.38 kB / 1.119 GB, free: 28.2 MB / 0.698 GB Notification: Performance of SimCode: time 8.62e-07/1.225, allocations: 0 / 1.119 GB, free: 28.2 MB / 0.698 GB Notification: Performance of Templates: time 0.003677/1.229, allocations: 0.637 MB / 1.12 GB, free: 28.14 MB / 0.698 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)