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/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 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001664/0.001664, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002375/0.002375, allocations: 195.7 kB / 16.14 MB, free: 6.73 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.531/1.531, allocations: 205.1 MB / 222 MB, free: 4.73 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.758/1.758, allocations: 292.2 MB / 0.5484 GB, free: 13.67 MB / 462.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.001435/0.001435, allocations: 66.59 kB / 0.6708 GB, free: 26.3 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2635, allocations: 114.6 MB / 0.7827 GB, free: 14.02 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.002292/0.2658, allocations: 0.727 MB / 0.7834 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001541/0.2674, allocations: 1.044 MB / 0.7844 GB, free: 12.23 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.581e-05/0.2674, allocations: 0 / 0.7844 GB, free: 12.23 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.508e-05/0.2675, allocations: 3.984 kB / 0.7844 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.37e-05/0.2676, allocations: 11.92 kB / 0.7844 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002928/0.2679, allocations: 31.92 kB / 0.7845 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.969e-05/0.268, allocations: 39.86 kB / 0.7845 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.2681, allocations: 15.97 kB / 0.7845 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.12e-05/0.2682, allocations: 8 kB / 0.7845 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.322e-05/0.2682, allocations: 19.91 kB / 0.7845 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.538e-05/0.2683, allocations: 4 kB / 0.7845 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.498e-05/0.2683, allocations: 12 kB / 0.7846 GB, free: 12.08 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.201e-05/0.2684, allocations: 15.92 kB / 0.7846 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.106e-05/0.2684, allocations: 15.92 kB / 0.7846 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001293/0.2686, allocations: 47.86 kB / 0.7846 GB, free: 12 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 9.608e-06/0.2686, allocations: 3.938 kB / 0.7846 GB, free: 12 MB / 0.6075 GB Notification: Performance of FrontEnd: time 7.21e-07/0.2686, allocations: 3.938 kB / 0.7846 GB, free: 12 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 3.898e-06/0.2686, allocations: 0 / 0.7846 GB, free: 12 MB / 0.6075 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.0005432/0.2691, allocations: 359.7 kB / 0.785 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.2692, allocations: 12.03 kB / 0.785 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.192e-05/0.2692, allocations: 4.844 kB / 0.785 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001344/0.2694, allocations: 184.3 kB / 0.7852 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.2694, allocations: 384 / 0.7852 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.56e-05/0.2694, allocations: 8.375 kB / 0.7852 GB, free: 11.35 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001977/0.2696, allocations: 58.22 kB / 0.7852 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.2696, allocations: 192 / 0.7852 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.2697, allocations: 3.938 kB / 0.7852 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.2697, allocations: 0 / 0.7852 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001812/0.2699, allocations: 51.89 kB / 0.7853 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004808/0.2703, allocations: 276.9 kB / 0.7856 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001481/0.2705, allocations: 46.48 kB / 0.7856 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.172e-05/0.2706, allocations: 24.94 kB / 0.7856 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.114e-05/0.2706, allocations: 8 kB / 0.7856 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002174/0.2709, allocations: 75.31 kB / 0.7857 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=5): time 1.373e-06/0.2709, allocations: 0 / 0.7857 GB, free: 10.74 MB / 0.6075 GB Notification: Performance of matching and sorting (n=5): time 0.0003818/0.2713, allocations: 101.6 kB / 0.7858 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/0.2713, allocations: 51.41 kB / 0.7858 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.886e-05/0.2714, allocations: 109.8 kB / 0.786 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.561e-05/0.2714, allocations: 29.7 kB / 0.786 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.973e-05/0.2715, allocations: 92.03 kB / 0.7861 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.717e-05/0.2715, allocations: 7.906 kB / 0.7861 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.008e-05/0.2715, allocations: 21.72 kB / 0.7861 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.636e-05/0.2716, allocations: 314.8 kB / 0.7864 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.793e-05/0.2717, allocations: 19.98 kB / 0.7864 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001095/0.2719, allocations: 59.34 kB / 0.7865 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001963/0.2721, allocations: 75.33 kB / 0.7865 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2721, allocations: 3.938 kB / 0.7865 GB, free: 9.793 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002515/0.2723, allocations: 97.5 kB / 0.7866 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.2724, allocations: 8 kB / 0.7866 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.2724, allocations: 0 / 0.7866 GB, free: 9.684 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.2724, allocations: 3.938 kB / 0.7867 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001084/0.2725, allocations: 16.11 kB / 0.7867 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.903e-06/0.2725, allocations: 4 kB / 0.7867 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.008e-05/0.2726, allocations: 15.92 kB / 0.7867 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.062e-05/0.2726, allocations: 4 kB / 0.7867 GB, free: 9.641 MB / 0.6075 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 (unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.2727, allocations: 122.4 kB / 0.7868 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.244e-05/0.2727, allocations: 3.906 kB / 0.7868 GB, free: 9.508 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002587/0.273, allocations: 89.61 kB / 0.7869 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.12e-05/0.273, allocations: 8 kB / 0.7869 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.273, allocations: 0 / 0.7869 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.273, allocations: 0 / 0.7869 GB, free: 9.402 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004153/0.2735, allocations: 338.8 kB / 0.7872 GB, free: 9.016 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.2735, allocations: 4.047 kB / 0.7872 GB, free: 9.012 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.945e-05/0.2735, allocations: 12 kB / 0.7872 GB, free: 9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.2736, allocations: 0 / 0.7872 GB, free: 9 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.417e-06/0.2736, allocations: 4 kB / 0.7872 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.2736, allocations: 0 / 0.7872 GB, free: 8.996 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/0.2736, allocations: 7.984 kB / 0.7873 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00027/0.2739, allocations: 179.4 kB / 0.7874 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.957e-05/0.2739, allocations: 81.02 kB / 0.7875 GB, free: 8.699 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.548e-05/0.2739, allocations: 8 kB / 0.7875 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.127e-05/0.274, allocations: 11.98 kB / 0.7875 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.408e-05/0.2741, allocations: 0 / 0.7875 GB, free: 8.68 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.2741, allocations: 15.86 kB / 0.7875 GB, free: 8.664 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.519e-05/0.2742, allocations: 87.27 kB / 0.7876 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2e-07/0.2742, allocations: 0 / 0.7876 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.000237/0.2744, allocations: 8 kB / 0.7876 GB, free: 8.57 MB / 0.6075 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 (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.0001687/0.2746, allocations: 103.2 kB / 0.7877 GB, free: 8.461 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.000256/0.2748, allocations: 63.89 kB / 0.7878 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2748, allocations: 0 / 0.7878 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.951e-05/0.275, allocations: 23.98 kB / 0.7878 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002584/0.2752, allocations: 8 kB / 0.7878 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003618/0.2756, allocations: 143.5 kB / 0.788 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002547/0.2759, allocations: 0.6848 MB / 0.7886 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.435e-05/0.2759, allocations: 4 kB / 0.7886 GB, free: 7.484 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.558e-05/0.2759, allocations: 11.42 kB / 0.7886 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of SimCode: time 2.6e-07/0.2759, allocations: 0 / 0.7886 GB, free: 7.473 MB / 0.6075 GB Notification: Performance of Templates: time 0.003074/0.279, allocations: 0.6555 MB / 0.7893 GB, free: 6.824 MB / 0.6075 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)