Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 5.066/5.066, allocations: 0.5623 GB / 0.5769 GB, free: 66.93 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002599/0.002599, allocations: 359.5 kB / 0.644 GB, free: 21.53 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.136/4.136, allocations: 410.7 MB / 1.112 GB, free: 15.74 MB / 0.6198 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.003071/0.00307, allocations: 188.1 kB / 1.225 GB, free: 11.68 MB / 0.7292 GB Notification: Performance of FrontEnd - loaded program: time 0.000494/0.0004942, allocations: 12.7 kB / 1.348 GB, free: 320.4 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.16/0.1605, allocations: 115.3 MB / 1.461 GB, free: 220.7 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.0007498/0.1613, allocations: 385.9 kB / 1.461 GB, free: 220.3 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.00119/0.1625, allocations: 1.031 MB / 1.462 GB, free: 219.3 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.053e-05/0.1626, allocations: 0 / 1.462 GB, free: 219.3 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 1.247e-05/0.1626, allocations: 0 / 1.462 GB, free: 219.3 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 5.536e-05/0.1627, allocations: 8.5 kB / 1.462 GB, free: 219.3 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002007/0.1629, allocations: 32.7 kB / 1.462 GB, free: 219.3 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 6.7e-05/0.163, allocations: 39.86 kB / 1.462 GB, free: 219.2 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 8.64e-05/0.1631, allocations: 13.92 kB / 1.462 GB, free: 219.2 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 5.586e-05/0.1632, allocations: 19.91 kB / 1.462 GB, free: 219.2 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 4.581e-05/0.1632, allocations: 15.92 kB / 1.462 GB, free: 219.2 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.409e-05/0.1633, allocations: 5.031 kB / 1.462 GB, free: 219.2 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 5.977e-05/0.1633, allocations: 15.98 kB / 1.462 GB, free: 219.2 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 1.606e-05/0.1634, allocations: 7.938 kB / 1.462 GB, free: 219.1 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 2.726e-05/0.1634, allocations: 42.88 kB / 1.462 GB, free: 219.1 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 8.51e-05/0.1635, allocations: 31.92 kB / 1.462 GB, free: 219.1 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 4.363e-06/0.1635, allocations: 0 / 1.462 GB, free: 219.1 MB / 0.8073 GB Notification: Performance of FrontEnd: time 2.058e-06/0.1635, allocations: 0 / 1.462 GB, free: 219.1 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 4.886e-06/0.1635, allocations: 0.5625 kB / 1.462 GB, free: 219.1 MB / 0.8073 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.0004731/0.164, allocations: 371 kB / 1.463 GB, free: 218.7 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.1641, allocations: 8.75 kB / 1.463 GB, free: 218.7 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.462e-05/0.1641, allocations: 3.906 kB / 1.463 GB, free: 218.6 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.104e-05/0.1642, allocations: 171 kB / 1.463 GB, free: 218.4 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.572e-05/0.1642, allocations: 0.5 kB / 1.463 GB, free: 218.4 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.595e-05/0.1642, allocations: 13.08 kB / 1.463 GB, free: 218.4 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002065/0.1645, allocations: 69.38 kB / 1.463 GB, free: 218.4 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.1645, allocations: 0 / 1.463 GB, free: 218.4 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.327e-05/0.1645, allocations: 4 kB / 1.463 GB, free: 218.4 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.442e-06/0.1645, allocations: 0 / 1.463 GB, free: 218.4 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002127/0.1647, allocations: 50.34 kB / 1.463 GB, free: 218.3 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004038/0.1652, allocations: 284.8 kB / 1.463 GB, free: 218 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001832/0.1654, allocations: 56.11 kB / 1.463 GB, free: 217.9 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001337/0.1655, allocations: 43.11 kB / 1.463 GB, free: 217.9 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.261e-05/0.1655, allocations: 0 / 1.463 GB, free: 217.9 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002138/0.1658, allocations: 81.61 kB / 1.463 GB, free: 217.8 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=6): time 2.384e-06/0.1658, allocations: 0 / 1.463 GB, free: 217.8 MB / 0.8073 GB Notification: Performance of matching and sorting (n=6): time 0.0004609/0.1663, allocations: 138.4 kB / 1.464 GB, free: 217.6 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.863e-05/0.1663, allocations: 51.41 kB / 1.464 GB, free: 217.6 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.579e-05/0.1664, allocations: 109.8 kB / 1.464 GB, free: 217.5 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.364e-05/0.1664, allocations: 29.7 kB / 1.464 GB, free: 217.4 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.483e-05/0.1665, allocations: 89.69 kB / 1.464 GB, free: 217.3 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.428e-05/0.1665, allocations: 11.81 kB / 1.464 GB, free: 217.3 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.192e-06/0.1665, allocations: 0 / 1.464 GB, free: 217.3 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.226e-05/0.1666, allocations: 314.8 kB / 1.464 GB, free: 217 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001182/0.1667, allocations: 33.47 kB / 1.464 GB, free: 217 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/0.1668, allocations: 61.77 kB / 1.464 GB, free: 216.9 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001212/0.167, allocations: 29.7 kB / 1.464 GB, free: 216.9 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.075e-06/0.167, allocations: 1.594 kB / 1.464 GB, free: 216.9 MB / 0.8073 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003145/0.1673, allocations: 123.2 kB / 1.464 GB, free: 216.8 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.1673, allocations: 8.5 kB / 1.464 GB, free: 216.8 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.89e-06/0.1674, allocations: 0.75 kB / 1.464 GB, free: 216.8 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.1674, allocations: 0 / 1.464 GB, free: 216.8 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000129/0.1675, allocations: 20.52 kB / 1.464 GB, free: 216.7 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.393e-06/0.1675, allocations: 7.562 kB / 1.464 GB, free: 216.7 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.713e-05/0.1676, allocations: 20.38 kB / 1.464 GB, free: 216.7 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.256e-05/0.1677, allocations: 3.938 kB / 1.464 GB, free: 216.7 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.sampler1.firstTrigger,sampler1.firstTrigger,$whenCondition1,sampler1.sampleTrigger,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.256e-05/0.1678, allocations: 116.5 kB / 1.465 GB, free: 216.6 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.661e-05/0.1678, allocations: 4 kB / 1.465 GB, free: 216.6 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003235/0.1681, allocations: 119.8 kB / 1.465 GB, free: 216.5 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.153e-06/0.1681, allocations: 1.188 kB / 1.465 GB, free: 216.5 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.476e-06/0.1681, allocations: 0 / 1.465 GB, free: 216.5 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.065e-06/0.1682, allocations: 0 / 1.465 GB, free: 216.5 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004655/0.1686, allocations: 369.1 kB / 1.465 GB, free: 216.1 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.1687, allocations: 0.9062 kB / 1.465 GB, free: 216.1 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.873e-05/0.1687, allocations: 16.7 kB / 1.465 GB, free: 216 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.732e-06/0.1688, allocations: 0 / 1.465 GB, free: 216 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.1688, allocations: 8.531 kB / 1.465 GB, free: 216 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.485e-06/0.1688, allocations: 1.281 kB / 1.465 GB, free: 216 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.768e-06/0.1688, allocations: 3.953 kB / 1.465 GB, free: 216 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003037/0.1691, allocations: 198 kB / 1.465 GB, free: 215.8 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 2.201e-05/0.1692, allocations: 85.61 kB / 1.465 GB, free: 215.7 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.907e-05/0.1692, allocations: 7.031 kB / 1.465 GB, free: 215.7 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001262/0.1693, allocations: 11.98 kB / 1.465 GB, free: 215.7 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.443e-05/0.1694, allocations: 7.984 kB / 1.465 GB, free: 215.7 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.808e-05/0.1694, allocations: 3.953 kB / 1.465 GB, free: 215.7 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 5.549e-05/0.1695, allocations: 87.28 kB / 1.465 GB, free: 215.6 MB / 0.8073 GB Notification: Performance of sort global known variables: time 7.29e-07/0.1695, allocations: 0 / 1.465 GB, free: 215.6 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003382/0.1698, allocations: 8.594 kB / 1.465 GB, free: 215.6 MB / 0.8073 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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.0001366/0.17, allocations: 112.1 kB / 1.466 GB, free: 215.5 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0003016/0.1703, allocations: 70.92 kB / 1.466 GB, free: 215.4 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.501e-06/0.1703, allocations: 1.812 kB / 1.466 GB, free: 215.4 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001324/0.1705, allocations: 39.91 kB / 1.466 GB, free: 215.4 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003281/0.1708, allocations: 9.188 kB / 1.466 GB, free: 215.4 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003238/0.1711, allocations: 143.6 kB / 1.466 GB, free: 215.2 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001173/0.1713, allocations: 0.6848 MB / 1.466 GB, free: 214.5 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 4.15e-05/0.1713, allocations: 8.188 kB / 1.466 GB, free: 214.5 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.728e-05/0.1714, allocations: 15.25 kB / 1.467 GB, free: 214.5 MB / 0.8073 GB Notification: Performance of SimCode: time 1.35e-06/0.1714, allocations: 0 / 1.467 GB, free: 214.5 MB / 0.8073 GB Notification: Performance of Templates: time 0.003271/0.1747, allocations: 0.6841 MB / 1.467 GB, free: 213.8 MB / 0.8073 GB