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.001246/0.001246, allocations: 105.4 kB / 15.7 MB, free: 24 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.001168/0.001168, allocations: 199.5 kB / 16.64 MB, free: 6.453 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.605/1.605, allocations: 205.1 MB / 222.5 MB, free: 4.547 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.975/1.975, allocations: 292.3 MB / 0.549 GB, free: 12.76 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.001467/0.001467, allocations: 66.09 kB / 0.6723 GB, free: 26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.311/0.3125, allocations: 114.6 MB / 0.7841 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002335/0.3149, allocations: 0.7321 MB / 0.7849 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00171/0.3166, allocations: 1.181 MB / 0.786 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.687e-05/0.3167, allocations: 4 kB / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.631e-05/0.3168, allocations: 3.938 kB / 0.786 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 7.835e-05/0.3169, allocations: 11.86 kB / 0.786 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005624/0.3174, allocations: 142.1 kB / 0.7862 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001855/0.3176, allocations: 131.7 kB / 0.7863 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001305/0.3178, allocations: 12 kB / 0.7863 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001073/0.3179, allocations: 43.91 kB / 0.7863 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.318, allocations: 47.86 kB / 0.7864 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.735e-05/0.318, allocations: 12 kB / 0.7864 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.05e-05/0.3181, allocations: 31.92 kB / 0.7864 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.461e-05/0.3181, allocations: 11.94 kB / 0.7864 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.166e-05/0.3182, allocations: 43.89 kB / 0.7865 GB, free: 10.35 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001944/0.3184, allocations: 107.7 kB / 0.7866 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.3184, allocations: 0 / 0.7866 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.933e-06/0.3184, allocations: 0 / 0.7866 GB, free: 10.24 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.132e-05/0.3185, allocations: 0 / 0.7866 GB, free: 10.24 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.0006455/0.3191, allocations: 408.9 kB / 0.787 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.3191, allocations: 8.031 kB / 0.787 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.984e-05/0.3192, allocations: 16.92 kB / 0.787 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001275/0.3193, allocations: 164.3 kB / 0.7872 GB, free: 9.562 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.848e-05/0.3194, allocations: 8.375 kB / 0.7872 GB, free: 9.555 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.618e-05/0.3194, allocations: 8.375 kB / 0.7872 GB, free: 9.547 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001945/0.3196, allocations: 66.16 kB / 0.7872 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.3196, allocations: 192 / 0.7872 GB, free: 9.477 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.3196, allocations: 3.938 kB / 0.7872 GB, free: 9.473 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.3196, allocations: 4 kB / 0.7872 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001817/0.3198, allocations: 47.94 kB / 0.7873 GB, free: 9.422 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000505/0.3203, allocations: 328.7 kB / 0.7876 GB, free: 9.051 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001537/0.3205, allocations: 54.47 kB / 0.7877 GB, free: 8.988 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.867e-05/0.3206, allocations: 32.92 kB / 0.7877 GB, free: 8.953 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.281e-05/0.3206, allocations: 4 kB / 0.7877 GB, free: 8.949 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002479/0.3209, allocations: 87.27 kB / 0.7878 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 1.393e-06/0.3209, allocations: 0 / 0.7878 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0004281/0.3213, allocations: 129.6 kB / 0.7879 GB, free: 8.719 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.505e-05/0.3214, allocations: 63.47 kB / 0.788 GB, free: 8.645 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.701e-05/0.3215, allocations: 121.6 kB / 0.7881 GB, free: 8.516 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.13e-05/0.3215, allocations: 33.7 kB / 0.7881 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.65e-05/0.3216, allocations: 92.12 kB / 0.7882 GB, free: 8.383 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.726e-05/0.3216, allocations: 7.812 kB / 0.7882 GB, free: 8.375 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.805e-05/0.3217, allocations: 37.7 kB / 0.7882 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001179/0.3218, allocations: 326.8 kB / 0.7885 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001523/0.322, allocations: 51.97 kB / 0.7886 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001548/0.3221, allocations: 71.39 kB / 0.7887 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002572/0.3224, allocations: 133 kB / 0.7888 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3224, allocations: 4 kB / 0.7888 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003921/0.3228, allocations: 199.1 kB / 0.789 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.84e-05/0.3229, allocations: 37.7 kB / 0.789 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.3229, allocations: 0 / 0.789 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.517e-05/0.3229, allocations: 4 kB / 0.789 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.013e-05/0.323, allocations: 15.98 kB / 0.789 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.471e-06/0.323, allocations: 0 / 0.789 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000187/0.3232, allocations: 36.02 kB / 0.7891 GB, free: 7.414 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.042e-05/0.3232, allocations: 8 kB / 0.7891 GB, free: 7.406 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.463e-05/0.3233, allocations: 121.7 kB / 0.7892 GB, free: 7.277 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.44e-05/0.3234, allocations: 11.84 kB / 0.7892 GB, free: 7.266 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000288/0.3237, allocations: 114 kB / 0.7893 GB, free: 7.148 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.3237, allocations: 4 kB / 0.7893 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.3237, allocations: 0 / 0.7893 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.3237, allocations: 0 / 0.7893 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004438/0.3241, allocations: 366.4 kB / 0.7897 GB, free: 6.73 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.3242, allocations: 4 kB / 0.7897 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.745e-05/0.3242, allocations: 7.984 kB / 0.7897 GB, free: 6.719 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.3242, allocations: 0 / 0.7897 GB, free: 6.719 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.3242, allocations: 4 kB / 0.7897 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.3243, allocations: 4 kB / 0.7897 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3243, allocations: 0 / 0.7897 GB, free: 6.711 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003007/0.3246, allocations: 211.3 kB / 0.7899 GB, free: 6.488 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.32e-05/0.3246, allocations: 81.09 kB / 0.79 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.583e-05/0.3246, allocations: 0 / 0.79 GB, free: 6.391 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.966e-05/0.3247, allocations: 4.469 kB / 0.79 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.796e-05/0.3248, allocations: 19.92 kB / 0.79 GB, free: 6.367 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.3248, allocations: 7.938 kB / 0.79 GB, free: 6.359 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.262e-05/0.3249, allocations: 91.2 kB / 0.7901 GB, free: 6.27 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3249, allocations: 4 kB / 0.7901 GB, free: 6.266 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002435/0.3251, allocations: 16 kB / 0.7901 GB, free: 6.25 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.0001543/0.3253, allocations: 103.2 kB / 0.7902 GB, free: 6.141 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0003776/0.3257, allocations: 171.3 kB / 0.7904 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.3257, allocations: 0 / 0.7904 GB, free: 5.961 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001139/0.3258, allocations: 35.97 kB / 0.7904 GB, free: 5.926 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002589/0.3261, allocations: 12.69 kB / 0.7904 GB, free: 5.914 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003465/0.3264, allocations: 157.9 kB / 0.7906 GB, free: 5.73 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002761/0.3267, allocations: 0.6951 MB / 0.7912 GB, free: 5.012 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.004e-05/0.3267, allocations: 7.984 kB / 0.7913 GB, free: 5.004 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.137e-05/0.3268, allocations: 7.438 kB / 0.7913 GB, free: 4.996 MB / 0.6075 GB Notification: Performance of SimCode: time 2e-07/0.3268, allocations: 0 / 0.7913 GB, free: 4.996 MB / 0.6075 GB Notification: Performance of Templates: time 0.003692/0.3305, allocations: 1.401 MB / 0.7926 GB, free: 3.609 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)