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.001206/0.001207, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001501/0.001501, allocations: 189.5 kB / 16.14 MB, free: 6.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.63/1.63, allocations: 205.1 MB / 222 MB, free: 4.738 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.74/1.74, allocations: 292.2 MB / 0.5484 GB, free: 13.7 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.001317/0.001318, allocations: 60.67 kB / 0.6708 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.2213, allocations: 114.5 MB / 0.7827 GB, free: 14.03 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002132/0.2234, allocations: 0.7999 MB / 0.7835 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001614/0.225, allocations: 1.204 MB / 0.7846 GB, free: 12.01 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.649e-05/0.2251, allocations: 0 / 0.7846 GB, free: 12.01 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.198e-05/0.2251, allocations: 7.922 kB / 0.7846 GB, free: 12 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.092e-05/0.2252, allocations: 3.938 kB / 0.7846 GB, free: 12 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004137/0.2256, allocations: 127.1 kB / 0.7848 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001282/0.2258, allocations: 107.8 kB / 0.7849 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.913e-05/0.2259, allocations: 15.98 kB / 0.7849 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.073e-05/0.226, allocations: 43.84 kB / 0.7849 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.515e-05/0.226, allocations: 35.89 kB / 0.785 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.326e-05/0.2261, allocations: 4 kB / 0.785 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.549e-05/0.2261, allocations: 23.97 kB / 0.785 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.987e-05/0.2262, allocations: 11.92 kB / 0.785 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.813e-05/0.2262, allocations: 31.92 kB / 0.785 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001498/0.2264, allocations: 112 kB / 0.7851 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.2264, allocations: 0 / 0.7851 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of FrontEnd: time 7.61e-07/0.2264, allocations: 0 / 0.7851 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.595e-06/0.2264, allocations: 0 / 0.7851 GB, free: 11.5 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.0005909/0.227, allocations: 412.9 kB / 0.7855 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.2271, allocations: 12.03 kB / 0.7855 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.232e-05/0.2271, allocations: 8.938 kB / 0.7856 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001171/0.2272, allocations: 168.3 kB / 0.7857 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.192e-05/0.2273, allocations: 384 / 0.7857 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.574e-05/0.2273, allocations: 16.31 kB / 0.7857 GB, free: 10.8 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001866/0.2275, allocations: 66.22 kB / 0.7858 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.2275, allocations: 192 / 0.7858 GB, free: 10.73 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/0.2275, allocations: 3.938 kB / 0.7858 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.187e-06/0.2275, allocations: 0 / 0.7858 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000179/0.2277, allocations: 43.95 kB / 0.7858 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004859/0.2282, allocations: 324.7 kB / 0.7861 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001471/0.2284, allocations: 50.5 kB / 0.7862 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001018/0.2285, allocations: 28.92 kB / 0.7862 GB, free: 10.22 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.432e-05/0.2285, allocations: 7.984 kB / 0.7862 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000247/0.2288, allocations: 95.33 kB / 0.7863 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.2288, allocations: 0 / 0.7863 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004406/0.2292, allocations: 129.6 kB / 0.7864 GB, free: 9.977 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.709e-05/0.2293, allocations: 55.41 kB / 0.7865 GB, free: 9.91 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.2294, allocations: 137.5 kB / 0.7866 GB, free: 9.766 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.364e-05/0.2294, allocations: 25.7 kB / 0.7867 GB, free: 9.734 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.659e-05/0.2295, allocations: 88.14 kB / 0.7867 GB, free: 9.645 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.975e-05/0.2295, allocations: 15.81 kB / 0.7868 GB, free: 9.629 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.621e-05/0.2296, allocations: 33.69 kB / 0.7868 GB, free: 9.59 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001266/0.2297, allocations: 322.8 kB / 0.7871 GB, free: 9.266 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001463/0.2298, allocations: 47.95 kB / 0.7871 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001576/0.23, allocations: 79.41 kB / 0.7872 GB, free: 9.129 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002589/0.2303, allocations: 133 kB / 0.7873 GB, free: 8.98 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.2303, allocations: 4 kB / 0.7873 GB, free: 8.977 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004071/0.2307, allocations: 203.1 kB / 0.7875 GB, free: 8.766 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.558e-05/0.2307, allocations: 33.7 kB / 0.7876 GB, free: 8.727 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.2308, allocations: 4 kB / 0.7876 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.2308, allocations: 0 / 0.7876 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.405e-05/0.2309, allocations: 11.98 kB / 0.7876 GB, free: 8.711 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.814e-06/0.2309, allocations: 4 kB / 0.7876 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002112/0.2311, allocations: 36.02 kB / 0.7876 GB, free: 8.672 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.134e-05/0.2311, allocations: 11.98 kB / 0.7876 GB, free: 8.66 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,booPul.y,$PRE.booPul.y,$whenCondition1,triggeredMax.y,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.787e-05/0.2312, allocations: 130.3 kB / 0.7878 GB, free: 8.523 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.381e-05/0.2313, allocations: 3.906 kB / 0.7878 GB, free: 8.52 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002933/0.2316, allocations: 106 kB / 0.7879 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.2316, allocations: 4 kB / 0.7879 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.2316, allocations: 0 / 0.7879 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.2316, allocations: 7.984 kB / 0.7879 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000429/0.232, allocations: 366.8 kB / 0.7882 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.232, allocations: 0 / 0.7882 GB, free: 7.984 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.851e-05/0.2321, allocations: 8 kB / 0.7882 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.2321, allocations: 0 / 0.7882 GB, free: 7.977 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.122e-05/0.2321, allocations: 3.984 kB / 0.7882 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.2321, allocations: 0 / 0.7882 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2321, allocations: 4.469 kB / 0.7882 GB, free: 7.969 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002906/0.2324, allocations: 207.4 kB / 0.7884 GB, free: 7.75 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.998e-05/0.2325, allocations: 81.11 kB / 0.7885 GB, free: 7.652 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.985e-05/0.2325, allocations: 3.938 kB / 0.7885 GB, free: 7.648 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.782e-05/0.2326, allocations: 15.92 kB / 0.7885 GB, free: 7.633 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.279e-05/0.2327, allocations: 11.88 kB / 0.7885 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.787e-06/0.2327, allocations: 7.984 kB / 0.7886 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.323e-05/0.2327, allocations: 87.28 kB / 0.7886 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2327, allocations: 0 / 0.7886 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002594/0.233, allocations: 20 kB / 0.7887 GB, free: 7.508 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001525/0.2332, allocations: 107.2 kB / 0.7888 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003535/0.2335, allocations: 171.2 kB / 0.7889 GB, free: 7.215 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2335, allocations: 4.125 kB / 0.7889 GB, free: 7.211 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.00012/0.2337, allocations: 35.97 kB / 0.789 GB, free: 7.176 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002824/0.234, allocations: 8 kB / 0.789 GB, free: 7.168 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000361/0.2343, allocations: 171.7 kB / 0.7891 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003037/0.2346, allocations: 0.6887 MB / 0.7898 GB, free: 6.258 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.488e-05/0.2347, allocations: 0 / 0.7898 GB, free: 6.258 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.541e-05/0.2347, allocations: 11.44 kB / 0.7898 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of SimCode: time 3.11e-07/0.2347, allocations: 0 / 0.7898 GB, free: 6.246 MB / 0.6075 GB Notification: Performance of Templates: time 0.00427/0.239, allocations: 1.291 MB / 0.7911 GB, free: 4.969 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (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)