Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.721/1.721, allocations: 292.6 MB / 307.5 MB, free: 5.223 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.00123/0.00123, allocations: 185 kB / 377.1 MB, free: 1.539 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.596/1.596, allocations: 205.4 MB / 0.6367 GB, free: 8.613 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008944/0.0008946, allocations: 87.11 kB / 0.751 GB, free: 63.11 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003741/0.0003741, allocations: 12 kB / 0.8748 GB, free: 11.19 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2985/0.2989, allocations: 116.3 MB / 0.9884 GB, free: 6.738 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8757/1.175, allocations: 138.9 MB / 1.124 GB, free: 35.74 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002855/1.175, allocations: 70.64 kB / 1.124 GB, free: 35.68 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.003219/1.178, allocations: 1.028 MB / 1.125 GB, free: 34.88 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.465e-06/1.178, allocations: 2.688 kB / 1.125 GB, free: 34.88 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.182e-05/1.178, allocations: 4 kB / 1.125 GB, free: 34.88 MB / 0.7292 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.0005058/1.179, allocations: 368 kB / 1.125 GB, free: 34.49 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.65e-05/1.179, allocations: 19.14 kB / 1.125 GB, free: 34.47 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.155e-05/1.179, allocations: 2.062 kB / 1.125 GB, free: 34.47 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001336/1.179, allocations: 175.3 kB / 1.126 GB, free: 34.27 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/1.179, allocations: 1.109 kB / 1.126 GB, free: 34.27 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.744e-05/1.179, allocations: 4 kB / 1.126 GB, free: 34.26 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002304/1.179, allocations: 65.34 kB / 1.126 GB, free: 34.2 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/1.179, allocations: 3.609 kB / 1.126 GB, free: 34.2 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.345e-05/1.179, allocations: 4.812 kB / 1.126 GB, free: 34.2 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/1.179, allocations: 3.938 kB / 1.126 GB, free: 34.2 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001882/1.18, allocations: 46.55 kB / 1.126 GB, free: 34.16 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005892/1.18, allocations: 279.6 kB / 1.126 GB, free: 33.86 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001466/1.18, allocations: 51.88 kB / 1.126 GB, free: 33.81 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.559e-05/1.18, allocations: 5.312 kB / 1.126 GB, free: 33.8 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002404/1.181, allocations: 74.47 kB / 1.126 GB, free: 33.73 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=5): time 1.864e-06/1.181, allocations: 0 / 1.126 GB, free: 33.73 MB / 0.7292 GB Notification: Performance of matching and sorting (n=5): time 0.0004441/1.181, allocations: 127.8 kB / 1.126 GB, free: 33.62 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.707e-05/1.181, allocations: 55.41 kB / 1.126 GB, free: 33.55 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.045e-05/1.181, allocations: 101.2 kB / 1.126 GB, free: 33.45 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.837e-05/1.181, allocations: 29.7 kB / 1.126 GB, free: 33.41 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 5.829e-05/1.181, allocations: 89.06 kB / 1.127 GB, free: 33.32 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.151e-05/1.181, allocations: 11.81 kB / 1.127 GB, free: 33.31 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.669e-06/1.181, allocations: 4 kB / 1.127 GB, free: 33.31 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 9.923e-05/1.182, allocations: 322.3 kB / 1.127 GB, free: 32.99 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.584e-05/1.182, allocations: 27.08 kB / 1.127 GB, free: 32.97 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001147/1.182, allocations: 54.92 kB / 1.127 GB, free: 32.91 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001061/1.182, allocations: 31.36 kB / 1.127 GB, free: 32.88 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/1.182, allocations: 0 / 1.127 GB, free: 32.88 MB / 0.7292 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002625/1.182, allocations: 111.5 kB / 1.127 GB, free: 32.78 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/1.182, allocations: 4 kB / 1.127 GB, free: 32.78 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/1.182, allocations: 0.5625 kB / 1.127 GB, free: 32.78 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/1.182, allocations: 4 kB / 1.127 GB, free: 32.77 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/1.182, allocations: 19.45 kB / 1.127 GB, free: 32.76 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.423e-05/1.182, allocations: 9.047 kB / 1.127 GB, free: 32.75 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.322e-05/1.182, allocations: 14.08 kB / 1.127 GB, free: 32.74 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.393e-05/1.182, allocations: 0.8906 kB / 1.127 GB, free: 32.74 MB / 0.7292 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.895e-05/1.183, allocations: 118.7 kB / 1.127 GB, free: 32.62 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.908e-05/1.183, allocations: 11.38 kB / 1.127 GB, free: 32.61 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002785/1.183, allocations: 100.2 kB / 1.127 GB, free: 32.52 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/1.183, allocations: 0 / 1.127 GB, free: 32.52 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/1.183, allocations: 0 / 1.127 GB, free: 32.52 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/1.183, allocations: 4.562 kB / 1.127 GB, free: 32.52 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003897/1.183, allocations: 352.9 kB / 1.128 GB, free: 32.14 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/1.183, allocations: 1.172 kB / 1.128 GB, free: 32.14 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.861e-05/1.183, allocations: 15.33 kB / 1.128 GB, free: 32.13 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/1.183, allocations: 3.938 kB / 1.128 GB, free: 32.13 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/1.183, allocations: 1.188 kB / 1.128 GB, free: 32.13 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/1.183, allocations: 0 / 1.128 GB, free: 32.13 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/1.183, allocations: 0 / 1.128 GB, free: 32.13 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002397/1.184, allocations: 200.8 kB / 1.128 GB, free: 31.93 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.71e-05/1.184, allocations: 84.3 kB / 1.128 GB, free: 31.83 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.153e-05/1.184, allocations: 4.5 kB / 1.128 GB, free: 31.83 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.896e-05/1.184, allocations: 11.38 kB / 1.128 GB, free: 31.82 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.417e-05/1.184, allocations: 4.938 kB / 1.128 GB, free: 31.82 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.973e-06/1.184, allocations: 0.5 kB / 1.128 GB, free: 31.82 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 4.159e-05/1.184, allocations: 91.14 kB / 1.128 GB, free: 31.73 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.31e-07/1.184, allocations: 0 / 1.128 GB, free: 31.73 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002492/1.184, allocations: 8 kB / 1.128 GB, free: 31.72 MB / 0.7292 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.0001867/1.184, allocations: 119.7 kB / 1.128 GB, free: 31.6 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002431/1.185, allocations: 62.3 kB / 1.128 GB, free: 31.55 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/1.185, allocations: 0 / 1.128 GB, free: 31.55 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001065/1.185, allocations: 38.91 kB / 1.128 GB, free: 31.52 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001931/1.185, allocations: 12.55 kB / 1.128 GB, free: 31.51 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003246/1.185, allocations: 141.5 kB / 1.128 GB, free: 31.36 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001681/1.186, allocations: 0.6876 MB / 1.129 GB, free: 30.65 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 3.478e-05/1.186, allocations: 8 kB / 1.129 GB, free: 30.64 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.697e-05/1.186, allocations: 7.438 kB / 1.129 GB, free: 30.64 MB / 0.7292 GB Notification: Performance of SimCode: time 6.61e-07/1.186, allocations: 0 / 1.129 GB, free: 30.64 MB / 0.7292 GB Notification: Performance of Templates: time 0.002911/1.189, allocations: 0.6235 MB / 1.13 GB, free: 30.29 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1)