Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.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.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 99.39 kB / 15.05 MB, free: 1.105 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.001104/0.001104, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.383/1.383, allocations: 205.4 MB / 222.1 MB, free: 5.516 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.629/1.629, allocations: 292.5 MB / 0.5497 GB, free: 14.63 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.0005566/0.0005568, allocations: 13.16 kB / 0.6735 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.2591, allocations: 116.3 MB / 0.7871 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001009/0.2601, allocations: 461.4 kB / 0.7876 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00177/0.262, allocations: 1.146 MB / 0.7887 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.218e-05/0.262, allocations: 0 / 0.7887 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.127e-05/0.2621, allocations: 3.938 kB / 0.7887 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.359e-05/0.2621, allocations: 7.984 kB / 0.7887 GB, free: 10.37 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005433/0.2627, allocations: 123.3 kB / 0.7888 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001196/0.2628, allocations: 55.86 kB / 0.7889 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.2629, allocations: 15.98 kB / 0.7889 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001204/0.2631, allocations: 39.92 kB / 0.7889 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.463e-05/0.2632, allocations: 39.81 kB / 0.7889 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.442e-05/0.2632, allocations: 8 kB / 0.789 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.028e-05/0.2633, allocations: 15.98 kB / 0.789 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.187e-05/0.2633, allocations: 11.92 kB / 0.789 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.772e-05/0.2634, allocations: 37.7 kB / 0.789 GB, free: 10.02 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001293/0.2635, allocations: 71.83 kB / 0.7891 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.2635, allocations: 0 / 0.7891 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.144e-06/0.2635, allocations: 0 / 0.7891 GB, free: 9.953 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.02e-06/0.2635, allocations: 0 / 0.7891 GB, free: 9.953 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005715/0.2641, allocations: 399.9 kB / 0.7895 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.2642, allocations: 8.031 kB / 0.7895 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.268e-05/0.2642, allocations: 15.89 kB / 0.7895 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001266/0.2644, allocations: 167 kB / 0.7897 GB, free: 9.285 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.131e-05/0.2644, allocations: 11.94 kB / 0.7897 GB, free: 9.273 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.539e-05/0.2644, allocations: 8 kB / 0.7897 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002069/0.2646, allocations: 73.66 kB / 0.7897 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.716e-06/0.2647, allocations: 0 / 0.7897 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.2647, allocations: 0 / 0.7897 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.2647, allocations: 0 / 0.7897 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001954/0.2649, allocations: 55.95 kB / 0.7898 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005273/0.2654, allocations: 328.7 kB / 0.7901 GB, free: 8.762 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001519/0.2656, allocations: 54.48 kB / 0.7902 GB, free: 8.699 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.393e-05/0.2656, allocations: 8 kB / 0.7902 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002517/0.2659, allocations: 87.45 kB / 0.7902 GB, free: 8.594 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.2659, allocations: 0 / 0.7902 GB, free: 8.594 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004525/0.2663, allocations: 153.5 kB / 0.7904 GB, free: 8.438 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/0.2664, allocations: 59.41 kB / 0.7905 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000111/0.2665, allocations: 121.7 kB / 0.7906 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.2666, allocations: 34.02 kB / 0.7906 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.008e-05/0.2666, allocations: 88.33 kB / 0.7907 GB, free: 8.105 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.219e-05/0.2667, allocations: 15.81 kB / 0.7907 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.23e-05/0.2667, allocations: 4 kB / 0.7907 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.2668, allocations: 322.8 kB / 0.791 GB, free: 7.762 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001431/0.2669, allocations: 47.97 kB / 0.7911 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001577/0.2671, allocations: 87.39 kB / 0.7911 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001561/0.2673, allocations: 89.61 kB / 0.7912 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2673, allocations: 0 / 0.7912 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003876/0.2677, allocations: 207.2 kB / 0.7914 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.01e-05/0.2677, allocations: 37.69 kB / 0.7915 GB, free: 7.266 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.2677, allocations: 0 / 0.7915 GB, free: 7.266 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.2678, allocations: 4 kB / 0.7915 GB, free: 7.262 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.46e-05/0.2679, allocations: 16.05 kB / 0.7915 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.2679, allocations: 4 kB / 0.7915 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002189/0.2681, allocations: 51.86 kB / 0.7915 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.505e-05/0.2681, allocations: 11.89 kB / 0.7915 GB, free: 7.18 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: 7 ($whenCondition2,$whenCondition3,$whenCondition1,$PRE.booPul.y,booPul.y,$PRE.triggeredMax.y,triggeredMax.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * 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 9.242e-05/0.2682, allocations: 125.8 kB / 0.7917 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.081e-05/0.2682, allocations: 0 / 0.7917 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002978/0.2685, allocations: 126 kB / 0.7918 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.2686, allocations: 0 / 0.7918 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.2686, allocations: 4 kB / 0.7918 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.2686, allocations: 0 / 0.7918 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004202/0.269, allocations: 374.4 kB / 0.7921 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.269, allocations: 0 / 0.7921 GB, free: 6.492 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.639e-05/0.2691, allocations: 15.98 kB / 0.7922 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.2691, allocations: 0 / 0.7922 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.278e-06/0.2691, allocations: 0 / 0.7922 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.2691, allocations: 4 kB / 0.7922 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2691, allocations: 0 / 0.7922 GB, free: 6.473 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002984/0.2694, allocations: 231.7 kB / 0.7924 GB, free: 6.23 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.639e-05/0.2695, allocations: 85.09 kB / 0.7925 GB, free: 6.129 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.168e-05/0.2695, allocations: 7.984 kB / 0.7925 GB, free: 6.121 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.792e-05/0.2696, allocations: 7.938 kB / 0.7925 GB, free: 6.113 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.055e-05/0.2696, allocations: 7.984 kB / 0.7925 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.682e-06/0.2697, allocations: 0 / 0.7925 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.392e-05/0.2697, allocations: 99.3 kB / 0.7926 GB, free: 6.008 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2697, allocations: 0 / 0.7926 GB, free: 6.008 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002617/0.27, allocations: 27.95 kB / 0.7926 GB, free: 5.98 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: 5 ($whenCondition2,$whenCondition3,$whenCondition1,triggeredMax.y,booPul.y) * Number of discrete states: 1 (triggeredMax.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000147/0.2702, allocations: 99.25 kB / 0.7927 GB, free: 5.875 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003754/0.2705, allocations: 183.3 kB / 0.7929 GB, free: 5.684 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2705, allocations: 0 / 0.7929 GB, free: 5.684 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000118/0.2707, allocations: 43.91 kB / 0.7929 GB, free: 5.641 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001876/0.2709, allocations: 8 kB / 0.7929 GB, free: 5.633 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003389/0.2712, allocations: 166.8 kB / 0.7931 GB, free: 5.441 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002447/0.2715, allocations: 0.6911 MB / 0.7938 GB, free: 4.727 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.267e-05/0.2715, allocations: 4.188 kB / 0.7938 GB, free: 4.723 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.271e-05/0.2715, allocations: 15.42 kB / 0.7938 GB, free: 4.707 MB / 0.6075 GB Notification: Performance of SimCode: time 3.6e-07/0.2715, allocations: 0 / 0.7938 GB, free: 4.707 MB / 0.6075 GB Notification: Performance of Templates: time 0.00357/0.2751, allocations: 1.231 MB / 0.795 GB, free: 3.492 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1) Environment - environmentSimulation: