Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_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.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 1.782/1.782, allocations: 287.4 MB / 303.2 MB, free: 8.285 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.001086/0.001086, allocations: 174 kB / 371.8 MB, free: 10.83 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.921/1.921, allocations: 205.4 MB / 0.6305 GB, free: 10.56 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.0009963/0.0009965, allocations: 102.2 kB / 0.7438 GB, free: 6.551 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004147/0.0004149, allocations: 12.3 kB / 0.8667 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2213/0.2217, allocations: 115.3 MB / 0.9793 GB, free: 28.18 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.0009203/0.2227, allocations: 449.7 kB / 0.9797 GB, free: 27.73 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001449/0.2242, allocations: 1.157 MB / 0.9808 GB, free: 26.56 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.942e-05/0.2243, allocations: 0 / 0.9808 GB, free: 26.56 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.361e-05/0.2244, allocations: 7.922 kB / 0.9809 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 9.593e-05/0.2245, allocations: 3.938 kB / 0.9809 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007088/0.2252, allocations: 126.6 kB / 0.981 GB, free: 26.43 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.000157/0.2254, allocations: 91.81 kB / 0.9811 GB, free: 26.34 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.2255, allocations: 11.98 kB / 0.9811 GB, free: 26.33 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001498/0.2256, allocations: 39.91 kB / 0.9811 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001056/0.2258, allocations: 35.89 kB / 0.9812 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.574e-05/0.2258, allocations: 4 kB / 0.9812 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001271/0.2259, allocations: 23.97 kB / 0.9812 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.6e-05/0.226, allocations: 15.92 kB / 0.9812 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 7.391e-05/0.2261, allocations: 37.7 kB / 0.9812 GB, free: 26.17 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001747/0.2262, allocations: 68.11 kB / 0.9813 GB, free: 26.1 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 8.806e-06/0.2263, allocations: 0 / 0.9813 GB, free: 26.1 MB / 0.6198 GB Notification: Performance of FrontEnd: time 3.196e-06/0.2263, allocations: 0 / 0.9813 GB, free: 26.1 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.023e-06/0.2263, allocations: 0 / 0.9813 GB, free: 26.1 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.0006795/0.227, allocations: 398.4 kB / 0.9817 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 5.884e-05/0.227, allocations: 12.03 kB / 0.9817 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.037e-05/0.2271, allocations: 8.844 kB / 0.9817 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.571e-05/0.2272, allocations: 180.2 kB / 0.9819 GB, free: 25.42 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.355e-05/0.2272, allocations: 8.312 kB / 0.9819 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.906e-05/0.2273, allocations: 8.359 kB / 0.9819 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002037/0.2275, allocations: 70.22 kB / 0.9819 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.2275, allocations: 192 / 0.9819 GB, free: 25.33 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.2275, allocations: 7.938 kB / 0.982 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.2275, allocations: 4 kB / 0.982 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001757/0.2277, allocations: 51.95 kB / 0.982 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004393/0.2282, allocations: 324.7 kB / 0.9823 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001397/0.2283, allocations: 54.55 kB / 0.9824 GB, free: 24.84 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.962e-05/0.2284, allocations: 32.94 kB / 0.9824 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.2284, allocations: 4 kB / 0.9824 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001876/0.2286, allocations: 95.36 kB / 0.9825 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 1.944e-06/0.2287, allocations: 0 / 0.9825 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0004189/0.2291, allocations: 157.5 kB / 0.9826 GB, free: 24.54 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.603e-05/0.2291, allocations: 51.41 kB / 0.9827 GB, free: 24.47 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.412e-05/0.2292, allocations: 117.8 kB / 0.9828 GB, free: 24.35 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.2292, allocations: 25.7 kB / 0.9828 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.793e-05/0.2293, allocations: 96.05 kB / 0.9829 GB, free: 24.22 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.174e-05/0.2293, allocations: 23.78 kB / 0.9829 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.004e-05/0.2293, allocations: 0 / 0.9829 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.783e-05/0.2294, allocations: 322.8 kB / 0.9833 GB, free: 23.87 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001495/0.2296, allocations: 59.89 kB / 0.9833 GB, free: 23.81 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.2297, allocations: 79.39 kB / 0.9834 GB, free: 23.72 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002835/0.23, allocations: 141 kB / 0.9835 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.23, allocations: 0 / 0.9835 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003804/0.2304, allocations: 199.7 kB / 0.9837 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.367e-05/0.2304, allocations: 45.75 kB / 0.9838 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.2305, allocations: 4.312 kB / 0.9838 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.2305, allocations: 0 / 0.9838 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.252e-05/0.2306, allocations: 12 kB / 0.9838 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.2306, allocations: 11.86 kB / 0.9838 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002115/0.2308, allocations: 49.84 kB / 0.9838 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.096e-05/0.2308, allocations: 15.91 kB / 0.9838 GB, free: 23.22 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 7.257e-05/0.2309, allocations: 127.7 kB / 0.984 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.275e-05/0.2309, allocations: 11.91 kB / 0.984 GB, free: 23.07 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002686/0.2312, allocations: 122 kB / 0.9841 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.2312, allocations: 0 / 0.9841 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.2312, allocations: 0 / 0.9841 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.443e-05/0.2313, allocations: 81.11 kB / 0.9842 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.865e-05/0.2313, allocations: 0 / 0.9842 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.903e-05/0.2313, allocations: 23.86 kB / 0.9842 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.812e-05/0.2314, allocations: 4 kB / 0.9842 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002705/0.2317, allocations: 200.9 kB / 0.9844 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0002564/0.2319, allocations: 290.7 kB / 0.9847 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001019/0.232, allocations: 40.02 kB / 0.9847 GB, free: 22.29 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.096e-05/0.2321, allocations: 95.27 kB / 0.9848 GB, free: 22.19 MB / 0.6198 GB Notification: Performance of Backend: time 4.71e-07/0.2321, allocations: 0 / 0.9848 GB, free: 22.19 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005296/0.2326, allocations: 227.8 kB / 0.985 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of SimCode: time 0.0004241/0.2331, allocations: 0.6093 MB / 0.9856 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of Templates: time 0.003703/0.2368, allocations: 1.334 MB / 0.9869 GB, free: 19.98 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)