Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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.7.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.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.326/1.326, allocations: 252 MB / 267.9 MB, free: 10.94 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001114/0.001114, allocations: 177.6 kB / 327.6 MB, free: 2.18 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.409/1.409, allocations: 205.4 MB / 0.5785 GB, free: 20.21 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007287/0.0007287, allocations: 96.88 kB / 0.6831 GB, free: 12.84 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004211/0.0004215, allocations: 13 kB / 0.7974 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2024/0.2028, allocations: 106.3 MB / 0.9012 GB, free: 63.68 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1583/0.3612, allocations: 132 MB / 1.03 GB, free: 11.53 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002924/0.3615, allocations: 71.95 kB / 1.03 GB, free: 11.46 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003962/0.3655, allocations: 1.478 MB / 1.032 GB, free: 9.98 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.355e-06/0.3655, allocations: 0 / 1.032 GB, free: 9.98 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.767e-06/0.3656, allocations: 0 / 1.032 GB, free: 9.98 MB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004805/0.366, allocations: 389.1 kB / 1.032 GB, free: 9.551 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.3661, allocations: 8.031 kB / 1.032 GB, free: 9.543 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.896e-05/0.3661, allocations: 4.938 kB / 1.032 GB, free: 9.539 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001332/0.3663, allocations: 172.2 kB / 1.032 GB, free: 9.332 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.224e-05/0.3663, allocations: 8.375 kB / 1.032 GB, free: 9.324 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.252e-05/0.3663, allocations: 4.375 kB / 1.032 GB, free: 9.32 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000215/0.3665, allocations: 78.2 kB / 1.032 GB, free: 9.238 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.3666, allocations: 192 / 1.032 GB, free: 9.238 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.439e-05/0.3666, allocations: 3.938 kB / 1.032 GB, free: 9.234 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.3666, allocations: 0 / 1.032 GB, free: 9.234 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001906/0.3668, allocations: 59.95 kB / 1.032 GB, free: 9.176 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004213/0.3672, allocations: 292.8 kB / 1.033 GB, free: 8.84 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001548/0.3674, allocations: 58.55 kB / 1.033 GB, free: 8.773 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.908e-05/0.3675, allocations: 36.95 kB / 1.033 GB, free: 8.734 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.3675, allocations: 0 / 1.033 GB, free: 8.734 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002251/0.3678, allocations: 95.22 kB / 1.033 GB, free: 8.629 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=7): time 1.432e-06/0.3678, allocations: 0 / 1.033 GB, free: 8.629 MB / 0.6823 GB Notification: Performance of matching and sorting (n=7): time 0.0003923/0.3682, allocations: 145.6 kB / 1.033 GB, free: 8.48 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.599e-05/0.3682, allocations: 55.41 kB / 1.033 GB, free: 8.414 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.125e-05/0.3683, allocations: 117.8 kB / 1.033 GB, free: 8.289 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.501e-05/0.3683, allocations: 25.7 kB / 1.033 GB, free: 8.258 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.159e-05/0.3684, allocations: 92.05 kB / 1.033 GB, free: 8.164 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.225e-05/0.3684, allocations: 15.75 kB / 1.033 GB, free: 8.148 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.048e-06/0.3684, allocations: 0 / 1.033 GB, free: 8.148 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.3685, allocations: 322.8 kB / 1.034 GB, free: 7.824 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.728e-05/0.3686, allocations: 35.98 kB / 1.034 GB, free: 7.789 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.893e-05/0.3687, allocations: 54.42 kB / 1.034 GB, free: 7.727 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001902/0.3689, allocations: 86.53 kB / 1.034 GB, free: 7.633 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.369, allocations: 0 / 1.034 GB, free: 7.633 MB / 0.6823 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002406/0.3692, allocations: 117.5 kB / 1.034 GB, free: 7.512 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.3692, allocations: 8 kB / 1.034 GB, free: 7.504 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.3692, allocations: 0 / 1.034 GB, free: 7.504 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.3693, allocations: 3.938 kB / 1.034 GB, free: 7.5 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001027/0.3694, allocations: 16.08 kB / 1.034 GB, free: 7.484 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/0.3694, allocations: 4 kB / 1.034 GB, free: 7.48 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.343e-05/0.3695, allocations: 15.98 kB / 1.034 GB, free: 7.465 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.3695, allocations: 15.98 kB / 1.034 GB, free: 7.449 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$PRE.triggeredMax.y,triggeredMax.y,$whenCondition1,booPul.y,$PRE.booPul.pulseStart,booPul.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * 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 7.676e-05/0.3696, allocations: 117.8 kB / 1.034 GB, free: 7.324 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.167e-05/0.3696, allocations: 4 kB / 1.034 GB, free: 7.32 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002772/0.3699, allocations: 125.9 kB / 1.034 GB, free: 7.191 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.3699, allocations: 0 / 1.034 GB, free: 7.191 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.3699, allocations: 0 / 1.034 GB, free: 7.191 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.379e-06/0.3699, allocations: 0 / 1.034 GB, free: 7.191 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004812/0.3704, allocations: 390.4 kB / 1.034 GB, free: 6.754 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.3704, allocations: 7.922 kB / 1.034 GB, free: 6.746 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.418e-05/0.3705, allocations: 12 kB / 1.034 GB, free: 6.734 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.3705, allocations: 0 / 1.034 GB, free: 6.734 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.155e-05/0.3705, allocations: 3.984 kB / 1.035 GB, free: 6.73 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3705, allocations: 0 / 1.035 GB, free: 6.73 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3705, allocations: 0 / 1.035 GB, free: 6.73 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000289/0.3708, allocations: 212.2 kB / 1.035 GB, free: 6.508 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.656e-05/0.3709, allocations: 85 kB / 1.035 GB, free: 6.406 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.903e-05/0.3709, allocations: 0 / 1.035 GB, free: 6.406 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.371, allocations: 24.17 kB / 1.035 GB, free: 6.383 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.2e-05/0.3711, allocations: 11.92 kB / 1.035 GB, free: 6.371 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.3711, allocations: 7.938 kB / 1.035 GB, free: 6.363 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 4.55e-05/0.3711, allocations: 91.33 kB / 1.035 GB, free: 6.273 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.433e-06/0.3711, allocations: 0 / 1.035 GB, free: 6.273 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002116/0.3714, allocations: 15.94 kB / 1.035 GB, free: 6.258 MB / 0.6823 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 (booPul.y,$whenCondition2,$whenCondition1,triggeredMax.y,booPul.pulseStart) * 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.0001053/0.3715, allocations: 99.25 kB / 1.035 GB, free: 6.152 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002396/0.3717, allocations: 75.95 kB / 1.035 GB, free: 6.078 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3717, allocations: 4 kB / 1.035 GB, free: 6.074 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001138/0.3718, allocations: 47.91 kB / 1.035 GB, free: 6.027 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002639/0.3721, allocations: 19.92 kB / 1.035 GB, free: 6.008 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003606/0.3725, allocations: 165.6 kB / 1.035 GB, free: 5.816 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002297/0.3727, allocations: 0.6887 MB / 1.036 GB, free: 5.102 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.347e-05/0.3728, allocations: 7.859 kB / 1.036 GB, free: 5.094 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.814e-05/0.3728, allocations: 11.44 kB / 1.036 GB, free: 5.082 MB / 0.6823 GB Notification: Performance of SimCode: time 3.8e-07/0.3728, allocations: 0 / 1.036 GB, free: 5.082 MB / 0.6823 GB Notification: Performance of Templates: time 0.002778/0.3756, allocations: 0.7491 MB / 1.037 GB, free: 4.34 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)