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.001441/0.001441, allocations: 106.7 kB / 16.36 MB, free: 6.305 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.001282/0.001283, allocations: 189.1 kB / 17.29 MB, free: 5.875 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.467/1.467, allocations: 205.1 MB / 223.2 MB, free: 12.26 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.847/1.847, allocations: 292.3 MB / 0.5496 GB, free: 17.55 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.001432/0.001432, allocations: 67.91 kB / 0.6729 GB, free: 5.824 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.2419, allocations: 114.6 MB / 0.7848 GB, free: 3.16 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001961/0.2439, allocations: 0.7394 MB / 0.7855 GB, free: 2.422 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001517/0.2455, allocations: 1.187 MB / 0.7867 GB, free: 1.219 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.797e-05/0.2455, allocations: 4 kB / 0.7867 GB, free: 1.215 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.878e-05/0.2456, allocations: 7.938 kB / 0.7867 GB, free: 1.207 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 6.339e-05/0.2457, allocations: 3.938 kB / 0.7867 GB, free: 1.203 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005362/0.2462, allocations: 147 kB / 0.7868 GB, free: 1.062 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001778/0.2464, allocations: 123.8 kB / 0.7869 GB, free: 0.9414 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.2465, allocations: 12 kB / 0.787 GB, free: 0.9297 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 8.981e-05/0.2466, allocations: 47.89 kB / 0.787 GB, free: 0.8828 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 9.992e-05/0.2467, allocations: 43.88 kB / 0.787 GB, free: 0.8398 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.592e-05/0.2467, allocations: 12 kB / 0.7871 GB, free: 0.8281 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 7.409e-05/0.2468, allocations: 27.97 kB / 0.7871 GB, free: 0.8008 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.32e-05/0.2469, allocations: 7.938 kB / 0.7871 GB, free: 0.793 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 6.439e-05/0.2469, allocations: 39.91 kB / 0.7871 GB, free: 0.7539 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0001724/0.2471, allocations: 123.6 kB / 0.7872 GB, free: 0.6328 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.2471, allocations: 4 kB / 0.7872 GB, free: 0.6289 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.803e-06/0.2471, allocations: 3.938 kB / 0.7873 GB, free: 0.625 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 5.611e-06/0.2471, allocations: 0 / 0.7873 GB, free: 0.625 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.0005924/0.2477, allocations: 401 kB / 0.7876 GB, free: 180 kB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.2478, allocations: 12.02 kB / 0.7876 GB, free: 168 kB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.76e-05/0.2478, allocations: 8.844 kB / 0.7877 GB, free: 160 kB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3409/0.5888, allocations: 167.2 kB / 0.7878 GB, free: 48.99 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.205e-05/0.5889, allocations: 3.25 kB / 0.7878 GB, free: 48.99 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.897e-05/0.5889, allocations: 8.844 kB / 0.7878 GB, free: 48.99 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002783/0.5892, allocations: 65.73 kB / 0.7879 GB, free: 48.96 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.5892, allocations: 2.094 kB / 0.7879 GB, free: 48.96 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.5893, allocations: 0 / 0.7879 GB, free: 48.96 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.5893, allocations: 2.156 kB / 0.7879 GB, free: 48.96 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001873/0.5895, allocations: 51.11 kB / 0.7879 GB, free: 48.95 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005596/0.59, allocations: 317.1 kB / 0.7882 GB, free: 48.69 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001623/0.5902, allocations: 55.06 kB / 0.7883 GB, free: 48.67 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.631e-05/0.5903, allocations: 26.88 kB / 0.7883 GB, free: 48.66 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.239e-05/0.5903, allocations: 11.28 kB / 0.7883 GB, free: 48.66 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002373/0.5906, allocations: 91.72 kB / 0.7884 GB, free: 48.61 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=7): time 2.845e-06/0.5906, allocations: 0 / 0.7884 GB, free: 48.61 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7): time 0.0004553/0.5911, allocations: 134.4 kB / 0.7885 GB, free: 48.58 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.636e-05/0.5911, allocations: 54.59 kB / 0.7886 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.656e-05/0.5912, allocations: 120.6 kB / 0.7887 GB, free: 48.42 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.348e-05/0.5912, allocations: 31.14 kB / 0.7887 GB, free: 48.39 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.48e-05/0.5913, allocations: 92.64 kB / 0.7888 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.15e-05/0.5913, allocations: 14.27 kB / 0.7888 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.164e-05/0.5914, allocations: 34.38 kB / 0.7889 GB, free: 48.28 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.418e-05/0.5915, allocations: 320.8 kB / 0.7892 GB, free: 47.97 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001466/0.5916, allocations: 49.19 kB / 0.7892 GB, free: 47.97 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000145/0.5918, allocations: 76.64 kB / 0.7893 GB, free: 47.94 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00025/0.592, allocations: 133.4 kB / 0.7894 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.5921, allocations: 0 / 0.7894 GB, free: 47.88 MB / 0.6544 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003819/0.5924, allocations: 205.5 kB / 0.7896 GB, free: 47.8 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.83e-05/0.5925, allocations: 37.27 kB / 0.7897 GB, free: 47.77 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.251e-06/0.5925, allocations: 0 / 0.7897 GB, free: 47.77 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-05/0.5925, allocations: 3.219 kB / 0.7897 GB, free: 47.77 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.5926, allocations: 17.25 kB / 0.7897 GB, free: 47.77 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.5927, allocations: 2.719 kB / 0.7897 GB, free: 47.77 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001996/0.5929, allocations: 40.36 kB / 0.7897 GB, free: 47.77 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.131e-05/0.5929, allocations: 6.219 kB / 0.7897 GB, free: 47.77 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 9.081e-05/0.593, allocations: 124.5 kB / 0.7898 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.422e-05/0.593, allocations: 3.594 kB / 0.7899 GB, free: 47.65 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002977/0.5933, allocations: 117.6 kB / 0.79 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.648e-06/0.5933, allocations: 4.219 kB / 0.79 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.5934, allocations: 2.453 kB / 0.79 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.5934, allocations: 0 / 0.79 GB, free: 47.62 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003822/0.5937, allocations: 362.6 kB / 0.7903 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.5938, allocations: 0 / 0.7903 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.011e-05/0.5938, allocations: 13.25 kB / 0.7903 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.5939, allocations: 4.516 kB / 0.7903 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.5939, allocations: 2.25 kB / 0.7903 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.5939, allocations: 0.875 kB / 0.7903 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.5939, allocations: 2.75 kB / 0.7903 GB, free: 47.32 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002867/0.5942, allocations: 211.3 kB / 0.7905 GB, free: 47.19 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.118e-05/0.5942, allocations: 81.02 kB / 0.7906 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.126e-05/0.5943, allocations: 6.594 kB / 0.7906 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.376e-05/0.5943, allocations: 7.688 kB / 0.7906 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.767e-05/0.5944, allocations: 4.781 kB / 0.7906 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.927e-06/0.5944, allocations: 4.531 kB / 0.7906 GB, free: 47.09 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 4.083e-05/0.5945, allocations: 89.33 kB / 0.7907 GB, free: 47.02 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5945, allocations: 1.938 kB / 0.7907 GB, free: 47.02 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002629/0.5947, allocations: 23.7 kB / 0.7907 GB, free: 47.02 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.0001889/0.5949, allocations: 115.4 kB / 0.7909 GB, free: 46.92 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003896/0.5953, allocations: 167.6 kB / 0.791 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.5953, allocations: 3.828 kB / 0.791 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001291/0.5955, allocations: 45.34 kB / 0.7911 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002989/0.5958, allocations: 8.75 kB / 0.7911 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003716/0.5962, allocations: 175.5 kB / 0.7912 GB, free: 46.72 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001347/0.5963, allocations: 0.6863 MB / 0.7919 GB, free: 46.03 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.583e-05/0.5963, allocations: 11.38 kB / 0.7919 GB, free: 46.02 MB / 0.6544 GB Notification: Performance of SimCode: time 3.21e-07/0.5963, allocations: 5.156 kB / 0.7919 GB, free: 46.02 MB / 0.6544 GB Notification: Performance of Templates: time 0.002784/0.5991, allocations: 1.201 MB / 0.7931 GB, free: 45.97 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)