Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Validation.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") translateModel(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.0107/0.0107, allocations: 170 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.636/1.636, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.102/3.102, allocations: 473.4 MB / 0.7469 GB, free: 6.07 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003971/0.0003972, allocations: 12.06 kB / 0.9158 GB, free: 33.1 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4451/0.4455, allocations: 162.2 MB / 1.074 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax): time 0.001125/0.4467, allocations: 461 kB / 1.075 GB, free: 7.082 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001816/0.4485, allocations: 1.186 MB / 1.076 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.824e-05/0.4486, allocations: 4 kB / 1.076 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.169e-05/0.4486, allocations: 3.938 kB / 1.076 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.408e-05/0.4487, allocations: 11.92 kB / 1.076 GB, free: 5.863 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005944/0.4493, allocations: 135.3 kB / 1.076 GB, free: 5.734 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001381/0.4494, allocations: 99.81 kB / 1.076 GB, free: 5.637 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.4496, allocations: 8 kB / 1.076 GB, free: 5.629 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001002/0.4497, allocations: 47.89 kB / 1.076 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.885e-05/0.4498, allocations: 39.83 kB / 1.076 GB, free: 5.543 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.27e-05/0.4498, allocations: 4 kB / 1.076 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.321e-05/0.4499, allocations: 19.98 kB / 1.076 GB, free: 5.52 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.303e-05/0.4499, allocations: 7.984 kB / 1.076 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.993e-05/0.45, allocations: 61.55 kB / 1.076 GB, free: 5.445 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001678/0.4502, allocations: 99.73 kB / 1.076 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 1.797e-05/0.4502, allocations: 0 / 1.076 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.074e-06/0.4502, allocations: 0 / 1.076 GB, free: 5.348 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.701e-06/0.4502, allocations: 0 / 1.076 GB, free: 5.348 MB / 0.8262 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.000689/0.4509, allocations: 401.3 kB / 1.077 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 6.075e-05/0.451, allocations: 8.031 kB / 1.077 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.013e-05/0.451, allocations: 12.78 kB / 1.077 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001608/0.4512, allocations: 176.3 kB / 1.077 GB, free: 4.668 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.915e-05/0.4513, allocations: 4.375 kB / 1.077 GB, free: 4.664 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.844e-05/0.4513, allocations: 4.375 kB / 1.077 GB, free: 4.66 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002258/0.4515, allocations: 74.22 kB / 1.077 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.888e-06/0.4515, allocations: 192 / 1.077 GB, free: 4.582 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.4516, allocations: 3.938 kB / 1.077 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.4516, allocations: 4 kB / 1.077 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002026/0.4518, allocations: 55.95 kB / 1.077 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005088/0.4523, allocations: 324.6 kB / 1.077 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001696/0.4525, allocations: 54.55 kB / 1.077 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001095/0.4526, allocations: 44.86 kB / 1.077 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.198e-05/0.4526, allocations: 0 / 1.077 GB, free: 4.043 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002687/0.4529, allocations: 91.3 kB / 1.077 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.4529, allocations: 4 kB / 1.077 GB, free: 3.938 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0005376/0.4535, allocations: 153.6 kB / 1.078 GB, free: 3.781 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.595e-05/0.4535, allocations: 55.41 kB / 1.078 GB, free: 3.715 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001249/0.4537, allocations: 117.8 kB / 1.078 GB, free: 3.59 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.456e-05/0.4537, allocations: 29.7 kB / 1.078 GB, free: 3.555 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.571e-05/0.4538, allocations: 92.12 kB / 1.078 GB, free: 3.461 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.391e-05/0.4538, allocations: 15.72 kB / 1.078 GB, free: 3.445 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.719e-05/0.4539, allocations: 17.72 kB / 1.078 GB, free: 3.422 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001168/0.454, allocations: 322.8 kB / 1.078 GB, free: 3.098 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001617/0.4541, allocations: 59.91 kB / 1.078 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001893/0.4543, allocations: 79.39 kB / 1.078 GB, free: 2.949 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002902/0.4546, allocations: 149 kB / 1.079 GB, free: 2.785 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.4547, allocations: 0 / 1.079 GB, free: 2.785 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004373/0.4551, allocations: 203.3 kB / 1.079 GB, free: 2.574 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.109e-05/0.4552, allocations: 35.58 kB / 1.079 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.4552, allocations: 96 / 1.079 GB, free: 2.535 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.4552, allocations: 3.984 kB / 1.079 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001035/0.4553, allocations: 15.98 kB / 1.079 GB, free: 2.516 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.4553, allocations: 11.88 kB / 1.079 GB, free: 2.504 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002446/0.4556, allocations: 55.89 kB / 1.079 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.196e-05/0.4556, allocations: 4 kB / 1.079 GB, free: 2.445 MB / 0.8262 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.0001113/0.4557, allocations: 129.7 kB / 1.079 GB, free: 2.309 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.057e-05/0.4557, allocations: 0 / 1.079 GB, free: 2.309 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003192/0.4561, allocations: 130 kB / 1.079 GB, free: 2.176 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.4561, allocations: 0 / 1.079 GB, free: 2.176 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.4561, allocations: 0 / 1.079 GB, free: 2.176 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.4561, allocations: 0 / 1.079 GB, free: 2.176 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004512/0.4565, allocations: 391.2 kB / 1.079 GB, free: 1.738 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.4566, allocations: 0 / 1.079 GB, free: 1.738 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-05/0.4566, allocations: 11.98 kB / 1.079 GB, free: 1.727 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.063e-06/0.4566, allocations: 0 / 1.079 GB, free: 1.727 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.293e-05/0.4567, allocations: 8 kB / 1.079 GB, free: 1.719 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.4567, allocations: 3.938 kB / 1.079 GB, free: 1.715 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.4567, allocations: 0 / 1.079 GB, free: 1.715 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003221/0.457, allocations: 215.4 kB / 1.08 GB, free: 1.488 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.302e-05/0.4571, allocations: 89.02 kB / 1.08 GB, free: 1.383 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.784e-05/0.4571, allocations: 4 kB / 1.08 GB, free: 1.379 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.155e-05/0.4572, allocations: 7.984 kB / 1.08 GB, free: 1.371 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.688e-05/0.4572, allocations: 7.938 kB / 1.08 GB, free: 1.363 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.175e-06/0.4572, allocations: 4 kB / 1.08 GB, free: 1.359 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.138e-05/0.4573, allocations: 87.27 kB / 1.08 GB, free: 1.273 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4573, allocations: 0 / 1.08 GB, free: 1.273 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002573/0.4576, allocations: 24 kB / 1.08 GB, free: 1.25 MB / 0.8262 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.0001798/0.4578, allocations: 107.2 kB / 1.08 GB, free: 1.137 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004052/0.4582, allocations: 175.3 kB / 1.08 GB, free: 0.9531 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.4582, allocations: 4 kB / 1.08 GB, free: 0.9492 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001289/0.4583, allocations: 48.03 kB / 1.08 GB, free: 0.9023 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000307/0.4587, allocations: 15.98 kB / 1.08 GB, free: 0.8867 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003962/0.4591, allocations: 176.5 kB / 1.08 GB, free: 0.6836 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002875/0.4594, allocations: 0.6848 MB / 1.081 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 3.197e-05/0.4594, allocations: 4 kB / 1.081 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.549e-05/0.4594, allocations: 11.44 kB / 1.081 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of SimCode: time 2.21e-07/0.4594, allocations: 0 / 1.081 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of Templates: time 0.004269/0.4637, allocations: 1.277 MB / 1.082 GB, free: 14.7 MB / 0.8419 GB make -j1 -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.makefile (rm -f Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; mkfifo Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe >> ../files/Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.sim & ./Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredMax.pipe 2>&1)