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.009593/0.009592, allocations: 101.1 kB / 15.73 MB, free: 5.992 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.00217/0.00217, allocations: 198.8 kB / 16.68 MB, free: 5.918 MB / 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.1 MB / 222.5 MB, free: 4.504 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.717/1.717, allocations: 251.7 MB / 0.5094 GB, free: 3.016 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.001426/0.001426, allocations: 67.91 kB / 0.7258 GB, free: 9.031 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.2625, allocations: 104.7 MB / 0.828 GB, free: 224 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002651/0.2652, allocations: 1.383 MB / 0.8294 GB, free: 14.83 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0005298/0.2658, allocations: 228.6 kB / 0.8296 GB, free: 14.6 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.868e-05/0.2659, allocations: 0 / 0.8296 GB, free: 14.6 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.027e-05/0.2659, allocations: 3.938 kB / 0.8296 GB, free: 14.6 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 7.682e-05/0.266, allocations: 3.938 kB / 0.8296 GB, free: 14.59 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002103/0.2662, allocations: 23.91 kB / 0.8296 GB, free: 14.57 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001221/0.2663, allocations: 47.8 kB / 0.8297 GB, free: 14.52 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000139/0.2665, allocations: 19.97 kB / 0.8297 GB, free: 14.5 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 8.654e-05/0.2666, allocations: 19.94 kB / 0.8297 GB, free: 14.48 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 6.152e-05/0.2666, allocations: 19.91 kB / 0.8297 GB, free: 14.46 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.227e-05/0.2667, allocations: 4 kB / 0.8297 GB, free: 14.46 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 1.483e-05/0.2667, allocations: 4 kB / 0.8297 GB, free: 14.46 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.905e-05/0.2667, allocations: 11.94 kB / 0.8298 GB, free: 14.45 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 5.283e-05/0.2668, allocations: 23.86 kB / 0.8298 GB, free: 14.42 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001323/0.2669, allocations: 47.8 kB / 0.8298 GB, free: 14.38 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.2669, allocations: 0 / 0.8298 GB, free: 14.38 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.284e-06/0.2669, allocations: 0 / 0.8298 GB, free: 14.38 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 7.283e-06/0.2669, allocations: 0 / 0.8298 GB, free: 14.38 MB / 0.6544 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.0007166/0.2677, allocations: 367.3 kB / 0.8302 GB, free: 13.96 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.2677, allocations: 8.031 kB / 0.8302 GB, free: 13.96 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.892e-05/0.2678, allocations: 4.938 kB / 0.8302 GB, free: 13.95 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001323/0.2679, allocations: 176.2 kB / 0.8304 GB, free: 13.74 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/0.2679, allocations: 4.375 kB / 0.8304 GB, free: 13.74 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.927e-05/0.2679, allocations: 4.375 kB / 0.8304 GB, free: 13.73 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002335/0.2682, allocations: 62.22 kB / 0.8304 GB, free: 13.67 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.2682, allocations: 8.125 kB / 0.8304 GB, free: 13.66 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.521e-05/0.2682, allocations: 3.938 kB / 0.8304 GB, free: 13.66 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.2682, allocations: 4 kB / 0.8304 GB, free: 13.65 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001802/0.2684, allocations: 35.95 kB / 0.8305 GB, free: 13.62 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005166/0.269, allocations: 276.8 kB / 0.8307 GB, free: 13.3 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001901/0.2692, allocations: 66.55 kB / 0.8308 GB, free: 13.22 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.2693, allocations: 28.89 kB / 0.8308 GB, free: 13.19 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.57e-05/0.2693, allocations: 4 kB / 0.8308 GB, free: 13.19 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002293/0.2695, allocations: 75.38 kB / 0.8309 GB, free: 13.1 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=6): time 3.056e-06/0.2695, allocations: 4 kB / 0.8309 GB, free: 13.1 MB / 0.6544 GB Notification: Performance of matching and sorting (n=6): time 0.0004226/0.27, allocations: 117.5 kB / 0.831 GB, free: 12.98 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.866e-05/0.27, allocations: 55.39 kB / 0.8311 GB, free: 12.91 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.531e-05/0.2701, allocations: 101.9 kB / 0.8312 GB, free: 12.8 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.008e-05/0.2702, allocations: 33.7 kB / 0.8312 GB, free: 12.76 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.766e-05/0.2702, allocations: 84.12 kB / 0.8313 GB, free: 12.68 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.736e-05/0.2702, allocations: 19.75 kB / 0.8313 GB, free: 12.66 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.051e-05/0.2703, allocations: 25.7 kB / 0.8313 GB, free: 12.62 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001365/0.2704, allocations: 318.8 kB / 0.8316 GB, free: 12.3 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001082/0.2706, allocations: 23.97 kB / 0.8317 GB, free: 12.28 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.2707, allocations: 52.22 kB / 0.8317 GB, free: 12.21 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002071/0.2709, allocations: 96.12 kB / 0.8318 GB, free: 12.11 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2709, allocations: 0 / 0.8318 GB, free: 12.11 MB / 0.6544 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002912/0.2712, allocations: 109.5 kB / 0.8319 GB, free: 11.99 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.2712, allocations: 12.11 kB / 0.8319 GB, free: 11.98 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.2712, allocations: 4 kB / 0.8319 GB, free: 11.98 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.2713, allocations: 3.938 kB / 0.8319 GB, free: 11.97 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.2714, allocations: 11.98 kB / 0.8319 GB, free: 11.96 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.2714, allocations: 4 kB / 0.8319 GB, free: 11.96 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.451e-05/0.2715, allocations: 8 kB / 0.8319 GB, free: 11.95 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.807e-06/0.2715, allocations: 8.156 kB / 0.8319 GB, free: 11.94 MB / 0.6544 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 (unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.firstTrigger,$PRE.unitDelay1.firstTrigger,unitDelay1.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.501e-05/0.2716, allocations: 121.8 kB / 0.8321 GB, free: 11.81 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.654e-05/0.2716, allocations: 11.89 kB / 0.8321 GB, free: 11.8 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002715/0.2719, allocations: 102 kB / 0.8322 GB, free: 11.7 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.2719, allocations: 0 / 0.8322 GB, free: 11.7 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.2719, allocations: 0 / 0.8322 GB, free: 11.7 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.2719, allocations: 0 / 0.8322 GB, free: 11.7 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004893/0.2724, allocations: 358.4 kB / 0.8325 GB, free: 11.29 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.2724, allocations: 0 / 0.8325 GB, free: 11.29 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.061e-05/0.2725, allocations: 12 kB / 0.8325 GB, free: 11.28 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.2725, allocations: 0 / 0.8325 GB, free: 11.28 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.2725, allocations: 4.359 kB / 0.8325 GB, free: 11.27 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.489e-06/0.2726, allocations: 4 kB / 0.8325 GB, free: 11.27 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.2726, allocations: 4 kB / 0.8325 GB, free: 11.27 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002851/0.2729, allocations: 187.5 kB / 0.8327 GB, free: 11.07 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 4.008e-05/0.2729, allocations: 88.94 kB / 0.8328 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.252e-05/0.2729, allocations: 4 kB / 0.8328 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.869e-05/0.273, allocations: 8 kB / 0.8328 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.282e-05/0.2731, allocations: 3.984 kB / 0.8328 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.997e-06/0.2731, allocations: 7.938 kB / 0.8328 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 5.366e-05/0.2732, allocations: 91.27 kB / 0.8329 GB, free: 10.85 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2732, allocations: 0 / 0.8329 GB, free: 10.85 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002295/0.2734, allocations: 11.94 kB / 0.8329 GB, free: 10.84 MB / 0.6544 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001347/0.2736, allocations: 103.2 kB / 0.833 GB, free: 10.73 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0002674/0.2738, allocations: 59.89 kB / 0.8331 GB, free: 10.67 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2738, allocations: 320 / 0.8331 GB, free: 10.67 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001198/0.274, allocations: 35.97 kB / 0.8331 GB, free: 10.63 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000277/0.2742, allocations: 15.14 kB / 0.8331 GB, free: 10.62 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000341/0.2746, allocations: 133.5 kB / 0.8333 GB, free: 10.46 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002686/0.2749, allocations: 0.6844 MB / 0.8339 GB, free: 9.75 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 3.102e-05/0.2749, allocations: 4 kB / 0.8339 GB, free: 9.746 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.145e-05/0.275, allocations: 15.44 kB / 0.8339 GB, free: 9.73 MB / 0.6544 GB Notification: Performance of SimCode: time 2e-07/0.275, allocations: 0 / 0.8339 GB, free: 9.73 MB / 0.6544 GB Notification: Performance of Templates: time 0.003143/0.2781, allocations: 0.6612 MB / 0.8346 GB, free: 9.074 MB / 0.6544 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.makefile (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)