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.Sampler.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.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000926/0.0009261, 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.008179/0.008179, 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 3.2.3+maint.om/package.mo): time 1.653/1.653, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.625/1.625, allocations: 252 MB / 0.5105 GB, free: 4.664 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.0005645/0.0005645, allocations: 16.33 kB / 0.6249 GB, free: 0.707 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5598/0.5603, allocations: 106.3 MB / 0.7287 GB, free: 11.39 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001781/0.5622, allocations: 1.101 MB / 0.7298 GB, free: 10.28 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0005321/0.5627, allocations: 224.2 kB / 0.73 GB, free: 10.06 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.802e-05/0.5628, allocations: 0 / 0.73 GB, free: 10.06 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 2.473e-05/0.5629, allocations: 3.938 kB / 0.73 GB, free: 10.05 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 7.29e-05/0.5629, allocations: 0 / 0.73 GB, free: 10.05 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002214/0.5632, allocations: 19.92 kB / 0.73 GB, free: 10.04 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 8.864e-05/0.5633, allocations: 47.86 kB / 0.7301 GB, free: 9.988 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.5634, allocations: 7.984 kB / 0.7301 GB, free: 9.98 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 7.253e-05/0.5635, allocations: 23.91 kB / 0.7301 GB, free: 9.957 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.566e-05/0.5635, allocations: 23.86 kB / 0.7301 GB, free: 9.934 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.416e-05/0.5635, allocations: 0 / 0.7301 GB, free: 9.934 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.029e-05/0.5636, allocations: 0 / 0.7301 GB, free: 9.934 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 2.248e-05/0.5636, allocations: 4 kB / 0.7301 GB, free: 9.93 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 5.279e-05/0.5637, allocations: 41.62 kB / 0.7302 GB, free: 9.883 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 9.59e-05/0.5638, allocations: 43.8 kB / 0.7302 GB, free: 9.84 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.5638, allocations: 0 / 0.7302 GB, free: 9.84 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.593e-06/0.5638, allocations: 3.938 kB / 0.7302 GB, free: 9.836 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.578e-06/0.5638, allocations: 0 / 0.7302 GB, free: 9.836 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005761/0.5644, allocations: 365.4 kB / 0.7306 GB, free: 9.43 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.5644, allocations: 12.03 kB / 0.7306 GB, free: 9.418 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.314e-05/0.5645, allocations: 4.844 kB / 0.7306 GB, free: 9.414 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001174/0.5646, allocations: 168.4 kB / 0.7308 GB, free: 9.211 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.5646, allocations: 384 / 0.7308 GB, free: 9.211 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.512e-05/0.5646, allocations: 4.375 kB / 0.7308 GB, free: 9.207 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002027/0.5648, allocations: 70.22 kB / 0.7308 GB, free: 9.133 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.5648, allocations: 192 / 0.7308 GB, free: 9.133 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.262e-05/0.5649, allocations: 7.938 kB / 0.7308 GB, free: 9.125 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.5649, allocations: 0 / 0.7308 GB, free: 9.125 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002052/0.5651, allocations: 59.89 kB / 0.7309 GB, free: 9.066 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004101/0.5655, allocations: 268.8 kB / 0.7312 GB, free: 8.754 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001788/0.5657, allocations: 70.47 kB / 0.7312 GB, free: 8.676 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001058/0.5658, allocations: 32.97 kB / 0.7313 GB, free: 8.641 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.869e-05/0.5658, allocations: 8.047 kB / 0.7313 GB, free: 8.633 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002335/0.5661, allocations: 83.33 kB / 0.7313 GB, free: 8.539 MB / 0.545 GB Notification: Performance of pre-optimization done (n=6): time 1.252e-06/0.5661, allocations: 0 / 0.7313 GB, free: 8.539 MB / 0.545 GB Notification: Performance of matching and sorting (n=6): time 0.0004253/0.5665, allocations: 129.6 kB / 0.7315 GB, free: 8.406 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.5667, allocations: 59.41 kB / 0.7315 GB, free: 8.336 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.546e-05/0.5667, allocations: 109.8 kB / 0.7316 GB, free: 8.219 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.527e-05/0.5668, allocations: 25.7 kB / 0.7316 GB, free: 8.188 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.49e-05/0.5668, allocations: 88.08 kB / 0.7317 GB, free: 8.098 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.3e-05/0.5669, allocations: 15.8 kB / 0.7317 GB, free: 8.082 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.86e-05/0.5669, allocations: 17.72 kB / 0.7318 GB, free: 8.059 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001272/0.567, allocations: 310.8 kB / 0.7321 GB, free: 7.746 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001038/0.5671, allocations: 35.97 kB / 0.7321 GB, free: 7.711 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.5673, allocations: 59.34 kB / 0.7322 GB, free: 7.641 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002191/0.5675, allocations: 91.34 kB / 0.7322 GB, free: 7.539 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.5675, allocations: 3.938 kB / 0.7322 GB, free: 7.535 MB / 0.545 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002598/0.5678, allocations: 113.6 kB / 0.7324 GB, free: 7.418 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.5678, allocations: 7.938 kB / 0.7324 GB, free: 7.41 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.5678, allocations: 0 / 0.7324 GB, free: 7.41 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.5678, allocations: 7.938 kB / 0.7324 GB, free: 7.402 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.773e-05/0.5679, allocations: 15.98 kB / 0.7324 GB, free: 7.387 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.5679, allocations: 4.094 kB / 0.7324 GB, free: 7.383 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.334e-05/0.568, allocations: 12.48 kB / 0.7324 GB, free: 7.371 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.845e-06/0.568, allocations: 4 kB / 0.7324 GB, free: 7.367 MB / 0.545 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 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.989e-05/0.5681, allocations: 121.7 kB / 0.7325 GB, free: 7.238 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.224e-05/0.5681, allocations: 3.906 kB / 0.7325 GB, free: 7.234 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002974/0.5684, allocations: 118 kB / 0.7326 GB, free: 7.113 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.5685, allocations: 4 kB / 0.7326 GB, free: 7.109 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.5685, allocations: 0 / 0.7326 GB, free: 7.109 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.5685, allocations: 0 / 0.7326 GB, free: 7.109 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004526/0.5689, allocations: 366.4 kB / 0.733 GB, free: 6.695 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.5689, allocations: 0 / 0.733 GB, free: 6.695 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.999e-05/0.569, allocations: 11.98 kB / 0.733 GB, free: 6.684 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.569, allocations: 0 / 0.733 GB, free: 6.684 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/0.569, allocations: 4 kB / 0.733 GB, free: 6.68 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.569, allocations: 0 / 0.733 GB, free: 6.68 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.569, allocations: 4 kB / 0.733 GB, free: 6.676 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002846/0.5693, allocations: 211.3 kB / 0.7332 GB, free: 6.453 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.796e-05/0.5694, allocations: 85.05 kB / 0.7333 GB, free: 6.352 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.425e-05/0.5694, allocations: 0 / 0.7333 GB, free: 6.352 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.449e-05/0.5695, allocations: 15.98 kB / 0.7333 GB, free: 6.336 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.476e-05/0.5696, allocations: 7.984 kB / 0.7333 GB, free: 6.328 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.364e-05/0.5696, allocations: 3.938 kB / 0.7333 GB, free: 6.324 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.991e-05/0.5696, allocations: 83.28 kB / 0.7334 GB, free: 6.242 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5696, allocations: 0 / 0.7334 GB, free: 6.242 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002199/0.5698, allocations: 8 kB / 0.7334 GB, free: 6.234 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: 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 (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.000115/0.57, allocations: 111.2 kB / 0.7335 GB, free: 6.117 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002397/0.5702, allocations: 67.89 kB / 0.7336 GB, free: 6.051 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.5702, allocations: 0 / 0.7336 GB, free: 6.051 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.000113/0.5703, allocations: 36.55 kB / 0.7336 GB, free: 6.016 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002573/0.5706, allocations: 11.98 kB / 0.7336 GB, free: 6.004 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003425/0.571, allocations: 152.5 kB / 0.7338 GB, free: 5.824 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002548/0.5712, allocations: 0.6809 MB / 0.7344 GB, free: 5.117 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.803e-05/0.5713, allocations: 7.891 kB / 0.7344 GB, free: 5.109 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.911e-05/0.5713, allocations: 19.36 kB / 0.7345 GB, free: 5.09 MB / 0.545 GB Notification: Performance of SimCode: time 3.31e-07/0.5713, allocations: 0 / 0.7345 GB, free: 5.09 MB / 0.545 GB Notification: Performance of Templates: time 0.00283/0.5741, allocations: 0.549 MB / 0.735 GB, free: 4.547 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) Environment - environmentSimulation: