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.TriggeredSampler.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 7.0.3-maint.7.0.x/package.mo", uses=false) 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) 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.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009521/0.0009521, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.001106/0.001106, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.549/1.549, allocations: 205.4 MB / 222.1 MB, free: 5.637 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.688/1.688, allocations: 252 MB / 0.5102 GB, free: 4.812 MB / 414.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.0005374/0.0005376, allocations: 12 kB / 0.6243 GB, free: 1.09 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5533/0.5538, allocations: 106.3 MB / 0.7281 GB, free: 11.57 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001765/0.5556, allocations: 1.18 MB / 0.7293 GB, free: 10.38 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0004661/0.5561, allocations: 228.2 kB / 0.7295 GB, free: 10.16 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.97e-05/0.5562, allocations: 4 kB / 0.7295 GB, free: 10.15 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.661e-05/0.5562, allocations: 7.938 kB / 0.7295 GB, free: 10.14 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 7.837e-05/0.5563, allocations: 3.938 kB / 0.7295 GB, free: 10.14 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001624/0.5565, allocations: 19.92 kB / 0.7295 GB, free: 10.12 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 8.584e-05/0.5566, allocations: 63.83 kB / 0.7296 GB, free: 10.06 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.5567, allocations: 16.17 kB / 0.7296 GB, free: 10.04 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 6.267e-05/0.5567, allocations: 23.86 kB / 0.7296 GB, free: 10.02 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.59e-05/0.5568, allocations: 27.91 kB / 0.7297 GB, free: 9.988 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.4e-05/0.5568, allocations: 0 / 0.7297 GB, free: 9.988 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.3e-05/0.5568, allocations: 4 kB / 0.7297 GB, free: 9.984 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.804e-05/0.5569, allocations: 7.938 kB / 0.7297 GB, free: 9.977 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 4.167e-05/0.5569, allocations: 41.67 kB / 0.7297 GB, free: 9.93 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 7.658e-05/0.557, allocations: 43.89 kB / 0.7298 GB, free: 9.887 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.557, allocations: 0 / 0.7298 GB, free: 9.887 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.575e-06/0.557, allocations: 0 / 0.7298 GB, free: 9.887 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.039e-06/0.557, allocations: 3.938 kB / 0.7298 GB, free: 9.883 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005745/0.5576, allocations: 389.2 kB / 0.7301 GB, free: 9.457 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.5577, allocations: 8.031 kB / 0.7301 GB, free: 9.449 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.742e-05/0.5577, allocations: 11.84 kB / 0.7302 GB, free: 9.438 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001396/0.5578, allocations: 171 kB / 0.7303 GB, free: 9.23 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.616e-05/0.5579, allocations: 7.984 kB / 0.7303 GB, free: 9.223 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.719e-05/0.5579, allocations: 8 kB / 0.7303 GB, free: 9.215 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001959/0.5581, allocations: 81.66 kB / 0.7304 GB, free: 9.129 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.5581, allocations: 0 / 0.7304 GB, free: 9.129 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.5581, allocations: 0 / 0.7304 GB, free: 9.129 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.5582, allocations: 0 / 0.7304 GB, free: 9.129 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000199/0.5584, allocations: 67.89 kB / 0.7305 GB, free: 9.062 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004437/0.5588, allocations: 304.7 kB / 0.7308 GB, free: 8.715 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001706/0.559, allocations: 78.48 kB / 0.7308 GB, free: 8.629 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001015/0.5591, allocations: 36.95 kB / 0.7309 GB, free: 8.59 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.069e-05/0.5591, allocations: 0 / 0.7309 GB, free: 8.59 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002197/0.5594, allocations: 91.36 kB / 0.731 GB, free: 8.488 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 1.212e-06/0.5594, allocations: 0 / 0.731 GB, free: 8.488 MB / 0.545 GB Notification: Performance of matching and sorting (n=8): time 0.0004179/0.5598, allocations: 157.7 kB / 0.7311 GB, free: 8.328 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.96e-05/0.5598, allocations: 63.33 kB / 0.7312 GB, free: 8.254 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.333e-05/0.5599, allocations: 118 kB / 0.7313 GB, free: 8.129 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.56, allocations: 33.81 kB / 0.7313 GB, free: 8.09 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.259e-05/0.56, allocations: 99.78 kB / 0.7314 GB, free: 7.988 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.373e-05/0.5601, allocations: 19.8 kB / 0.7314 GB, free: 7.969 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.12e-06/0.5601, allocations: 0 / 0.7314 GB, free: 7.969 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001175/0.5602, allocations: 318.8 kB / 0.7317 GB, free: 7.648 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.72e-05/0.5603, allocations: 35.97 kB / 0.7318 GB, free: 7.613 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001108/0.5604, allocations: 68.27 kB / 0.7318 GB, free: 7.531 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.754e-05/0.5605, allocations: 35.98 kB / 0.7319 GB, free: 7.496 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.5605, allocations: 4 kB / 0.7319 GB, free: 7.492 MB / 0.545 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002626/0.5608, allocations: 133.4 kB / 0.732 GB, free: 7.355 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.5608, allocations: 4 kB / 0.732 GB, free: 7.352 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.5608, allocations: 80 / 0.732 GB, free: 7.352 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.5609, allocations: 4 kB / 0.732 GB, free: 7.348 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.561, allocations: 23.92 kB / 0.732 GB, free: 7.324 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.561, allocations: 11.94 kB / 0.732 GB, free: 7.312 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.92e-05/0.5611, allocations: 28 kB / 0.7321 GB, free: 7.285 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.5611, allocations: 4 kB / 0.7321 GB, free: 7.281 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition1,$whenCondition2,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 (11): * Single equations (assignments): 11 * 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.0001079/0.5612, allocations: 123.5 kB / 0.7322 GB, free: 7.152 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.35e-05/0.5612, allocations: 8 kB / 0.7322 GB, free: 7.145 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002956/0.5615, allocations: 133.9 kB / 0.7323 GB, free: 7.008 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.5615, allocations: 0 / 0.7323 GB, free: 7.008 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.5616, allocations: 0 / 0.7323 GB, free: 7.008 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.5616, allocations: 7.938 kB / 0.7323 GB, free: 7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005108/0.5621, allocations: 402.4 kB / 0.7327 GB, free: 6.551 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.5621, allocations: 0 / 0.7327 GB, free: 6.551 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.82e-05/0.5622, allocations: 15.94 kB / 0.7327 GB, free: 6.535 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.5622, allocations: 0 / 0.7327 GB, free: 6.535 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.5622, allocations: 11.98 kB / 0.7327 GB, free: 6.523 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.5622, allocations: 3.953 kB / 0.7327 GB, free: 6.52 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.5622, allocations: 0 / 0.7327 GB, free: 6.52 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000278/0.5625, allocations: 219.4 kB / 0.733 GB, free: 6.289 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.254e-05/0.5625, allocations: 85.05 kB / 0.733 GB, free: 6.188 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.757e-05/0.5626, allocations: 4 kB / 0.733 GB, free: 6.184 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.5627, allocations: 11.98 kB / 0.7331 GB, free: 6.172 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.425e-05/0.5627, allocations: 11.94 kB / 0.7331 GB, free: 6.16 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/0.5627, allocations: 4 kB / 0.7331 GB, free: 6.156 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.794e-05/0.5628, allocations: 99.58 kB / 0.7332 GB, free: 6.059 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5628, allocations: 0 / 0.7332 GB, free: 6.059 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002294/0.563, allocations: 16 kB / 0.7332 GB, free: 6.043 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 (booPul.y,$whenCondition2,$whenCondition1,booPul.pulseStart,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001168/0.5631, allocations: 99.19 kB / 0.7333 GB, free: 5.938 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002569/0.5634, allocations: 92.06 kB / 0.7334 GB, free: 5.848 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.5634, allocations: 4.062 kB / 0.7334 GB, free: 5.844 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001102/0.5635, allocations: 43.97 kB / 0.7334 GB, free: 5.801 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002747/0.5638, allocations: 4.75 kB / 0.7334 GB, free: 5.797 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003766/0.5642, allocations: 195.2 kB / 0.7336 GB, free: 5.578 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002511/0.5645, allocations: 0.6926 MB / 0.7343 GB, free: 4.859 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.308e-05/0.5645, allocations: 4 kB / 0.7343 GB, free: 4.855 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.352e-05/0.5645, allocations: 15.42 kB / 0.7343 GB, free: 4.84 MB / 0.545 GB Notification: Performance of SimCode: time 2.31e-07/0.5646, allocations: 0 / 0.7343 GB, free: 4.84 MB / 0.545 GB Notification: Performance of Templates: time 0.00283/0.5674, allocations: 0.7775 MB / 0.7351 GB, free: 4.066 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) Environment - environmentSimulation: