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.001559/0.001559, allocations: 103.7 kB / 16.27 MB, free: 6.406 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.001892/0.001892, allocations: 191 kB / 17.2 MB, free: 5.938 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.528/1.528, allocations: 205.1 MB / 223.1 MB, free: 12.35 MB / 190.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.843/1.843, allocations: 292.3 MB / 0.5495 GB, free: 17.54 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.001476/0.001476, allocations: 75.19 kB / 0.6722 GB, free: 6.621 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2255/0.227, allocations: 114.5 MB / 0.784 GB, free: 3.953 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002269/0.2293, allocations: 0.7326 MB / 0.7848 GB, free: 3.215 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001604/0.231, allocations: 1.184 MB / 0.7859 GB, free: 2.016 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.494e-05/0.231, allocations: 4 kB / 0.7859 GB, free: 2.012 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.162e-05/0.2311, allocations: 7.938 kB / 0.7859 GB, free: 2.004 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 6.984e-05/0.2312, allocations: 11.91 kB / 0.7859 GB, free: 1.992 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005524/0.2317, allocations: 138.9 kB / 0.7861 GB, free: 1.859 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001535/0.2319, allocations: 123.8 kB / 0.7862 GB, free: 1.738 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000109/0.232, allocations: 19.94 kB / 0.7862 GB, free: 1.719 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 9.356e-05/0.2321, allocations: 39.97 kB / 0.7862 GB, free: 1.68 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 8.45e-05/0.2322, allocations: 47.81 kB / 0.7863 GB, free: 1.633 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.333e-05/0.2322, allocations: 8 kB / 0.7863 GB, free: 1.625 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 6.909e-05/0.2323, allocations: 23.98 kB / 0.7863 GB, free: 1.602 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.427e-05/0.2323, allocations: 11.98 kB / 0.7863 GB, free: 1.59 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 7.756e-05/0.2324, allocations: 43.84 kB / 0.7864 GB, free: 1.547 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001825/0.2326, allocations: 108 kB / 0.7865 GB, free: 1.441 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.2326, allocations: 4 kB / 0.7865 GB, free: 1.438 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.513e-06/0.2326, allocations: 0 / 0.7865 GB, free: 1.438 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.933e-06/0.2326, allocations: 4 kB / 0.7865 GB, free: 1.434 MB / 0.6544 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.00065/0.2333, allocations: 401 kB / 0.7869 GB, free: 0.9844 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.2333, allocations: 12.03 kB / 0.7869 GB, free: 0.9727 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.032e-05/0.2334, allocations: 8.844 kB / 0.7869 GB, free: 0.9648 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001413/0.2335, allocations: 172.2 kB / 0.787 GB, free: 0.7578 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.451e-05/0.2336, allocations: 8.375 kB / 0.7871 GB, free: 0.75 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.816e-05/0.2336, allocations: 8.375 kB / 0.7871 GB, free: 0.7422 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002109/0.2338, allocations: 66.22 kB / 0.7871 GB, free: 0.6719 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.916e-06/0.2338, allocations: 192 / 0.7871 GB, free: 0.6719 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.686e-05/0.2339, allocations: 7.922 kB / 0.7871 GB, free: 0.6641 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.2339, allocations: 0 / 0.7871 GB, free: 0.6641 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001806/0.234, allocations: 35.97 kB / 0.7872 GB, free: 0.6289 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005371/0.2346, allocations: 336.7 kB / 0.7875 GB, free: 256 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001578/0.2348, allocations: 42.56 kB / 0.7875 GB, free: 204 kB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.746e-05/0.2349, allocations: 32.92 kB / 0.7876 GB, free: 168 kB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 2.119e-05/0.2349, allocations: 7.938 kB / 0.7876 GB, free: 160 kB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000278/0.2352, allocations: 99.2 kB / 0.7877 GB, free: 48 kB / 0.6544 GB Notification: Performance of pre-optimization done (n=7): time 1.342e-06/0.2352, allocations: 0 / 0.7877 GB, free: 48 kB / 0.6544 GB Notification: Performance of matching and sorting (n=7): time 0.412/0.6472, allocations: 126.3 kB / 0.7878 GB, free: 48.96 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.737e-05/0.6473, allocations: 51.41 kB / 0.7878 GB, free: 48.89 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.268e-05/0.6474, allocations: 117.4 kB / 0.7879 GB, free: 48.8 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.615e-05/0.6474, allocations: 29.53 kB / 0.788 GB, free: 48.77 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.494e-05/0.6475, allocations: 93.91 kB / 0.7881 GB, free: 48.68 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.928e-05/0.6475, allocations: 20.34 kB / 0.7881 GB, free: 48.68 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.501e-05/0.6476, allocations: 39.67 kB / 0.7881 GB, free: 48.67 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.524e-05/0.6476, allocations: 321.2 kB / 0.7884 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001493/0.6478, allocations: 46.08 kB / 0.7885 GB, free: 48.36 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001476/0.6479, allocations: 76.48 kB / 0.7885 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002384/0.6482, allocations: 137.5 kB / 0.7887 GB, free: 48.26 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.6482, allocations: 0 / 0.7887 GB, free: 48.26 MB / 0.6544 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004102/0.6486, allocations: 200.8 kB / 0.7889 GB, free: 48.2 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.785e-05/0.6487, allocations: 35.86 kB / 0.7889 GB, free: 48.17 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.6487, allocations: 0 / 0.7889 GB, free: 48.17 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.6487, allocations: 2.906 kB / 0.7889 GB, free: 48.17 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.6488, allocations: 16.66 kB / 0.7889 GB, free: 48.17 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/0.6488, allocations: 0 / 0.7889 GB, free: 48.17 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002198/0.6491, allocations: 36.2 kB / 0.789 GB, free: 48.17 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.873e-05/0.6491, allocations: 8.531 kB / 0.789 GB, free: 48.17 MB / 0.6544 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 7.405e-05/0.6492, allocations: 122.9 kB / 0.7891 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.442e-05/0.6492, allocations: 10.47 kB / 0.7891 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002708/0.6495, allocations: 119.2 kB / 0.7892 GB, free: 48.02 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.188e-06/0.6495, allocations: 2.625 kB / 0.7892 GB, free: 48.02 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.6495, allocations: 3.219 kB / 0.7892 GB, free: 48.02 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.6495, allocations: 1.969 kB / 0.7892 GB, free: 48.02 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003493/0.6498, allocations: 359.6 kB / 0.7896 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.6499, allocations: 2.625 kB / 0.7896 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.558e-05/0.6499, allocations: 11.11 kB / 0.7896 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.6499, allocations: 0.5625 kB / 0.7896 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.6499, allocations: 2.625 kB / 0.7896 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.65, allocations: 5.125 kB / 0.7896 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.65, allocations: 0 / 0.7896 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002536/0.6502, allocations: 206.5 kB / 0.7898 GB, free: 47.58 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.229e-05/0.6502, allocations: 86.08 kB / 0.7899 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.004e-05/0.6503, allocations: 4.156 kB / 0.7899 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.375e-05/0.6504, allocations: 8.109 kB / 0.7899 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.53e-05/0.6504, allocations: 7.156 kB / 0.7899 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-06/0.6504, allocations: 5.484 kB / 0.7899 GB, free: 47.49 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.505e-05/0.6505, allocations: 90.34 kB / 0.79 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.01e-07/0.6505, allocations: 0.5 kB / 0.79 GB, free: 47.41 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002545/0.6507, allocations: 29.06 kB / 0.79 GB, free: 47.41 MB / 0.6544 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.0001348/0.6509, allocations: 101.7 kB / 0.7901 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000356/0.6512, allocations: 182.2 kB / 0.7903 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.6513, allocations: 1.281 kB / 0.7903 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.000114/0.6514, allocations: 35.97 kB / 0.7903 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002809/0.6517, allocations: 17.62 kB / 0.7903 GB, free: 47.26 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003522/0.652, allocations: 176.5 kB / 0.7905 GB, free: 47.12 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001152/0.6522, allocations: 0.6873 MB / 0.7912 GB, free: 46.43 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.567e-05/0.6522, allocations: 9.812 kB / 0.7912 GB, free: 46.42 MB / 0.6544 GB Notification: Performance of SimCode: time 2.31e-07/0.6522, allocations: 0 / 0.7912 GB, free: 46.42 MB / 0.6544 GB Notification: Performance of Templates: time 0.002573/0.6548, allocations: 1.202 MB / 0.7923 GB, free: 46.38 MB / 0.6544 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)