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.001244/0.001244, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001497/0.001497, allocations: 188.2 kB / 16.25 MB, free: 6.625 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.654/1.654, allocations: 205.1 MB / 222.1 MB, free: 4.742 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.775/1.775, allocations: 292.2 MB / 0.5485 GB, free: 13.67 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.001909/0.00191, allocations: 68.45 kB / 0.671 GB, free: 26.31 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3299/0.3318, allocations: 114.6 MB / 0.7829 GB, free: 13.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002658/0.3345, allocations: 0.7855 MB / 0.7836 GB, free: 13.14 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001836/0.3364, allocations: 1.185 MB / 0.7848 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.629e-05/0.3365, allocations: 7.938 kB / 0.7848 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.006e-05/0.3365, allocations: 0 / 0.7848 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.61e-05/0.3366, allocations: 3.938 kB / 0.7848 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005789/0.3372, allocations: 138.9 kB / 0.7849 GB, free: 11.79 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002119/0.3375, allocations: 115.8 kB / 0.785 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001198/0.3376, allocations: 19.92 kB / 0.7851 GB, free: 11.66 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001265/0.3377, allocations: 47.97 kB / 0.7851 GB, free: 11.61 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001078/0.3378, allocations: 35.83 kB / 0.7851 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.209e-05/0.3379, allocations: 12 kB / 0.7852 GB, free: 11.57 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.51e-05/0.338, allocations: 27.97 kB / 0.7852 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.369e-05/0.338, allocations: 11.98 kB / 0.7852 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.704e-05/0.3381, allocations: 39.86 kB / 0.7852 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001982/0.3383, allocations: 115.9 kB / 0.7853 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.3383, allocations: 0 / 0.7853 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3383, allocations: 0 / 0.7853 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.582e-06/0.3383, allocations: 4 kB / 0.7853 GB, free: 11.37 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.0007382/0.339, allocations: 408.9 kB / 0.7857 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.3391, allocations: 11.97 kB / 0.7857 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.238e-05/0.3392, allocations: 8.938 kB / 0.7858 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001373/0.3393, allocations: 164.3 kB / 0.7859 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.052e-05/0.3393, allocations: 12.36 kB / 0.7859 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.582e-05/0.3394, allocations: 12.36 kB / 0.7859 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002529/0.3396, allocations: 70.2 kB / 0.786 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.3397, allocations: 192 / 0.786 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.54e-05/0.3397, allocations: 3.938 kB / 0.786 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.3397, allocations: 4 kB / 0.786 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001956/0.3399, allocations: 47.89 kB / 0.7861 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005878/0.3405, allocations: 320.8 kB / 0.7864 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001751/0.3407, allocations: 46.55 kB / 0.7864 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.464e-05/0.3408, allocations: 28.94 kB / 0.7864 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.307e-05/0.3408, allocations: 0 / 0.7864 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002716/0.3411, allocations: 99.27 kB / 0.7865 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.693e-06/0.3411, allocations: 0 / 0.7865 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004621/0.3416, allocations: 125.6 kB / 0.7866 GB, free: 9.855 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.864e-05/0.3416, allocations: 63.39 kB / 0.7867 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.973e-05/0.3417, allocations: 117.6 kB / 0.7868 GB, free: 9.656 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.843e-05/0.3418, allocations: 33.7 kB / 0.7869 GB, free: 9.617 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.095e-05/0.3418, allocations: 92.14 kB / 0.7869 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.359e-05/0.3419, allocations: 19.78 kB / 0.787 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.578e-05/0.3419, allocations: 37.64 kB / 0.787 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.000125/0.3421, allocations: 322.8 kB / 0.7873 GB, free: 9.137 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001573/0.3422, allocations: 47.95 kB / 0.7873 GB, free: 9.09 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001715/0.3424, allocations: 75.33 kB / 0.7874 GB, free: 9.004 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002571/0.3427, allocations: 133 kB / 0.7875 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.3427, allocations: 0 / 0.7875 GB, free: 8.855 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004232/0.3431, allocations: 195.2 kB / 0.7877 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.64e-05/0.3432, allocations: 45.75 kB / 0.7878 GB, free: 8.602 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.431e-06/0.3432, allocations: 0 / 0.7878 GB, free: 8.602 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/0.3432, allocations: 4 kB / 0.7878 GB, free: 8.598 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.3433, allocations: 11.94 kB / 0.7878 GB, free: 8.586 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.492e-05/0.3434, allocations: 7.984 kB / 0.7878 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002336/0.3436, allocations: 27.97 kB / 0.7878 GB, free: 8.551 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.561e-05/0.3436, allocations: 11.98 kB / 0.7878 GB, free: 8.539 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 0.0001042/0.3438, allocations: 128.7 kB / 0.788 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.621e-05/0.3438, allocations: 7.906 kB / 0.788 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003/0.3441, allocations: 117.9 kB / 0.7881 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.3441, allocations: 0 / 0.7881 GB, free: 8.277 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.3441, allocations: 4 kB / 0.7881 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.3441, allocations: 0 / 0.7881 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004234/0.3445, allocations: 362.5 kB / 0.7884 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3446, allocations: 0 / 0.7884 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.138e-05/0.3446, allocations: 7.984 kB / 0.7884 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.3446, allocations: 0 / 0.7884 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.3447, allocations: 8 kB / 0.7884 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.3447, allocations: 0 / 0.7884 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3447, allocations: 96 / 0.7884 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003303/0.345, allocations: 215.3 kB / 0.7887 GB, free: 7.621 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.106e-05/0.3451, allocations: 77.11 kB / 0.7887 GB, free: 7.527 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.141e-05/0.3451, allocations: 4 kB / 0.7887 GB, free: 7.523 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.916e-05/0.3452, allocations: 7.984 kB / 0.7887 GB, free: 7.516 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.867e-05/0.3452, allocations: 11.92 kB / 0.7887 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.3453, allocations: 4.469 kB / 0.7888 GB, free: 7.5 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.674e-05/0.3453, allocations: 91.22 kB / 0.7888 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.3453, allocations: 4 kB / 0.7888 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002686/0.3456, allocations: 23.98 kB / 0.7889 GB, free: 7.383 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.0001586/0.3458, allocations: 95.25 kB / 0.789 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004222/0.3462, allocations: 179.2 kB / 0.7891 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3462, allocations: 4 kB / 0.7891 GB, free: 7.09 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001278/0.3463, allocations: 44.03 kB / 0.7892 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002905/0.3466, allocations: 15.84 kB / 0.7892 GB, free: 7.035 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000388/0.347, allocations: 173.9 kB / 0.7894 GB, free: 6.836 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/0.3473, allocations: 0.6846 MB / 0.79 GB, free: 6.125 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.99e-05/0.3474, allocations: 4 kB / 0.79 GB, free: 6.121 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.849e-05/0.3474, allocations: 11.44 kB / 0.79 GB, free: 6.109 MB / 0.6075 GB Notification: Performance of SimCode: time 2.3e-07/0.3474, allocations: 0 / 0.79 GB, free: 6.109 MB / 0.6075 GB Notification: Performance of Templates: time 0.004322/0.3518, allocations: 1.34 MB / 0.7913 GB, free: 4.781 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)