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.761/1.761, allocations: 289.7 MB / 302.3 MB, free: 2.156 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.001181/0.001181, allocations: 182.6 kB / 371.6 MB, free: 3.379 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.795/1.795, allocations: 205.1 MB / 0.6309 GB, free: 11.74 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.0008768/0.0008766, allocations: 93.7 kB / 0.745 GB, free: 54.43 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.1e-05/4.103e-05, allocations: 4 kB / 0.8663 GB, free: 15.04 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2915/0.2916, allocations: 116.3 MB / 0.9798 GB, free: 10.58 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.797/1.089, allocations: 138.8 MB / 1.115 GB, free: 44.68 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002598/1.089, allocations: 73.8 kB / 1.115 GB, free: 44.65 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.003031/1.092, allocations: 1.03 MB / 1.116 GB, free: 43.95 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.134e-06/1.092, allocations: 0 / 1.116 GB, free: 43.95 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 7.414e-06/1.092, allocations: 0 / 1.116 GB, free: 43.95 MB / 0.7448 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.0003487/1.092, allocations: 360.2 kB / 1.117 GB, free: 43.58 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/1.093, allocations: 8.031 kB / 1.117 GB, free: 43.57 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.178e-05/1.093, allocations: 9.281 kB / 1.117 GB, free: 43.57 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.473e-05/1.093, allocations: 166.4 kB / 1.117 GB, free: 43.37 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/1.093, allocations: 8.562 kB / 1.117 GB, free: 43.36 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.524e-05/1.093, allocations: 4.266 kB / 1.117 GB, free: 43.36 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001423/1.093, allocations: 49.7 kB / 1.117 GB, free: 43.32 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/1.093, allocations: 0.6094 kB / 1.117 GB, free: 43.32 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.676e-05/1.093, allocations: 3.562 kB / 1.117 GB, free: 43.32 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/1.093, allocations: 3.172 kB / 1.117 GB, free: 43.32 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.01e-05/1.093, allocations: 11.38 kB / 1.117 GB, free: 43.31 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005004/1.094, allocations: 277.9 kB / 1.117 GB, free: 43.02 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 7.575e-05/1.094, allocations: 44.47 kB / 1.117 GB, free: 42.98 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.322e-05/1.094, allocations: 16.73 kB / 1.117 GB, free: 42.97 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 3.242e-05/1.094, allocations: 4.5 kB / 1.117 GB, free: 42.96 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000131/1.094, allocations: 54.88 kB / 1.117 GB, free: 42.91 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=5): time 1.163e-06/1.094, allocations: 0 / 1.117 GB, free: 42.91 MB / 0.7448 GB Notification: Performance of matching and sorting (n=5): time 0.0002408/1.094, allocations: 64.92 kB / 1.118 GB, free: 42.85 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.612e-05/1.094, allocations: 55.41 kB / 1.118 GB, free: 42.79 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.576e-05/1.094, allocations: 103.9 kB / 1.118 GB, free: 42.69 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.493e-05/1.094, allocations: 25.7 kB / 1.118 GB, free: 42.66 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 4.414e-05/1.094, allocations: 84.08 kB / 1.118 GB, free: 42.57 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.019e-05/1.094, allocations: 19.17 kB / 1.118 GB, free: 42.56 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.519e-06/1.094, allocations: 0 / 1.118 GB, free: 42.56 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 7.265e-05/1.094, allocations: 318.7 kB / 1.118 GB, free: 42.24 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.798e-05/1.094, allocations: 11.88 kB / 1.118 GB, free: 42.23 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.491e-05/1.095, allocations: 38.72 kB / 1.118 GB, free: 42.19 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.765e-05/1.095, allocations: 11.81 kB / 1.118 GB, free: 42.18 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/1.095, allocations: 4 kB / 1.118 GB, free: 42.18 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001143/1.095, allocations: 80.41 kB / 1.118 GB, free: 42.11 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/1.095, allocations: 11.38 kB / 1.118 GB, free: 42.1 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/1.095, allocations: 2.453 kB / 1.118 GB, free: 42.1 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/1.095, allocations: 4.609 kB / 1.118 GB, free: 42.1 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001212/1.095, allocations: 15.52 kB / 1.118 GB, free: 42.09 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/1.095, allocations: 0 / 1.118 GB, free: 42.09 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.752e-05/1.095, allocations: 11.47 kB / 1.118 GB, free: 42.08 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.126e-05/1.095, allocations: 0 / 1.118 GB, free: 42.08 MB / 0.7448 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 () * 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 6.135e-05/1.095, allocations: 123.1 kB / 1.118 GB, free: 41.96 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.032e-05/1.095, allocations: 3.062 kB / 1.118 GB, free: 41.96 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001358/1.095, allocations: 69.03 kB / 1.118 GB, free: 41.9 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/1.095, allocations: 5.125 kB / 1.118 GB, free: 41.9 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/1.095, allocations: 0.5 kB / 1.118 GB, free: 41.9 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/1.095, allocations: 0 / 1.118 GB, free: 41.9 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002107/1.095, allocations: 312.7 kB / 1.119 GB, free: 41.57 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/1.096, allocations: 7.375 kB / 1.119 GB, free: 41.56 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.488e-05/1.096, allocations: 11.94 kB / 1.119 GB, free: 41.55 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/1.096, allocations: 4 kB / 1.119 GB, free: 41.55 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/1.096, allocations: 3.938 kB / 1.119 GB, free: 41.55 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/1.096, allocations: 0 / 1.119 GB, free: 41.55 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/1.096, allocations: 0.6562 kB / 1.119 GB, free: 41.55 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001005/1.096, allocations: 159.4 kB / 1.119 GB, free: 41.39 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 2.514e-05/1.096, allocations: 88.89 kB / 1.119 GB, free: 41.29 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.645e-05/1.096, allocations: 0 / 1.119 GB, free: 41.29 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.457e-05/1.096, allocations: 11.42 kB / 1.119 GB, free: 41.28 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.758e-05/1.096, allocations: 4.641 kB / 1.119 GB, free: 41.28 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.564e-06/1.096, allocations: 4 kB / 1.119 GB, free: 41.28 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 2.65e-05/1.096, allocations: 84.52 kB / 1.119 GB, free: 41.2 MB / 0.7448 GB Notification: Performance of sort global known variables: time 3e-07/1.096, allocations: 0 / 1.119 GB, free: 41.2 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002464/1.096, allocations: 15.94 kB / 1.119 GB, free: 41.18 MB / 0.7448 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) * 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.0001498/1.096, allocations: 123.1 kB / 1.119 GB, free: 41.06 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0001031/1.096, allocations: 35.75 kB / 1.119 GB, free: 41.04 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/1.097, allocations: 0 / 1.119 GB, free: 41.04 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 3.768e-05/1.097, allocations: 18.88 kB / 1.119 GB, free: 41.03 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001742/1.097, allocations: 6.141 kB / 1.119 GB, free: 41.02 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002219/1.097, allocations: 76.2 kB / 1.119 GB, free: 40.94 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001229/1.097, allocations: 0.6879 MB / 1.12 GB, free: 40.23 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 3.11e-05/1.097, allocations: 10.67 kB / 1.12 GB, free: 40.23 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.339e-05/1.097, allocations: 11.38 kB / 1.12 GB, free: 40.22 MB / 0.7448 GB Notification: Performance of SimCode: time 6.42e-07/1.097, allocations: 0.5625 kB / 1.12 GB, free: 40.22 MB / 0.7448 GB Notification: Performance of Templates: time 0.002709/1.1, allocations: 0.634 MB / 1.121 GB, free: 39.88 MB / 0.7448 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)