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/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.689/1.689, allocations: 292.3 MB / 308.1 MB, free: 4.309 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.001526/0.001526, allocations: 196.1 kB / 376.9 MB, free: 1.828 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.849/1.849, allocations: 205.1 MB / 0.6354 GB, free: 9.828 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001095/0.001095, allocations: 100.8 kB / 0.748 GB, free: 61.05 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001073/0.001073, allocations: 51.92 kB / 0.8704 GB, free: 13.12 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3443/0.3453, allocations: 114.5 MB / 0.9822 GB, free: 10.41 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax): time 0.002767/0.3482, allocations: 0.7935 MB / 0.983 GB, free: 9.613 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.002284/0.3505, allocations: 1.191 MB / 0.9842 GB, free: 8.406 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.25e-05/0.3506, allocations: 7.875 kB / 0.9842 GB, free: 8.398 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 4.341e-05/0.3506, allocations: 0 / 0.9842 GB, free: 8.398 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 0.0001069/0.3508, allocations: 15.92 kB / 0.9842 GB, free: 8.383 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006983/0.3515, allocations: 123.8 kB / 0.9843 GB, free: 8.262 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 0.0001854/0.3517, allocations: 103.8 kB / 0.9844 GB, free: 8.16 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/0.3518, allocations: 12 kB / 0.9844 GB, free: 8.148 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001309/0.352, allocations: 39.91 kB / 0.9845 GB, free: 8.109 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001098/0.3521, allocations: 43.88 kB / 0.9845 GB, free: 8.066 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 3.043e-05/0.3521, allocations: 8 kB / 0.9845 GB, free: 8.059 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 8.927e-05/0.3522, allocations: 15.98 kB / 0.9845 GB, free: 8.043 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 2.882e-05/0.3523, allocations: 11.92 kB / 0.9845 GB, free: 8.031 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 8.348e-05/0.3524, allocations: 43.84 kB / 0.9846 GB, free: 7.988 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0002053/0.3526, allocations: 100 kB / 0.9847 GB, free: 7.891 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.3526, allocations: 0 / 0.9847 GB, free: 7.891 MB / 0.7136 GB Notification: Performance of FrontEnd: time 8.72e-07/0.3526, allocations: 4 kB / 0.9847 GB, free: 7.887 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 7.063e-06/0.3526, allocations: 3.938 kB / 0.9847 GB, free: 7.883 MB / 0.7136 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.0008443/0.3535, allocations: 412.9 kB / 0.9851 GB, free: 7.422 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/0.3535, allocations: 8.031 kB / 0.9851 GB, free: 7.414 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.765e-05/0.3536, allocations: 4.938 kB / 0.9851 GB, free: 7.41 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001578/0.3537, allocations: 168.3 kB / 0.9852 GB, free: 7.207 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.3538, allocations: 8.375 kB / 0.9852 GB, free: 7.199 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.605e-05/0.3538, allocations: 4.375 kB / 0.9853 GB, free: 7.195 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002518/0.3541, allocations: 74.2 kB / 0.9853 GB, free: 7.117 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.3541, allocations: 192 / 0.9853 GB, free: 7.117 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.774e-05/0.3541, allocations: 7.922 kB / 0.9853 GB, free: 7.109 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.3541, allocations: 0 / 0.9853 GB, free: 7.109 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001875/0.3543, allocations: 47.84 kB / 0.9854 GB, free: 7.062 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006464/0.355, allocations: 336.6 kB / 0.9857 GB, free: 6.684 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001749/0.3552, allocations: 46.55 kB / 0.9857 GB, free: 6.629 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.78e-05/0.3553, allocations: 28.94 kB / 0.9858 GB, free: 6.598 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.831e-05/0.3553, allocations: 0 / 0.9858 GB, free: 6.598 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002945/0.3556, allocations: 91.3 kB / 0.9859 GB, free: 6.496 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=7): time 1.783e-06/0.3556, allocations: 0 / 0.9859 GB, free: 6.496 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7): time 0.0004887/0.3561, allocations: 129.6 kB / 0.986 GB, free: 6.363 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/0.3562, allocations: 55.39 kB / 0.986 GB, free: 6.297 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001318/0.3563, allocations: 117.7 kB / 0.9861 GB, free: 6.172 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.995e-05/0.3564, allocations: 33.7 kB / 0.9862 GB, free: 6.133 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.518e-05/0.3564, allocations: 96.2 kB / 0.9863 GB, free: 6.035 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.797e-05/0.3565, allocations: 11.75 kB / 0.9863 GB, free: 6.023 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.725e-05/0.3566, allocations: 41.69 kB / 0.9863 GB, free: 5.977 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001463/0.3567, allocations: 318.8 kB / 0.9866 GB, free: 5.656 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000157/0.3569, allocations: 51.95 kB / 0.9867 GB, free: 5.605 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/0.3571, allocations: 75.77 kB / 0.9867 GB, free: 5.52 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002864/0.3574, allocations: 129 kB / 0.9869 GB, free: 5.375 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3574, allocations: 0 / 0.9869 GB, free: 5.375 MB / 0.7136 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004571/0.3578, allocations: 199.3 kB / 0.9871 GB, free: 5.168 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 5.582e-05/0.3579, allocations: 44.45 kB / 0.9871 GB, free: 5.121 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.3579, allocations: 3.984 kB / 0.9871 GB, free: 5.117 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.3579, allocations: 0 / 0.9871 GB, free: 5.117 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001046/0.358, allocations: 15.94 kB / 0.9871 GB, free: 5.102 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.3581, allocations: 3.984 kB / 0.9871 GB, free: 5.098 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002115/0.3583, allocations: 27.97 kB / 0.9872 GB, free: 5.07 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.566e-05/0.3583, allocations: 7.984 kB / 0.9872 GB, free: 5.062 MB / 0.7136 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.0001511/0.3585, allocations: 141.7 kB / 0.9873 GB, free: 4.914 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.049e-05/0.3585, allocations: 11.91 kB / 0.9873 GB, free: 4.902 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003409/0.3588, allocations: 113.9 kB / 0.9874 GB, free: 4.781 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.3589, allocations: 4.078 kB / 0.9874 GB, free: 4.777 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.3589, allocations: 0 / 0.9874 GB, free: 4.777 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.247e-06/0.3589, allocations: 3.938 kB / 0.9874 GB, free: 4.773 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004496/0.3593, allocations: 362.5 kB / 0.9878 GB, free: 4.363 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.3594, allocations: 0 / 0.9878 GB, free: 4.363 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.561e-05/0.3594, allocations: 11.98 kB / 0.9878 GB, free: 4.352 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.3594, allocations: 0 / 0.9878 GB, free: 4.352 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.385e-05/0.3595, allocations: 4 kB / 0.9878 GB, free: 4.348 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.3595, allocations: 4 kB / 0.9878 GB, free: 4.344 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.3595, allocations: 0 / 0.9878 GB, free: 4.344 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007831/0.3603, allocations: 0.7824 MB / 0.9886 GB, free: 3.504 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 7.451e-05/0.3604, allocations: 92.94 kB / 0.9886 GB, free: 3.395 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.384e-05/0.3604, allocations: 4 kB / 0.9886 GB, free: 3.391 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.358e-05/0.3605, allocations: 4 kB / 0.9886 GB, free: 3.387 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.397e-05/0.3605, allocations: 11.98 kB / 0.9887 GB, free: 3.375 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.414e-06/0.3606, allocations: 0 / 0.9887 GB, free: 3.375 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 5.748e-05/0.3606, allocations: 91.27 kB / 0.9887 GB, free: 3.285 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3606, allocations: 0 / 0.9887 GB, free: 3.285 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003595/0.361, allocations: 20 kB / 0.9888 GB, free: 3.266 MB / 0.7136 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.0002596/0.3613, allocations: 111.5 kB / 0.9889 GB, free: 3.148 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0004264/0.3617, allocations: 171.2 kB / 0.989 GB, free: 2.969 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3617, allocations: 0 / 0.989 GB, free: 2.969 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.000127/0.3618, allocations: 36.52 kB / 0.9891 GB, free: 2.934 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002871/0.3621, allocations: 19.97 kB / 0.9891 GB, free: 2.914 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005976/0.3627, allocations: 290.7 kB / 0.9894 GB, free: 2.594 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003833/0.3631, allocations: 0.6848 MB / 0.99 GB, free: 1.883 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.747e-05/0.3632, allocations: 7.984 kB / 0.99 GB, free: 1.875 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.221e-05/0.3633, allocations: 11.44 kB / 0.9901 GB, free: 1.863 MB / 0.7136 GB Notification: Performance of SimCode: time 5.21e-07/0.3633, allocations: 0 / 0.9901 GB, free: 1.863 MB / 0.7136 GB Notification: Performance of Templates: time 0.004919/0.3682, allocations: 1.328 MB / 0.9913 GB, free: 0.5508 MB / 0.7136 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)