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.001382/0.001382, allocations: 105.1 kB / 16.29 MB, free: 6.031 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.001117/0.001117, allocations: 179.3 kB / 17.22 MB, free: 5.641 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.762/1.762, allocations: 205.1 MB / 223.1 MB, free: 12.32 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 2.007/2.007, allocations: 292.3 MB / 0.5495 GB, free: 17.48 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.00253/0.00253, allocations: 79.88 kB / 0.6722 GB, free: 6.562 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.3333, allocations: 114.6 MB / 0.7841 GB, free: 3.895 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002438/0.3358, allocations: 0.7247 MB / 0.7848 GB, free: 3.164 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.001835/0.3377, allocations: 1.187 MB / 0.786 GB, free: 1.961 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.276e-05/0.3377, allocations: 3.938 kB / 0.786 GB, free: 1.957 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 3.54e-05/0.3378, allocations: 7.938 kB / 0.786 GB, free: 1.949 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 7.541e-05/0.3379, allocations: 3.938 kB / 0.786 GB, free: 1.945 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005409/0.3384, allocations: 140.8 kB / 0.7861 GB, free: 1.812 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001853/0.3386, allocations: 127.8 kB / 0.7862 GB, free: 1.688 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001173/0.3387, allocations: 11.98 kB / 0.7862 GB, free: 1.676 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001064/0.3389, allocations: 51.83 kB / 0.7863 GB, free: 1.625 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001144/0.339, allocations: 43.88 kB / 0.7863 GB, free: 1.582 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.994e-05/0.339, allocations: 12 kB / 0.7863 GB, free: 1.57 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 7.95e-05/0.3391, allocations: 27.97 kB / 0.7864 GB, free: 1.543 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 2.871e-05/0.3391, allocations: 11.94 kB / 0.7864 GB, free: 1.531 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 7.496e-05/0.3392, allocations: 43.91 kB / 0.7864 GB, free: 1.488 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.000188/0.3394, allocations: 108 kB / 0.7865 GB, free: 1.383 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.3394, allocations: 0 / 0.7865 GB, free: 1.383 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.923e-06/0.3394, allocations: 0 / 0.7865 GB, free: 1.383 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.602e-06/0.3394, allocations: 0 / 0.7865 GB, free: 1.383 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.0006776/0.3401, allocations: 405 kB / 0.7869 GB, free: 0.9297 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.3402, allocations: 8.031 kB / 0.7869 GB, free: 0.9219 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.913e-05/0.3402, allocations: 12.84 kB / 0.7869 GB, free: 0.9102 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000136/0.3404, allocations: 172.2 kB / 0.7871 GB, free: 0.7031 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.3404, allocations: 12.38 kB / 0.7871 GB, free: 0.6914 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.455e-05/0.3404, allocations: 8.375 kB / 0.7871 GB, free: 0.6836 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001962/0.3406, allocations: 66.16 kB / 0.7872 GB, free: 0.6133 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.3406, allocations: 192 / 0.7872 GB, free: 0.6133 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.336e-05/0.3407, allocations: 7.938 kB / 0.7872 GB, free: 0.6055 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.3407, allocations: 4 kB / 0.7872 GB, free: 0.6016 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001669/0.3408, allocations: 47.94 kB / 0.7872 GB, free: 0.5547 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004855/0.3413, allocations: 324.7 kB / 0.7875 GB, free: 192 kB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001417/0.3415, allocations: 50.55 kB / 0.7876 GB, free: 132 kB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.778e-05/0.3416, allocations: 28.92 kB / 0.7876 GB, free: 100 kB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.941e-05/0.3416, allocations: 0 / 0.7876 GB, free: 100 kB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.5746/0.9162, allocations: 97.55 kB / 0.7877 GB, free: 48.86 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=7): time 5.17e-06/0.9163, allocations: 0 / 0.7877 GB, free: 48.86 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7): time 0.0005506/0.9169, allocations: 135 kB / 0.7878 GB, free: 48.83 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.541e-05/0.9169, allocations: 57.31 kB / 0.7879 GB, free: 48.77 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.881e-05/0.917, allocations: 116.9 kB / 0.788 GB, free: 48.67 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.993e-05/0.9171, allocations: 29.11 kB / 0.788 GB, free: 48.64 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.281e-05/0.9171, allocations: 88.92 kB / 0.7881 GB, free: 48.55 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 2.572e-05/0.9172, allocations: 18.5 kB / 0.7881 GB, free: 48.55 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.58e-05/0.9172, allocations: 32.58 kB / 0.7882 GB, free: 48.54 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.643e-05/0.9173, allocations: 327.8 kB / 0.7885 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.9175, allocations: 51.33 kB / 0.7885 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001364/0.9176, allocations: 74.89 kB / 0.7886 GB, free: 48.2 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002209/0.9178, allocations: 130.4 kB / 0.7887 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.9178, allocations: 0 / 0.7887 GB, free: 48.13 MB / 0.6544 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003555/0.9182, allocations: 195.7 kB / 0.7889 GB, free: 48.07 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.417e-05/0.9183, allocations: 39.06 kB / 0.789 GB, free: 48.04 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.9183, allocations: 0 / 0.789 GB, free: 48.04 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.355e-05/0.9183, allocations: 3.625 kB / 0.789 GB, free: 48.04 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000108/0.9184, allocations: 13.48 kB / 0.789 GB, free: 48.04 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.9184, allocations: 4.781 kB / 0.789 GB, free: 48.04 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001757/0.9186, allocations: 31.97 kB / 0.789 GB, free: 48.04 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.319e-05/0.9186, allocations: 12 kB / 0.789 GB, free: 48.04 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 8.836e-05/0.9187, allocations: 124.6 kB / 0.7891 GB, free: 47.92 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.273e-05/0.9188, allocations: 6.531 kB / 0.7891 GB, free: 47.92 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002697/0.919, allocations: 116.3 kB / 0.7892 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.919, allocations: 3.188 kB / 0.7893 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.9191, allocations: 0 / 0.7893 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.9191, allocations: 2.281 kB / 0.7893 GB, free: 47.89 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003722/0.9194, allocations: 361.6 kB / 0.7896 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.9195, allocations: 0 / 0.7896 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.094e-05/0.9195, allocations: 11.02 kB / 0.7896 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.9195, allocations: 0.5 kB / 0.7896 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.9195, allocations: 9.578 kB / 0.7896 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.9196, allocations: 0.5312 kB / 0.7896 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.9196, allocations: 8.266 kB / 0.7896 GB, free: 47.59 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002535/0.9198, allocations: 213.7 kB / 0.7898 GB, free: 47.45 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.414e-05/0.9199, allocations: 79.73 kB / 0.7899 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.862e-05/0.9199, allocations: 0 / 0.7899 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.922e-05/0.92, allocations: 11.77 kB / 0.7899 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.496e-05/0.92, allocations: 2.625 kB / 0.7899 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-05/0.92, allocations: 6.672 kB / 0.7899 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 3.589e-05/0.9201, allocations: 92.83 kB / 0.79 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.01e-07/0.9201, allocations: 0 / 0.79 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0002483/0.9203, allocations: 27.25 kB / 0.79 GB, free: 47.28 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.0001468/0.9205, allocations: 109.1 kB / 0.7901 GB, free: 47.19 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0003384/0.9208, allocations: 172.2 kB / 0.7903 GB, free: 47.13 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.9208, allocations: 0.8438 kB / 0.7903 GB, free: 47.13 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0001048/0.9209, allocations: 37.47 kB / 0.7903 GB, free: 47.13 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002874/0.9212, allocations: 13.84 kB / 0.7904 GB, free: 47.13 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003499/0.9216, allocations: 151.2 kB / 0.7905 GB, free: 47.02 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001659/0.9218, allocations: 0.6856 MB / 0.7912 GB, free: 46.33 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 3.15e-05/0.9218, allocations: 3.688 kB / 0.7912 GB, free: 46.33 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.501e-05/0.9219, allocations: 13.31 kB / 0.7912 GB, free: 46.32 MB / 0.6544 GB Notification: Performance of SimCode: time 2.2e-07/0.9219, allocations: 2.5 kB / 0.7912 GB, free: 46.32 MB / 0.6544 GB Notification: Performance of Templates: time 0.004313/0.9262, allocations: 1.397 MB / 0.7926 GB, free: 46.29 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 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)