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.001521/0.001521, allocations: 115.1 kB / 16.38 MB, free: 6.02 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.001458/0.001458, allocations: 188.5 kB / 17.31 MB, free: 5.617 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.647/1.647, allocations: 205.1 MB / 223.2 MB, free: 12.27 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.92/1.92, allocations: 292.3 MB / 0.5496 GB, free: 17.43 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.001871/0.001871, allocations: 75.91 kB / 0.6729 GB, free: 5.852 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3146/0.3164, allocations: 114.5 MB / 0.7848 GB, free: 3.188 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.003416/0.3199, allocations: 0.7439 MB / 0.7855 GB, free: 2.441 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0025/0.3225, allocations: 1.176 MB / 0.7867 GB, free: 1.25 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.3226, allocations: 0 / 0.7867 GB, free: 1.25 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 4.836e-05/0.3227, allocations: 7.922 kB / 0.7867 GB, free: 1.242 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001049/0.3228, allocations: 7.938 kB / 0.7867 GB, free: 1.234 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008559/0.3237, allocations: 150.5 kB / 0.7868 GB, free: 1.09 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002672/0.324, allocations: 111.8 kB / 0.7869 GB, free: 0.9805 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001674/0.3242, allocations: 23.97 kB / 0.787 GB, free: 0.957 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001725/0.3243, allocations: 55.83 kB / 0.787 GB, free: 0.9023 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001511/0.3245, allocations: 39.89 kB / 0.7871 GB, free: 0.8633 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.661e-05/0.3245, allocations: 8 kB / 0.7871 GB, free: 0.8555 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001244/0.3247, allocations: 31.97 kB / 0.7871 GB, free: 0.8242 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 3.642e-05/0.3247, allocations: 11.92 kB / 0.7871 GB, free: 0.8125 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001005/0.3248, allocations: 35.91 kB / 0.7871 GB, free: 0.7773 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002806/0.3251, allocations: 115.7 kB / 0.7873 GB, free: 0.6641 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.3251, allocations: 0 / 0.7873 GB, free: 0.6641 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.364e-06/0.3251, allocations: 0 / 0.7873 GB, free: 0.6641 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 9.808e-06/0.3252, allocations: 4 kB / 0.7873 GB, free: 0.6602 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.0008575/0.326, allocations: 409 kB / 0.7876 GB, free: 208 kB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.995e-05/0.3261, allocations: 8.031 kB / 0.7877 GB, free: 200 kB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.78e-05/0.3262, allocations: 8.844 kB / 0.7877 GB, free: 192 kB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.584/0.9102, allocations: 168.2 kB / 0.7878 GB, free: 49.42 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.392e-05/0.9103, allocations: 5.203 kB / 0.7878 GB, free: 49.42 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.611e-05/0.9103, allocations: 5.562 kB / 0.7878 GB, free: 49.42 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000293/0.9106, allocations: 69.05 kB / 0.7879 GB, free: 49.39 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.9106, allocations: 0.9375 kB / 0.7879 GB, free: 49.39 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.512e-05/0.9107, allocations: 1.859 kB / 0.7879 GB, free: 49.39 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.9107, allocations: 2.625 kB / 0.7879 GB, free: 49.39 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001929/0.9109, allocations: 48.89 kB / 0.788 GB, free: 49.39 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005484/0.9114, allocations: 321.2 kB / 0.7883 GB, free: 49.12 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001612/0.9116, allocations: 48.66 kB / 0.7883 GB, free: 49.1 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001043/0.9117, allocations: 28.59 kB / 0.7883 GB, free: 49.09 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 3.081e-05/0.9118, allocations: 11.38 kB / 0.7883 GB, free: 49.09 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002333/0.912, allocations: 95.75 kB / 0.7884 GB, free: 49.04 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=7): time 3.005e-06/0.912, allocations: 0 / 0.7884 GB, free: 49.04 MB / 0.6544 GB Notification: Performance of matching and sorting (n=7): time 0.0005125/0.9125, allocations: 132.8 kB / 0.7886 GB, free: 49.01 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.43e-05/0.9126, allocations: 52.09 kB / 0.7886 GB, free: 48.95 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.138e-05/0.9127, allocations: 119.8 kB / 0.7887 GB, free: 48.85 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 2.169e-05/0.9127, allocations: 26.95 kB / 0.7888 GB, free: 48.82 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 5.071e-05/0.9128, allocations: 99.31 kB / 0.7888 GB, free: 48.74 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.762e-05/0.9128, allocations: 18.88 kB / 0.7889 GB, free: 48.73 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.768e-05/0.9129, allocations: 36.41 kB / 0.7889 GB, free: 48.71 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.913, allocations: 317.5 kB / 0.7892 GB, free: 48.4 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001693/0.9132, allocations: 48.61 kB / 0.7892 GB, free: 48.4 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001636/0.9133, allocations: 77.7 kB / 0.7893 GB, free: 48.37 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002807/0.9136, allocations: 135.4 kB / 0.7895 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.9136, allocations: 0 / 0.7895 GB, free: 48.3 MB / 0.6544 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004347/0.9141, allocations: 199.1 kB / 0.7896 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 4.791e-05/0.9141, allocations: 39.8 kB / 0.7897 GB, free: 48.2 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.894e-06/0.9142, allocations: 0.875 kB / 0.7897 GB, free: 48.2 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.9142, allocations: 2.656 kB / 0.7897 GB, free: 48.2 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.9143, allocations: 14.48 kB / 0.7897 GB, free: 48.2 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.331e-05/0.9143, allocations: 2.844 kB / 0.7897 GB, free: 48.2 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001989/0.9145, allocations: 35.8 kB / 0.7897 GB, free: 48.2 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.466e-05/0.9146, allocations: 13 kB / 0.7897 GB, free: 48.2 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.6e-05/0.9147, allocations: 118.5 kB / 0.7899 GB, free: 48.09 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.494e-05/0.9147, allocations: 6.625 kB / 0.7899 GB, free: 48.08 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002925/0.915, allocations: 120 kB / 0.79 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.915, allocations: 2.594 kB / 0.79 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.915, allocations: 0 / 0.79 GB, free: 48.05 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 3.299e-05/0.915, allocations: 82.19 kB / 0.7901 GB, free: 47.95 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.698e-05/0.9151, allocations: 5.344 kB / 0.7901 GB, free: 47.95 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.799e-05/0.9151, allocations: 9.703 kB / 0.7901 GB, free: 47.95 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.671e-05/0.9152, allocations: 4.906 kB / 0.7901 GB, free: 47.95 MB / 0.6544 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002944/0.9155, allocations: 190.6 kB / 0.7903 GB, free: 47.84 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002573/0.9158, allocations: 283.1 kB / 0.7905 GB, free: 47.64 MB / 0.6544 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.000101/0.9159, allocations: 32.89 kB / 0.7906 GB, free: 47.64 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 2.758e-05/0.9159, allocations: 90.84 kB / 0.7906 GB, free: 47.57 MB / 0.6544 GB Notification: Performance of Backend: time 1.603e-06/0.9159, allocations: 0.5 kB / 0.7906 GB, free: 47.57 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.0005862/0.9165, allocations: 225.8 kB / 0.7909 GB, free: 47.44 MB / 0.6544 GB Notification: Performance of SimCode: time 0.0004725/0.917, allocations: 0.5974 MB / 0.7914 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of Templates: time 0.0043/0.9213, allocations: 1.504 MB / 0.7929 GB, free: 46.81 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)