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 2.838/2.838, allocations: 287.5 MB / 302.4 MB, free: 8.246 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.001467/0.001466, allocations: 178.7 kB / 371 MB, free: 10.88 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.186/2.186, allocations: 205.4 MB / 0.6297 GB, free: 10.64 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.0009755/0.0009751, allocations: 92.94 kB / 0.743 GB, free: 6.633 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005162/0.0005165, allocations: 15.98 kB / 0.8658 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2403/0.2409, allocations: 115.3 MB / 0.9784 GB, free: 28.38 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001007/0.242, allocations: 449.6 kB / 0.9788 GB, free: 27.93 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001699/0.2437, allocations: 1.169 MB / 0.9799 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.363e-05/0.2438, allocations: 0 / 0.9799 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.016e-05/0.2438, allocations: 3.938 kB / 0.9799 GB, free: 26.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.887e-05/0.2439, allocations: 7.938 kB / 0.9799 GB, free: 26.74 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006254/0.2445, allocations: 119.4 kB / 0.9801 GB, free: 26.62 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001289/0.2447, allocations: 95.75 kB / 0.9802 GB, free: 26.53 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.474e-05/0.2448, allocations: 19.97 kB / 0.9802 GB, free: 26.51 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 9.226e-05/0.2449, allocations: 39.89 kB / 0.9802 GB, free: 26.47 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.645e-05/0.245, allocations: 31.91 kB / 0.9802 GB, free: 26.44 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.114e-05/0.245, allocations: 4 kB / 0.9802 GB, free: 26.44 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.282e-05/0.2451, allocations: 19.98 kB / 0.9803 GB, free: 26.42 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.027e-05/0.2452, allocations: 15.97 kB / 0.9803 GB, free: 26.4 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.876e-05/0.2452, allocations: 41.64 kB / 0.9803 GB, free: 26.36 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001346/0.2454, allocations: 67.83 kB / 0.9804 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.2454, allocations: 0 / 0.9804 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.024e-06/0.2454, allocations: 4 kB / 0.9804 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.2454, allocations: 0 / 0.9804 GB, free: 26.29 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.0005775/0.246, allocations: 389.2 kB / 0.9808 GB, free: 25.85 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.246, allocations: 12.02 kB / 0.9808 GB, free: 25.84 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.851e-05/0.2461, allocations: 11.91 kB / 0.9808 GB, free: 25.83 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.2e-05/0.2462, allocations: 167 kB / 0.9809 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.511e-05/0.2462, allocations: 8 kB / 0.9809 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.189e-05/0.2463, allocations: 15.94 kB / 0.981 GB, free: 25.6 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000268/0.2466, allocations: 73.59 kB / 0.981 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.2466, allocations: 0 / 0.981 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.2466, allocations: 0 / 0.981 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.2466, allocations: 0 / 0.981 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003416/0.247, allocations: 55.95 kB / 0.9811 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005278/0.2475, allocations: 324.7 kB / 0.9814 GB, free: 25.1 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002189/0.2478, allocations: 58.48 kB / 0.9814 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.2479, allocations: 36.92 kB / 0.9815 GB, free: 25 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.984e-05/0.248, allocations: 4 kB / 0.9815 GB, free: 24.99 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003085/0.2483, allocations: 95.42 kB / 0.9816 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 2.265e-06/0.2483, allocations: 0 / 0.9816 GB, free: 24.89 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0006651/0.249, allocations: 157.5 kB / 0.9817 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.522e-05/0.249, allocations: 55.36 kB / 0.9818 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.507e-05/0.2491, allocations: 117.7 kB / 0.9819 GB, free: 24.54 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 3.197e-05/0.2492, allocations: 37.69 kB / 0.9819 GB, free: 24.49 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 5.67e-05/0.2492, allocations: 88.33 kB / 0.982 GB, free: 24.4 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.396e-05/0.2493, allocations: 7.812 kB / 0.982 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.952e-05/0.2493, allocations: 8 kB / 0.982 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.521e-05/0.2494, allocations: 318.8 kB / 0.9823 GB, free: 24.06 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002436/0.2496, allocations: 51.97 kB / 0.9824 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002595/0.2499, allocations: 83.39 kB / 0.9825 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000256/0.2502, allocations: 85.67 kB / 0.9825 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.2502, allocations: 7.938 kB / 0.9826 GB, free: 23.82 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0006647/0.2509, allocations: 207.2 kB / 0.9827 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 4.371e-05/0.2509, allocations: 37.69 kB / 0.9828 GB, free: 23.56 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.251, allocations: 0 / 0.9828 GB, free: 23.56 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.251, allocations: 0 / 0.9828 GB, free: 23.56 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001609/0.2511, allocations: 16 kB / 0.9828 GB, free: 23.55 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.2512, allocations: 7.938 kB / 0.9828 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003939/0.2516, allocations: 51.11 kB / 0.9829 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.248e-05/0.2516, allocations: 11.98 kB / 0.9829 GB, free: 23.48 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.0001069/0.2517, allocations: 125.7 kB / 0.983 GB, free: 23.35 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.052e-05/0.2518, allocations: 4 kB / 0.983 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004556/0.2522, allocations: 134 kB / 0.9831 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.818e-06/0.2523, allocations: 0 / 0.9831 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.2523, allocations: 0 / 0.9831 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.2523, allocations: 3.953 kB / 0.9831 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005496/0.2528, allocations: 370.5 kB / 0.9835 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.2529, allocations: 0 / 0.9835 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001108/0.253, allocations: 15.98 kB / 0.9835 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.641e-06/0.253, allocations: 96 / 0.9835 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.253, allocations: 3.984 kB / 0.9835 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.253, allocations: 4 kB / 0.9835 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.253, allocations: 3.953 kB / 0.9835 GB, free: 22.76 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004212/0.2535, allocations: 219.3 kB / 0.9837 GB, free: 22.53 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.954e-05/0.2535, allocations: 81.48 kB / 0.9838 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.423e-05/0.2536, allocations: 4 kB / 0.9838 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.2537, allocations: 11.98 kB / 0.9838 GB, free: 22.42 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.398e-05/0.2538, allocations: 11.94 kB / 0.9838 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.274e-05/0.2538, allocations: 4 kB / 0.9838 GB, free: 22.4 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 4.362e-05/0.2538, allocations: 87.22 kB / 0.9839 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.71e-07/0.2539, allocations: 0 / 0.9839 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003403/0.2542, allocations: 27.98 kB / 0.9839 GB, free: 22.29 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.0001657/0.2544, allocations: 99.25 kB / 0.984 GB, free: 22.18 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0005693/0.255, allocations: 179.3 kB / 0.9842 GB, free: 21.99 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.255, allocations: 4 kB / 0.9842 GB, free: 21.99 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001896/0.2552, allocations: 44.08 kB / 0.9842 GB, free: 21.95 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003661/0.2556, allocations: 12 kB / 0.9843 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004111/0.256, allocations: 178.5 kB / 0.9844 GB, free: 21.74 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000147/0.2561, allocations: 0.6848 MB / 0.9851 GB, free: 21.03 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.701e-05/0.2562, allocations: 4.188 kB / 0.9851 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.282e-05/0.2562, allocations: 11.44 kB / 0.9851 GB, free: 21.01 MB / 0.6198 GB Notification: Performance of SimCode: time 1.142e-06/0.2563, allocations: 0 / 0.9851 GB, free: 21.01 MB / 0.6198 GB Notification: Performance of Templates: time 0.00474/0.261, allocations: 1.232 MB / 0.9863 GB, free: 19.79 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)