Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.715/1.715, allocations: 288.4 MB / 303.4 MB, free: 8.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.0009836/0.0009837, allocations: 186.2 kB / 372 MB, free: 10.26 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.753/1.753, allocations: 205.4 MB / 0.6307 GB, free: 9.98 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007946/0.0007948, allocations: 85.38 kB / 0.7441 GB, free: 5.906 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004403/0.0004404, allocations: 15.89 kB / 0.867 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2724, allocations: 115.3 MB / 0.9796 GB, free: 27.66 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.00118/0.2736, allocations: 449.8 kB / 0.98 GB, free: 27.22 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001935/0.2756, allocations: 1.165 MB / 0.9812 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.592e-05/0.2757, allocations: 0 / 0.9812 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.83e-05/0.2758, allocations: 4 kB / 0.9812 GB, free: 26.04 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.875e-05/0.2759, allocations: 11.92 kB / 0.9812 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005944/0.2765, allocations: 116 kB / 0.9813 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001054/0.2766, allocations: 91.75 kB / 0.9814 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.2767, allocations: 19.97 kB / 0.9814 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.756e-05/0.2768, allocations: 39.91 kB / 0.9814 GB, free: 25.77 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.01e-05/0.2768, allocations: 27.91 kB / 0.9815 GB, free: 25.74 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.236e-05/0.2769, allocations: 12 kB / 0.9815 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.246e-05/0.2769, allocations: 19.97 kB / 0.9815 GB, free: 25.71 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.698e-05/0.277, allocations: 11.98 kB / 0.9815 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.44e-05/0.277, allocations: 41.64 kB / 0.9815 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001135/0.2771, allocations: 71.81 kB / 0.9816 GB, free: 25.58 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.2772, allocations: 0 / 0.9816 GB, free: 25.58 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.835e-06/0.2772, allocations: 0 / 0.9816 GB, free: 25.58 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.06e-06/0.2772, allocations: 0 / 0.9816 GB, free: 25.58 MB / 0.6198 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.0004835/0.2777, allocations: 397.1 kB / 0.982 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.424e-05/0.2777, allocations: 12.03 kB / 0.982 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.593e-05/0.2778, allocations: 11.89 kB / 0.982 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001018/0.2779, allocations: 167 kB / 0.9822 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.857e-05/0.2779, allocations: 4 kB / 0.9822 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.493e-05/0.2779, allocations: 11.98 kB / 0.9822 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000207/0.2781, allocations: 77.59 kB / 0.9823 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.2782, allocations: 0 / 0.9823 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.578e-06/0.2782, allocations: 0 / 0.9823 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.2782, allocations: 0 / 0.9823 GB, free: 24.81 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001776/0.2784, allocations: 51.95 kB / 0.9823 GB, free: 24.76 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004467/0.2788, allocations: 328.7 kB / 0.9826 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001489/0.279, allocations: 54.48 kB / 0.9827 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.804e-05/0.2791, allocations: 40.92 kB / 0.9827 GB, free: 24.29 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.287e-05/0.2791, allocations: 4 kB / 0.9827 GB, free: 24.28 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000267/0.2794, allocations: 91.42 kB / 0.9828 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.2794, allocations: 3.938 kB / 0.9828 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0004194/0.2798, allocations: 149.5 kB / 0.983 GB, free: 24.02 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.37e-05/0.2799, allocations: 59.41 kB / 0.983 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.448e-05/0.28, allocations: 117.7 kB / 0.9831 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.425e-05/0.28, allocations: 33.7 kB / 0.9832 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.397e-05/0.28, allocations: 92.31 kB / 0.9832 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.636e-05/0.2801, allocations: 15.8 kB / 0.9833 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.099e-05/0.2801, allocations: 4 kB / 0.9833 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.889e-05/0.2802, allocations: 314.8 kB / 0.9836 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001399/0.2803, allocations: 51.97 kB / 0.9836 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001465/0.2805, allocations: 87.39 kB / 0.9837 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001542/0.2806, allocations: 81.67 kB / 0.9838 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2806, allocations: 7.938 kB / 0.9838 GB, free: 23.11 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003843/0.281, allocations: 203.2 kB / 0.984 GB, free: 22.9 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.944e-05/0.2811, allocations: 33.7 kB / 0.984 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.2811, allocations: 0 / 0.984 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.2811, allocations: 11.98 kB / 0.984 GB, free: 22.85 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.176e-05/0.2812, allocations: 16 kB / 0.984 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.2812, allocations: 0 / 0.984 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002237/0.2814, allocations: 55.81 kB / 0.9841 GB, free: 22.78 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.054e-05/0.2815, allocations: 11.98 kB / 0.9841 GB, free: 22.77 MB / 0.6198 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 8.393e-05/0.2816, allocations: 121.7 kB / 0.9842 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.243e-05/0.2816, allocations: 4 kB / 0.9842 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002994/0.2819, allocations: 130 kB / 0.9843 GB, free: 22.51 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.2819, allocations: 0 / 0.9843 GB, free: 22.51 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.2819, allocations: 0 / 0.9843 GB, free: 22.51 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.247e-06/0.2819, allocations: 0 / 0.9843 GB, free: 22.51 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003554/0.2823, allocations: 374.4 kB / 0.9847 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.2823, allocations: 0 / 0.9847 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.301e-05/0.2824, allocations: 16 kB / 0.9847 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.217e-06/0.2824, allocations: 4.453 kB / 0.9847 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.268e-06/0.2824, allocations: 0 / 0.9847 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.774e-06/0.2824, allocations: 0 / 0.9847 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2824, allocations: 0 / 0.9847 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002632/0.2827, allocations: 227.8 kB / 0.9849 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.326e-05/0.2827, allocations: 84.95 kB / 0.985 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.589e-05/0.2827, allocations: 0 / 0.985 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.39e-05/0.2828, allocations: 12.08 kB / 0.985 GB, free: 21.71 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.849e-05/0.2829, allocations: 11.97 kB / 0.985 GB, free: 21.7 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.2829, allocations: 8 kB / 0.985 GB, free: 21.7 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.166e-05/0.2829, allocations: 87.23 kB / 0.9851 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2829, allocations: 0 / 0.9851 GB, free: 21.61 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002337/0.2831, allocations: 27.98 kB / 0.9852 GB, free: 21.58 MB / 0.6198 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.000154/0.2833, allocations: 99.25 kB / 0.9852 GB, free: 21.47 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003352/0.2837, allocations: 191.3 kB / 0.9854 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2837, allocations: 0 / 0.9854 GB, free: 21.27 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001162/0.2838, allocations: 39.97 kB / 0.9855 GB, free: 21.23 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000252/0.284, allocations: 14.38 kB / 0.9855 GB, free: 21.22 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002988/0.2844, allocations: 174.5 kB / 0.9856 GB, free: 21.03 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001304/0.2845, allocations: 0.6848 MB / 0.9863 GB, free: 20.32 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.519e-05/0.2845, allocations: 11.92 kB / 0.9863 GB, free: 20.31 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.032e-05/0.2846, allocations: 11.44 kB / 0.9863 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of SimCode: time 5.51e-07/0.2846, allocations: 0 / 0.9863 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of Templates: time 0.003322/0.2879, allocations: 1.227 MB / 0.9875 GB, free: 19.09 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)