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.001259/0.001259, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001538/0.001538, allocations: 192.5 kB / 16.53 MB, free: 6.664 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.651/1.651, allocations: 205.1 MB / 222.4 MB, free: 4.582 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.845/1.845, allocations: 292.3 MB / 0.5489 GB, free: 12.84 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.002071/0.002071, allocations: 70.31 kB / 0.6715 GB, free: 26.21 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.339/0.3411, allocations: 114.6 MB / 0.7834 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.00357/0.3447, allocations: 0.7273 MB / 0.7841 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002623/0.3474, allocations: 1.188 MB / 0.7852 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001046/0.3475, allocations: 0 / 0.7852 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 6.114e-05/0.3476, allocations: 3.938 kB / 0.7853 GB, free: 11.54 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001103/0.3478, allocations: 11.91 kB / 0.7853 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008332/0.3486, allocations: 134.4 kB / 0.7854 GB, free: 11.4 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002657/0.3489, allocations: 131.8 kB / 0.7855 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001395/0.349, allocations: 11.98 kB / 0.7855 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001574/0.3492, allocations: 39.97 kB / 0.7856 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001273/0.3493, allocations: 47.81 kB / 0.7856 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.336e-05/0.3494, allocations: 12 kB / 0.7856 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000119/0.3495, allocations: 23.98 kB / 0.7856 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.397e-05/0.3496, allocations: 8 kB / 0.7857 GB, free: 11.13 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001025/0.3497, allocations: 43.83 kB / 0.7857 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002603/0.3499, allocations: 112 kB / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.35, allocations: 0 / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.174e-06/0.35, allocations: 0 / 0.7858 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.493e-06/0.35, allocations: 0 / 0.7858 GB, free: 10.98 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.0008914/0.3509, allocations: 412.9 kB / 0.7862 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.449e-05/0.351, allocations: 8.031 kB / 0.7862 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.892e-05/0.351, allocations: 8.938 kB / 0.7862 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001735/0.3512, allocations: 180.2 kB / 0.7864 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.437e-05/0.3513, allocations: 4.375 kB / 0.7864 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.83e-05/0.3513, allocations: 8.359 kB / 0.7864 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002872/0.3516, allocations: 66.22 kB / 0.7865 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.3516, allocations: 192 / 0.7865 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.3517, allocations: 7.938 kB / 0.7865 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.3517, allocations: 4 kB / 0.7865 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002418/0.3519, allocations: 39.95 kB / 0.7865 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006381/0.3526, allocations: 328.7 kB / 0.7868 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002712/0.3529, allocations: 50.55 kB / 0.7869 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000119/0.353, allocations: 32.92 kB / 0.7869 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.373e-05/0.353, allocations: 0 / 0.7869 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003451/0.3534, allocations: 91.2 kB / 0.787 GB, free: 9.59 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 2.104e-06/0.3534, allocations: 0 / 0.787 GB, free: 9.59 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0005805/0.354, allocations: 129.6 kB / 0.7871 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.206e-05/0.354, allocations: 59.47 kB / 0.7872 GB, free: 9.387 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001417/0.3542, allocations: 125.7 kB / 0.7873 GB, free: 9.254 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.055e-05/0.3542, allocations: 29.7 kB / 0.7873 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.848e-05/0.3543, allocations: 88.14 kB / 0.7874 GB, free: 9.129 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.259e-05/0.3544, allocations: 11.81 kB / 0.7874 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.102e-05/0.3544, allocations: 41.69 kB / 0.7875 GB, free: 9.07 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001292/0.3546, allocations: 314.8 kB / 0.7878 GB, free: 8.754 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001758/0.3548, allocations: 63.89 kB / 0.7878 GB, free: 8.691 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001761/0.355, allocations: 79.28 kB / 0.7879 GB, free: 8.602 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002664/0.3552, allocations: 137 kB / 0.788 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3553, allocations: 0 / 0.788 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004486/0.3557, allocations: 195.6 kB / 0.7882 GB, free: 8.246 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.141e-05/0.3558, allocations: 33.7 kB / 0.7882 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/0.3558, allocations: 0 / 0.7882 GB, free: 8.207 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.3558, allocations: 4 kB / 0.7882 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.3559, allocations: 11.98 kB / 0.7883 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.3559, allocations: 8.188 kB / 0.7883 GB, free: 8.184 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002211/0.3562, allocations: 40.02 kB / 0.7883 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.162e-05/0.3562, allocations: 8 kB / 0.7883 GB, free: 8.137 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.0001025/0.3563, allocations: 126.8 kB / 0.7884 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.761e-05/0.3563, allocations: 7.906 kB / 0.7884 GB, free: 7.996 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003079/0.3566, allocations: 118 kB / 0.7885 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.3566, allocations: 0 / 0.7885 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.3567, allocations: 0 / 0.7885 GB, free: 7.875 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.423e-06/0.3567, allocations: 11.92 kB / 0.7886 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004061/0.3571, allocations: 354.5 kB / 0.7889 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.3571, allocations: 3.984 kB / 0.7889 GB, free: 7.457 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.42e-05/0.3572, allocations: 8 kB / 0.7889 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.3572, allocations: 0 / 0.7889 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.3572, allocations: 11.98 kB / 0.7889 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.3572, allocations: 0 / 0.7889 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3572, allocations: 0 / 0.7889 GB, free: 7.438 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003508/0.3576, allocations: 211.4 kB / 0.7891 GB, free: 7.215 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.168e-05/0.3576, allocations: 81.09 kB / 0.7892 GB, free: 7.117 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.556e-05/0.3577, allocations: 4 kB / 0.7892 GB, free: 7.113 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.3578, allocations: 11.98 kB / 0.7892 GB, free: 7.102 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.861e-05/0.3579, allocations: 7.938 kB / 0.7892 GB, free: 7.094 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.3579, allocations: 7.984 kB / 0.7892 GB, free: 7.086 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.007e-05/0.358, allocations: 83.28 kB / 0.7893 GB, free: 7.004 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.61e-07/0.358, allocations: 0 / 0.7893 GB, free: 7.004 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003839/0.3584, allocations: 24 kB / 0.7893 GB, free: 6.98 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.0002049/0.3586, allocations: 107.2 kB / 0.7894 GB, free: 6.867 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005228/0.3591, allocations: 179.2 kB / 0.7896 GB, free: 6.68 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.3591, allocations: 288 / 0.7896 GB, free: 6.68 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001642/0.3593, allocations: 35.92 kB / 0.7896 GB, free: 6.645 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004004/0.3597, allocations: 16.86 kB / 0.7897 GB, free: 6.629 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005116/0.3602, allocations: 158.1 kB / 0.7898 GB, free: 6.445 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.3606, allocations: 0.6885 MB / 0.7905 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.192e-05/0.3606, allocations: 4 kB / 0.7905 GB, free: 5.727 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.867e-05/0.3607, allocations: 7.438 kB / 0.7905 GB, free: 5.719 MB / 0.6075 GB Notification: Performance of SimCode: time 2.41e-07/0.3607, allocations: 0 / 0.7905 GB, free: 5.719 MB / 0.6075 GB Notification: Performance of Templates: time 0.005986/0.3667, allocations: 1.403 MB / 0.7919 GB, free: 4.332 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)