Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.941/1.941, allocations: 288.4 MB / 303.7 MB, free: 8.105 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002159/0.002159, allocations: 180.5 kB / 372.3 MB, free: 10.12 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.886/1.886, allocations: 205.4 MB / 0.631 GB, free: 9.883 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008491/0.0008493, allocations: 100.5 kB / 0.7444 GB, free: 5.785 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.00048/0.00048, allocations: 13.25 kB / 0.8675 GB, free: 142 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3094/0.3099, allocations: 115.3 MB / 0.9801 GB, free: 27.32 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.001062/0.311, allocations: 449.9 kB / 0.9806 GB, free: 26.88 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001682/0.3128, allocations: 1.165 MB / 0.9817 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.551e-05/0.3129, allocations: 0 / 0.9817 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.218e-05/0.3129, allocations: 0 / 0.9817 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 8.826e-05/0.313, allocations: 3.938 kB / 0.9817 GB, free: 25.7 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006075/0.3136, allocations: 126.2 kB / 0.9818 GB, free: 25.58 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001536/0.3138, allocations: 95.8 kB / 0.9819 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001292/0.3139, allocations: 15.98 kB / 0.9819 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001077/0.314, allocations: 35.89 kB / 0.982 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 8.373e-05/0.3141, allocations: 35.89 kB / 0.982 GB, free: 25.4 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.458e-05/0.3141, allocations: 4 kB / 0.982 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.114e-05/0.3142, allocations: 19.94 kB / 0.982 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.162e-05/0.3143, allocations: 11.98 kB / 0.982 GB, free: 25.36 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 8.239e-05/0.3143, allocations: 69.53 kB / 0.9821 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001275/0.3145, allocations: 68.11 kB / 0.9822 GB, free: 25.22 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.3145, allocations: 0 / 0.9822 GB, free: 25.22 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.755e-06/0.3145, allocations: 4 kB / 0.9822 GB, free: 25.22 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.3145, allocations: 0 / 0.9822 GB, free: 25.22 MB / 0.6198 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.0005587/0.3151, allocations: 389.1 kB / 0.9826 GB, free: 24.78 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.904e-05/0.3151, allocations: 19.97 kB / 0.9826 GB, free: 24.76 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.959e-05/0.3152, allocations: 8.844 kB / 0.9826 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.482e-05/0.3153, allocations: 172.3 kB / 0.9827 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.516e-05/0.3153, allocations: 4.375 kB / 0.9827 GB, free: 24.54 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.783e-05/0.3154, allocations: 8.375 kB / 0.9828 GB, free: 24.54 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002078/0.3156, allocations: 70.22 kB / 0.9828 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.3156, allocations: 4.125 kB / 0.9828 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.3156, allocations: 3.938 kB / 0.9828 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.3156, allocations: 4 kB / 0.9828 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001973/0.3158, allocations: 51.95 kB / 0.9829 GB, free: 24.4 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004916/0.3163, allocations: 328.7 kB / 0.9832 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001547/0.3165, allocations: 58.48 kB / 0.9833 GB, free: 23.96 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.892e-05/0.3166, allocations: 36.86 kB / 0.9833 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.532e-05/0.3166, allocations: 8 kB / 0.9833 GB, free: 23.91 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002315/0.3169, allocations: 91.42 kB / 0.9834 GB, free: 23.81 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=7): time 1.532e-06/0.3169, allocations: 0 / 0.9834 GB, free: 23.81 MB / 0.6198 GB Notification: Performance of matching and sorting (n=7): time 0.0004119/0.3173, allocations: 149.5 kB / 0.9835 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.225e-05/0.3174, allocations: 55.34 kB / 0.9836 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.194e-05/0.3174, allocations: 113.8 kB / 0.9837 GB, free: 23.47 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.896e-05/0.3175, allocations: 33.7 kB / 0.9837 GB, free: 23.43 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.838e-05/0.3175, allocations: 100 kB / 0.9838 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.545e-05/0.3175, allocations: 11.8 kB / 0.9838 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.205e-05/0.3176, allocations: 8 kB / 0.9838 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.54e-05/0.3176, allocations: 318.8 kB / 0.9841 GB, free: 22.99 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000139/0.3178, allocations: 51.97 kB / 0.9842 GB, free: 22.94 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001437/0.3179, allocations: 87.39 kB / 0.9843 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002473/0.3182, allocations: 145 kB / 0.9844 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3182, allocations: 0 / 0.9844 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003781/0.3186, allocations: 199.2 kB / 0.9846 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 3.24e-05/0.3186, allocations: 37.69 kB / 0.9846 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.3186, allocations: 4.062 kB / 0.9846 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.3186, allocations: 0 / 0.9846 GB, free: 22.43 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.563e-05/0.3187, allocations: 23.86 kB / 0.9847 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.3188, allocations: 4 kB / 0.9847 GB, free: 22.4 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002109/0.319, allocations: 55.86 kB / 0.9847 GB, free: 22.35 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.971e-05/0.319, allocations: 4 kB / 0.9847 GB, free: 22.34 MB / 0.6198 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,$whenCondition1,$PRE.booPul.y,booPul.y,$PRE.triggeredMax.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.355e-05/0.3191, allocations: 125.7 kB / 0.9848 GB, free: 22.21 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.328e-05/0.3191, allocations: 3.906 kB / 0.9848 GB, free: 22.21 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002846/0.3194, allocations: 133.9 kB / 0.985 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.3194, allocations: 0 / 0.985 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.3194, allocations: 0 / 0.985 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.3194, allocations: 480 / 0.985 GB, free: 22.07 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000372/0.3198, allocations: 370.5 kB / 0.9853 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.3198, allocations: 4 kB / 0.9853 GB, free: 21.65 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.253e-05/0.3199, allocations: 15.92 kB / 0.9853 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.3199, allocations: 0 / 0.9853 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.3199, allocations: 3.938 kB / 0.9854 GB, free: 21.63 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.3199, allocations: 0 / 0.9854 GB, free: 21.63 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.3199, allocations: 4 kB / 0.9854 GB, free: 21.63 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002401/0.3202, allocations: 215.4 kB / 0.9856 GB, free: 21.4 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.655e-05/0.3202, allocations: 81.02 kB / 0.9856 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.797e-05/0.3202, allocations: 3.984 kB / 0.9856 GB, free: 21.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.12e-05/0.3203, allocations: 12 kB / 0.9857 GB, free: 21.29 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.956e-05/0.3204, allocations: 11.92 kB / 0.9857 GB, free: 21.28 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.653e-06/0.3204, allocations: 0 / 0.9857 GB, free: 21.28 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.792e-05/0.3204, allocations: 91.27 kB / 0.9858 GB, free: 21.19 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3205, allocations: 0 / 0.9858 GB, free: 21.19 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002557/0.3207, allocations: 24 kB / 0.9858 GB, free: 21.16 MB / 0.6198 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000175/0.3209, allocations: 107.2 kB / 0.9859 GB, free: 21.05 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003363/0.3212, allocations: 179.9 kB / 0.986 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3213, allocations: 3.938 kB / 0.9861 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001098/0.3214, allocations: 43.97 kB / 0.9861 GB, free: 20.81 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003004/0.3217, allocations: 18.45 kB / 0.9861 GB, free: 20.8 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003841/0.3221, allocations: 165.9 kB / 0.9863 GB, free: 20.62 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001527/0.3222, allocations: 0.6887 MB / 0.9869 GB, free: 19.9 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.928e-05/0.3223, allocations: 11.75 kB / 0.987 GB, free: 19.89 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.226e-05/0.3223, allocations: 7.438 kB / 0.987 GB, free: 19.88 MB / 0.6198 GB Notification: Performance of SimCode: time 5.51e-07/0.3223, allocations: 4 kB / 0.987 GB, free: 19.88 MB / 0.6198 GB Notification: Performance of Templates: time 0.003955/0.3263, allocations: 1.258 MB / 0.9882 GB, free: 18.63 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)