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 3.158/3.158, allocations: 287.3 MB / 302.3 MB, free: 8.312 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.001583/0.001583, allocations: 175.3 kB / 370.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.204/2.204, allocations: 205.4 MB / 0.6295 GB, free: 10.58 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.001071/0.001071, allocations: 88.78 kB / 0.7428 GB, free: 6.578 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000499/0.0004992, allocations: 16.75 kB / 0.8656 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.227/0.2276, allocations: 115.3 MB / 0.9782 GB, free: 28.38 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.0009696/0.2286, allocations: 457.6 kB / 0.9786 GB, free: 27.93 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001753/0.2304, allocations: 1.138 MB / 0.9797 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.204e-05/0.2305, allocations: 4 kB / 0.9797 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.845e-05/0.2305, allocations: 0 / 0.9797 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 8.861e-05/0.2306, allocations: 11.92 kB / 0.9798 GB, free: 26.76 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.00063/0.2313, allocations: 126.6 kB / 0.9799 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.000114/0.2314, allocations: 55.86 kB / 0.9799 GB, free: 26.58 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001086/0.2315, allocations: 23.91 kB / 0.98 GB, free: 26.56 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.332e-05/0.2316, allocations: 39.86 kB / 0.98 GB, free: 26.52 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.748e-05/0.2317, allocations: 35.88 kB / 0.98 GB, free: 26.48 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.628e-05/0.2318, allocations: 4 kB / 0.98 GB, free: 26.48 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.945e-05/0.2318, allocations: 23.98 kB / 0.9801 GB, free: 26.46 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.013e-05/0.2319, allocations: 7.984 kB / 0.9801 GB, free: 26.45 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.979e-05/0.2319, allocations: 41.64 kB / 0.9801 GB, free: 26.4 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001348/0.2321, allocations: 67.83 kB / 0.9802 GB, free: 26.34 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.2321, allocations: 0 / 0.9802 GB, free: 26.34 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.783e-06/0.2321, allocations: 0 / 0.9802 GB, free: 26.34 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.98e-06/0.2321, allocations: 0 / 0.9802 GB, free: 26.34 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.0005809/0.2327, allocations: 393.2 kB / 0.9805 GB, free: 25.9 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.2328, allocations: 12.03 kB / 0.9806 GB, free: 25.89 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.502e-05/0.2328, allocations: 11.91 kB / 0.9806 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.826e-05/0.2329, allocations: 167 kB / 0.9807 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.388e-05/0.233, allocations: 8 kB / 0.9807 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.575e-05/0.233, allocations: 8 kB / 0.9807 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002625/0.2333, allocations: 73.58 kB / 0.9808 GB, free: 25.58 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.719e-06/0.2333, allocations: 4 kB / 0.9808 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.2333, allocations: 4 kB / 0.9808 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.2333, allocations: 0 / 0.9808 GB, free: 25.57 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000295/0.2337, allocations: 51.95 kB / 0.9809 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005448/0.2342, allocations: 332.7 kB / 0.9812 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002165/0.2344, allocations: 54.48 kB / 0.9812 GB, free: 25.08 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.561e-05/0.2345, allocations: 4 kB / 0.9812 GB, free: 25.08 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002838/0.2348, allocations: 91.45 kB / 0.9813 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 2.024e-06/0.2348, allocations: 0 / 0.9813 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0006374/0.2354, allocations: 153.5 kB / 0.9815 GB, free: 24.82 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.27e-05/0.2355, allocations: 59.41 kB / 0.9815 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.395e-05/0.2356, allocations: 122 kB / 0.9816 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.937e-05/0.2356, allocations: 29.7 kB / 0.9817 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.374e-05/0.2357, allocations: 88.27 kB / 0.9818 GB, free: 24.49 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.327e-05/0.2357, allocations: 15.91 kB / 0.9818 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.949e-05/0.2357, allocations: 7.938 kB / 0.9818 GB, free: 24.47 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.348e-05/0.2358, allocations: 322.8 kB / 0.9821 GB, free: 24.14 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002365/0.2361, allocations: 47.97 kB / 0.9821 GB, free: 24.1 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002497/0.2363, allocations: 83.39 kB / 0.9822 GB, free: 24 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002483/0.2366, allocations: 93.61 kB / 0.9823 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.2366, allocations: 0 / 0.9823 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0006287/0.2373, allocations: 207.2 kB / 0.9825 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.181e-05/0.2373, allocations: 37.69 kB / 0.9825 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.2373, allocations: 0 / 0.9825 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.2374, allocations: 0 / 0.9825 GB, free: 23.65 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000143/0.2375, allocations: 15.98 kB / 0.9825 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.2375, allocations: 4 kB / 0.9826 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003928/0.2379, allocations: 59.81 kB / 0.9826 GB, free: 23.57 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.901e-05/0.238, allocations: 4 kB / 0.9826 GB, free: 23.57 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 0.0001028/0.2381, allocations: 126.8 kB / 0.9827 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.706e-05/0.2381, allocations: 0 / 0.9827 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004598/0.2386, allocations: 130 kB / 0.9829 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.2386, allocations: 0 / 0.9829 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.658e-06/0.2386, allocations: 0 / 0.9829 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.2386, allocations: 0 / 0.9829 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005455/0.2392, allocations: 378.4 kB / 0.9832 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.2392, allocations: 0 / 0.9832 GB, free: 22.88 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001024/0.2393, allocations: 11.98 kB / 0.9832 GB, free: 22.87 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.2393, allocations: 0 / 0.9832 GB, free: 22.87 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.2393, allocations: 0 / 0.9832 GB, free: 22.87 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.2394, allocations: 4 kB / 0.9832 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.2394, allocations: 7.953 kB / 0.9832 GB, free: 22.86 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004178/0.2398, allocations: 223.4 kB / 0.9835 GB, free: 22.62 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.606e-05/0.2398, allocations: 85.02 kB / 0.9835 GB, free: 22.52 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.624e-05/0.2399, allocations: 7.984 kB / 0.9835 GB, free: 22.51 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.24, allocations: 4 kB / 0.9835 GB, free: 22.51 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.895e-05/0.2401, allocations: 11.92 kB / 0.9836 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/0.2401, allocations: 3.953 kB / 0.9836 GB, free: 22.49 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.523e-05/0.2401, allocations: 95.3 kB / 0.9837 GB, free: 22.4 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.5e-07/0.2402, allocations: 0 / 0.9837 GB, free: 22.4 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003638/0.2405, allocations: 24 kB / 0.9837 GB, free: 22.38 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.0001506/0.2407, allocations: 107.2 kB / 0.9838 GB, free: 22.26 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005339/0.2412, allocations: 179.3 kB / 0.984 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.2413, allocations: 0 / 0.984 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001932/0.2415, allocations: 40.64 kB / 0.984 GB, free: 22.03 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002678/0.2417, allocations: 17.81 kB / 0.984 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000417/0.2422, allocations: 166.6 kB / 0.9842 GB, free: 21.83 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000143/0.2423, allocations: 0.6887 MB / 0.9848 GB, free: 21.12 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.62e-05/0.2424, allocations: 192 / 0.9848 GB, free: 21.12 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.224e-05/0.2424, allocations: 15.42 kB / 0.9849 GB, free: 21.1 MB / 0.6198 GB Notification: Performance of SimCode: time 8.82e-07/0.2424, allocations: 0 / 0.9849 GB, free: 21.1 MB / 0.6198 GB Notification: Performance of Templates: time 0.004467/0.2469, allocations: 1.229 MB / 0.9861 GB, free: 19.88 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)