Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.323/2.323, allocations: 251.1 MB / 266.7 MB, free: 11.53 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.001308/0.001308, allocations: 185.3 kB / 326.2 MB, free: 2.832 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.463/2.463, allocations: 205.4 MB / 0.5772 GB, free: 20.75 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.001073/0.001073, allocations: 86.23 kB / 0.6817 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0007287/0.0007291, allocations: 11.97 kB / 0.7957 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.2207, allocations: 106.3 MB / 0.8995 GB, free: 65.48 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2273/0.4481, allocations: 131.8 MB / 1.028 GB, free: 13.54 MB / 0.6824 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003072/0.4485, allocations: 75.94 kB / 1.028 GB, free: 13.46 MB / 0.6824 GB Notification: Performance of FrontEnd - DAE generated: time 0.008333/0.4568, allocations: 1.486 MB / 1.03 GB, free: 11.97 MB / 0.6824 GB Notification: Performance of FrontEnd: time 4.117e-06/0.4569, allocations: 0 / 1.03 GB, free: 11.97 MB / 0.6824 GB Notification: Performance of Transformations before backend: time 1.227e-05/0.457, allocations: 0 / 1.03 GB, free: 11.97 MB / 0.6824 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.001144/0.4581, allocations: 385.3 kB / 1.03 GB, free: 11.54 MB / 0.6824 GB Notification: Performance of prepare preOptimizeDAE: time 6.03e-05/0.4582, allocations: 8.031 kB / 1.03 GB, free: 11.54 MB / 0.6824 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.025e-05/0.4583, allocations: 4.938 kB / 1.03 GB, free: 11.53 MB / 0.6824 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002388/0.4585, allocations: 176.2 kB / 1.03 GB, free: 11.32 MB / 0.6824 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.921e-05/0.4586, allocations: 4.375 kB / 1.03 GB, free: 11.32 MB / 0.6824 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.507e-05/0.4586, allocations: 4.375 kB / 1.03 GB, free: 11.31 MB / 0.6824 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000442/0.4591, allocations: 70.22 kB / 1.03 GB, free: 11.24 MB / 0.6824 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.444e-05/0.4591, allocations: 192 / 1.03 GB, free: 11.24 MB / 0.6824 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.69e-05/0.4592, allocations: 7.938 kB / 1.03 GB, free: 11.23 MB / 0.6824 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.4592, allocations: 0 / 1.03 GB, free: 11.23 MB / 0.6824 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006198/0.4599, allocations: 63.88 kB / 1.03 GB, free: 11.17 MB / 0.6824 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009742/0.4609, allocations: 296.8 kB / 1.031 GB, free: 10.83 MB / 0.6824 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004219/0.4613, allocations: 58.55 kB / 1.031 GB, free: 10.76 MB / 0.6824 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003268/0.4617, allocations: 34.66 kB / 1.031 GB, free: 10.73 MB / 0.6824 GB Notification: Performance of preOpt evalFunc (simulation): time 4.081e-05/0.4617, allocations: 4 kB / 1.031 GB, free: 10.72 MB / 0.6824 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005106/0.4623, allocations: 95.23 kB / 1.031 GB, free: 10.62 MB / 0.6824 GB Notification: Performance of pre-optimization done (n=7): time 4.037e-06/0.4623, allocations: 0 / 1.031 GB, free: 10.62 MB / 0.6824 GB Notification: Performance of matching and sorting (n=7): time 0.0008941/0.4632, allocations: 145.5 kB / 1.031 GB, free: 10.47 MB / 0.6824 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.432e-05/0.4633, allocations: 51.41 kB / 1.031 GB, free: 10.41 MB / 0.6824 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001957/0.4635, allocations: 113.9 kB / 1.031 GB, free: 10.29 MB / 0.6824 GB Notification: Performance of collectPreVariables (initialization): time 4.063e-05/0.4636, allocations: 25.7 kB / 1.031 GB, free: 10.25 MB / 0.6824 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.4637, allocations: 96.12 kB / 1.031 GB, free: 10.16 MB / 0.6824 GB Notification: Performance of collectInitialBindings (initialization): time 6.491e-05/0.4638, allocations: 19.66 kB / 1.031 GB, free: 10.14 MB / 0.6824 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.995e-05/0.4639, allocations: 7.938 kB / 1.031 GB, free: 10.13 MB / 0.6824 GB Notification: Performance of setup shared object (initialization): time 0.0002469/0.4641, allocations: 318.8 kB / 1.032 GB, free: 9.809 MB / 0.6824 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003307/0.4645, allocations: 35.97 kB / 1.032 GB, free: 9.773 MB / 0.6824 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003179/0.4648, allocations: 46.56 kB / 1.032 GB, free: 9.719 MB / 0.6824 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002727/0.4651, allocations: 35.97 kB / 1.032 GB, free: 9.684 MB / 0.6824 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.144e-06/0.4651, allocations: 4 kB / 1.032 GB, free: 9.68 MB / 0.6824 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0007394/0.4659, allocations: 113.6 kB / 1.032 GB, free: 9.562 MB / 0.6824 GB Notification: Performance of prepare postOptimizeDAE: time 2.909e-05/0.4659, allocations: 4 kB / 1.032 GB, free: 9.559 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.466, allocations: 0 / 1.032 GB, free: 9.559 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.115e-05/0.466, allocations: 0 / 1.032 GB, free: 9.559 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002592/0.4663, allocations: 23.92 kB / 1.032 GB, free: 9.535 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.4663, allocations: 8.031 kB / 1.032 GB, free: 9.527 MB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002262/0.4666, allocations: 19.92 kB / 1.032 GB, free: 9.508 MB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.785e-05/0.4666, allocations: 0 / 1.032 GB, free: 9.508 MB / 0.6824 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 0.0001901/0.4668, allocations: 117.8 kB / 1.032 GB, free: 9.383 MB / 0.6824 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.639e-05/0.4669, allocations: 7.906 kB / 1.032 GB, free: 9.375 MB / 0.6824 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007551/0.4676, allocations: 126 kB / 1.032 GB, free: 9.246 MB / 0.6824 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.4677, allocations: 0 / 1.032 GB, free: 9.246 MB / 0.6824 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.4677, allocations: 3.938 kB / 1.032 GB, free: 9.242 MB / 0.6824 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.4677, allocations: 0 / 1.032 GB, free: 9.242 MB / 0.6824 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001293/0.469, allocations: 383.2 kB / 1.032 GB, free: 8.812 MB / 0.6824 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.99e-06/0.4691, allocations: 4 kB / 1.032 GB, free: 8.809 MB / 0.6824 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000178/0.4693, allocations: 11.98 kB / 1.033 GB, free: 8.797 MB / 0.6824 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.145e-06/0.4693, allocations: 0 / 1.033 GB, free: 8.797 MB / 0.6824 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.969e-05/0.4693, allocations: 4 kB / 1.033 GB, free: 8.793 MB / 0.6824 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.4694, allocations: 0 / 1.033 GB, free: 8.793 MB / 0.6824 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.668e-06/0.4694, allocations: 7.938 kB / 1.033 GB, free: 8.785 MB / 0.6824 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007928/0.4702, allocations: 215.4 kB / 1.033 GB, free: 8.559 MB / 0.6824 GB Notification: Performance of postOpt removeConstants (simulation): time 9.107e-05/0.4703, allocations: 81.2 kB / 1.033 GB, free: 8.461 MB / 0.6824 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.979e-05/0.4704, allocations: 11.98 kB / 1.033 GB, free: 8.449 MB / 0.6824 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003179/0.4707, allocations: 15.92 kB / 1.033 GB, free: 8.434 MB / 0.6824 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.827e-05/0.4708, allocations: 12.02 kB / 1.033 GB, free: 8.422 MB / 0.6824 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.426e-05/0.4709, allocations: 7.984 kB / 1.033 GB, free: 8.414 MB / 0.6824 GB Notification: Performance of sorting global known variables: time 0.0001113/0.471, allocations: 87.27 kB / 1.033 GB, free: 8.328 MB / 0.6824 GB Notification: Performance of sort global known variables: time 8.81e-07/0.471, allocations: 0 / 1.033 GB, free: 8.328 MB / 0.6824 GB Notification: Performance of remove unused functions: time 0.0005413/0.4716, allocations: 20 kB / 1.033 GB, free: 8.309 MB / 0.6824 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.0002264/0.4718, allocations: 99.23 kB / 1.033 GB, free: 8.203 MB / 0.6824 GB Notification: Performance of simCode: created initialization part: time 0.0007106/0.4726, allocations: 75.89 kB / 1.033 GB, free: 8.129 MB / 0.6824 GB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.4726, allocations: 8.062 kB / 1.033 GB, free: 8.121 MB / 0.6824 GB Notification: Performance of simCode: created simulation system equations: time 0.000337/0.473, allocations: 39.91 kB / 1.033 GB, free: 8.082 MB / 0.6824 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000638/0.4736, allocations: 11.94 kB / 1.033 GB, free: 8.07 MB / 0.6824 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007365/0.4744, allocations: 178.5 kB / 1.033 GB, free: 7.863 MB / 0.6824 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004395/0.4749, allocations: 0.6848 MB / 1.034 GB, free: 7.152 MB / 0.6824 GB Notification: Performance of simCode: alias equations: time 9.165e-05/0.475, allocations: 11.84 kB / 1.034 GB, free: 7.141 MB / 0.6824 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.633e-05/0.4751, allocations: 11.44 kB / 1.034 GB, free: 7.129 MB / 0.6824 GB Notification: Performance of SimCode: time 1.814e-06/0.4751, allocations: 0 / 1.034 GB, free: 7.129 MB / 0.6824 GB Notification: Performance of Templates: time 0.00598/0.4811, allocations: 0.7415 MB / 1.035 GB, free: 6.395 MB / 0.6824 GB make -j1 -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.makefile (rm -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; mkfifo Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe >> ../files/Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.sim & ./Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredMax.pipe 2>&1)