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.0007848/0.0007849, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.00672/0.006721, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.793/1.793, allocations: 205.4 MB / 222.4 MB, free: 5.551 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.814/1.814, allocations: 292.7 MB / 0.5502 GB, free: 14.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.0008547/0.0008549, allocations: 16.03 kB / 0.6743 GB, free: 25.79 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.361, allocations: 116.3 MB / 0.7879 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.00169/0.3627, allocations: 469.2 kB / 0.7883 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.002723/0.3655, allocations: 1.196 MB / 0.7895 GB, free: 9.91 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001022/0.3657, allocations: 0 / 0.7895 GB, free: 9.91 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.179e-05/0.3657, allocations: 0 / 0.7895 GB, free: 9.91 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001213/0.3658, allocations: 3.938 kB / 0.7895 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008114/0.3667, allocations: 126.9 kB / 0.7896 GB, free: 9.785 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002341/0.3669, allocations: 107.7 kB / 0.7897 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001602/0.3671, allocations: 16 kB / 0.7897 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001954/0.3673, allocations: 31.97 kB / 0.7898 GB, free: 9.633 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001316/0.3674, allocations: 39.81 kB / 0.7898 GB, free: 9.594 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.307e-05/0.3675, allocations: 8 kB / 0.7898 GB, free: 9.586 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001133/0.3676, allocations: 19.98 kB / 0.7898 GB, free: 9.566 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.074e-05/0.3676, allocations: 4 kB / 0.7898 GB, free: 9.562 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.3678, allocations: 65.53 kB / 0.7899 GB, free: 9.492 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000259/0.368, allocations: 103.9 kB / 0.79 GB, free: 9.391 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 9.107e-06/0.368, allocations: 8 kB / 0.79 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of FrontEnd: time 6.573e-06/0.3681, allocations: 0 / 0.79 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.244e-06/0.3681, allocations: 3.938 kB / 0.79 GB, free: 9.379 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.0008302/0.3689, allocations: 393.1 kB / 0.7904 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 7.738e-05/0.369, allocations: 12.03 kB / 0.7904 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.155e-05/0.3691, allocations: 8.844 kB / 0.7904 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001763/0.3693, allocations: 168.3 kB / 0.7906 GB, free: 8.715 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.752e-05/0.3693, allocations: 4.375 kB / 0.7906 GB, free: 8.711 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.629e-05/0.3693, allocations: 8.375 kB / 0.7906 GB, free: 8.703 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002955/0.3696, allocations: 74.22 kB / 0.7907 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.3697, allocations: 192 / 0.7907 GB, free: 8.625 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.923e-05/0.3697, allocations: 3.938 kB / 0.7907 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.3697, allocations: 0 / 0.7907 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002281/0.3699, allocations: 63.89 kB / 0.7907 GB, free: 8.559 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006229/0.3706, allocations: 320.7 kB / 0.791 GB, free: 8.195 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000167/0.3708, allocations: 54.55 kB / 0.7911 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/0.3709, allocations: 40.92 kB / 0.7911 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.45e-05/0.3709, allocations: 3.938 kB / 0.7911 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002726/0.3712, allocations: 95.3 kB / 0.7912 GB, free: 7.98 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=7): time 2.224e-06/0.3712, allocations: 0 / 0.7912 GB, free: 7.98 MB / 0.6075 GB Notification: Performance of matching and sorting (n=7): time 0.0005046/0.3717, allocations: 149.6 kB / 0.7914 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.149e-05/0.3718, allocations: 59.41 kB / 0.7914 GB, free: 7.758 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000141/0.3719, allocations: 113.8 kB / 0.7915 GB, free: 7.637 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 4.121e-05/0.372, allocations: 33.69 kB / 0.7916 GB, free: 7.598 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.721e-05/0.3721, allocations: 95.98 kB / 0.7916 GB, free: 7.5 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.47e-05/0.3721, allocations: 11.81 kB / 0.7917 GB, free: 7.488 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.048e-05/0.3722, allocations: 21.7 kB / 0.7917 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001399/0.3723, allocations: 322.8 kB / 0.792 GB, free: 7.137 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/0.3725, allocations: 55.95 kB / 0.792 GB, free: 7.082 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002084/0.3727, allocations: 83.33 kB / 0.7921 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003059/0.373, allocations: 141 kB / 0.7923 GB, free: 6.832 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.3731, allocations: 0 / 0.7923 GB, free: 6.832 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000475/0.3735, allocations: 215.2 kB / 0.7925 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 5.315e-05/0.3736, allocations: 37.7 kB / 0.7925 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.3736, allocations: 0 / 0.7925 GB, free: 6.566 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.832e-05/0.3736, allocations: 3.984 kB / 0.7925 GB, free: 6.562 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.3738, allocations: 15.94 kB / 0.7925 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.3738, allocations: 0 / 0.7925 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002411/0.374, allocations: 51.92 kB / 0.7926 GB, free: 6.496 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.466e-05/0.3741, allocations: 11.98 kB / 0.7926 GB, free: 6.484 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.0001213/0.3742, allocations: 126.4 kB / 0.7927 GB, free: 6.352 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.693e-05/0.3742, allocations: 11.91 kB / 0.7927 GB, free: 6.34 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003127/0.3745, allocations: 122 kB / 0.7928 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.3745, allocations: 3.984 kB / 0.7928 GB, free: 6.211 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.3746, allocations: 0 / 0.7928 GB, free: 6.211 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.3746, allocations: 0 / 0.7928 GB, free: 6.211 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004438/0.375, allocations: 370.5 kB / 0.7932 GB, free: 5.793 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.375, allocations: 4.469 kB / 0.7932 GB, free: 5.789 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.163e-05/0.3751, allocations: 8 kB / 0.7932 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.3751, allocations: 4 kB / 0.7932 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.412e-05/0.3751, allocations: 7.984 kB / 0.7932 GB, free: 5.77 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.3751, allocations: 0 / 0.7932 GB, free: 5.77 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.3751, allocations: 7.938 kB / 0.7932 GB, free: 5.762 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003291/0.3755, allocations: 223.8 kB / 0.7934 GB, free: 5.527 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.996e-05/0.3755, allocations: 81.02 kB / 0.7935 GB, free: 5.43 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.471e-05/0.3756, allocations: 4 kB / 0.7935 GB, free: 5.426 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.95e-05/0.3757, allocations: 7.984 kB / 0.7935 GB, free: 5.418 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.764e-05/0.3758, allocations: 15.92 kB / 0.7935 GB, free: 5.402 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.244e-06/0.3758, allocations: 0 / 0.7935 GB, free: 5.402 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.051e-05/0.3759, allocations: 87.28 kB / 0.7936 GB, free: 5.316 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.01e-07/0.3759, allocations: 0 / 0.7936 GB, free: 5.316 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002647/0.3762, allocations: 27.98 kB / 0.7936 GB, free: 5.289 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.0001891/0.3763, allocations: 103.2 kB / 0.7937 GB, free: 5.18 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0004185/0.3768, allocations: 175.3 kB / 0.7939 GB, free: 4.996 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3768, allocations: 8 kB / 0.7939 GB, free: 4.988 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001414/0.3769, allocations: 43.91 kB / 0.794 GB, free: 4.945 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002982/0.3772, allocations: 16.05 kB / 0.794 GB, free: 4.93 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004124/0.3777, allocations: 174.6 kB / 0.7941 GB, free: 4.73 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003162/0.378, allocations: 0.6833 MB / 0.7948 GB, free: 4.023 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.617e-05/0.378, allocations: 7.984 kB / 0.7948 GB, free: 4.016 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.319e-05/0.3781, allocations: 11.44 kB / 0.7948 GB, free: 4.004 MB / 0.6075 GB Notification: Performance of SimCode: time 3.21e-07/0.3781, allocations: 0 / 0.7948 GB, free: 4.004 MB / 0.6075 GB Notification: Performance of Templates: time 0.005071/0.3831, allocations: 1.272 MB / 0.7961 GB, free: 2.746 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: