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.001297/0.001297, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001614/0.001615, allocations: 197.1 kB / 16.14 MB, free: 6.652 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.792/1.792, allocations: 205.1 MB / 222 MB, free: 4.723 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.696/1.696, allocations: 251.6 MB / 0.5088 GB, free: 3.332 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.001623/0.001623, allocations: 67.91 kB / 0.6216 GB, free: 1.988 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6502/0.6519, allocations: 104.7 MB / 0.7238 GB, free: 13.15 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.003792/0.6557, allocations: 1.444 MB / 0.7252 GB, free: 11.7 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0007263/0.6565, allocations: 220.2 kB / 0.7254 GB, free: 11.48 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.67e-05/0.6566, allocations: 4 kB / 0.7254 GB, free: 11.47 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 5.588e-05/0.6567, allocations: 0 / 0.7254 GB, free: 11.47 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001063/0.6568, allocations: 3.938 kB / 0.7254 GB, free: 11.47 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003117/0.6571, allocations: 19.98 kB / 0.7255 GB, free: 11.45 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001253/0.6573, allocations: 47.8 kB / 0.7255 GB, free: 11.4 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.6574, allocations: 11.98 kB / 0.7255 GB, free: 11.39 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 9.343e-05/0.6575, allocations: 19.92 kB / 0.7255 GB, free: 11.37 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 6.512e-05/0.6576, allocations: 19.91 kB / 0.7256 GB, free: 11.35 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.283e-05/0.6576, allocations: 4 kB / 0.7256 GB, free: 11.35 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.485e-05/0.6576, allocations: 4 kB / 0.7256 GB, free: 11.34 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 3.354e-05/0.6577, allocations: 8 kB / 0.7256 GB, free: 11.34 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 5.465e-05/0.6577, allocations: 23.8 kB / 0.7256 GB, free: 11.31 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001345/0.6579, allocations: 39.86 kB / 0.7256 GB, free: 11.27 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.6579, allocations: 0 / 0.7256 GB, free: 11.27 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.653e-06/0.6579, allocations: 0 / 0.7256 GB, free: 11.27 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.943e-06/0.6579, allocations: 0 / 0.7256 GB, free: 11.27 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.0007913/0.6587, allocations: 365.3 kB / 0.726 GB, free: 10.87 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.835e-05/0.6588, allocations: 8.031 kB / 0.726 GB, free: 10.86 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.477e-05/0.6588, allocations: 4.938 kB / 0.726 GB, free: 10.86 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001966/0.659, allocations: 180.2 kB / 0.7262 GB, free: 10.64 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.672e-05/0.659, allocations: 4.375 kB / 0.7262 GB, free: 10.64 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.802e-05/0.6591, allocations: 4.375 kB / 0.7262 GB, free: 10.63 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002264/0.6593, allocations: 58.23 kB / 0.7262 GB, free: 10.57 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.6593, allocations: 192 / 0.7262 GB, free: 10.57 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/0.6593, allocations: 3.938 kB / 0.7262 GB, free: 10.57 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.6594, allocations: 4 kB / 0.7262 GB, free: 10.56 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001927/0.6596, allocations: 43.95 kB / 0.7263 GB, free: 10.52 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005801/0.6602, allocations: 272.9 kB / 0.7265 GB, free: 10.2 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001955/0.6604, allocations: 62.42 kB / 0.7266 GB, free: 10.13 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/0.6605, allocations: 36.97 kB / 0.7266 GB, free: 10.09 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.859e-05/0.6605, allocations: 0 / 0.7266 GB, free: 10.09 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002775/0.6608, allocations: 71.38 kB / 0.7267 GB, free: 10.01 MB / 0.545 GB Notification: Performance of pre-optimization done (n=6): time 1.663e-06/0.6608, allocations: 0 / 0.7267 GB, free: 10.01 MB / 0.545 GB Notification: Performance of matching and sorting (n=6): time 0.0005139/0.6613, allocations: 129.5 kB / 0.7268 GB, free: 9.879 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.997e-05/0.6614, allocations: 51.41 kB / 0.7269 GB, free: 9.816 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001526/0.6616, allocations: 105.8 kB / 0.727 GB, free: 9.703 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.6616, allocations: 29.7 kB / 0.727 GB, free: 9.668 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.201e-05/0.6617, allocations: 84.08 kB / 0.7271 GB, free: 9.582 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.732e-05/0.6617, allocations: 15.81 kB / 0.7271 GB, free: 9.566 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.125e-05/0.6618, allocations: 25.7 kB / 0.7271 GB, free: 9.535 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002551/0.662, allocations: 314.8 kB / 0.7274 GB, free: 9.219 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001/0.6621, allocations: 27.97 kB / 0.7274 GB, free: 9.191 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001218/0.6623, allocations: 55.34 kB / 0.7275 GB, free: 9.125 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002695/0.6625, allocations: 83.28 kB / 0.7276 GB, free: 9.031 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.6625, allocations: 0 / 0.7276 GB, free: 9.031 MB / 0.545 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002328/0.6628, allocations: 97.58 kB / 0.7277 GB, free: 8.93 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.6628, allocations: 7.938 kB / 0.7277 GB, free: 8.922 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.6628, allocations: 4 kB / 0.7277 GB, free: 8.918 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.419e-05/0.6628, allocations: 96 / 0.7277 GB, free: 8.918 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.732e-05/0.6629, allocations: 15.98 kB / 0.7277 GB, free: 8.902 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.663, allocations: 4 kB / 0.7277 GB, free: 8.898 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.027e-05/0.663, allocations: 11.89 kB / 0.7277 GB, free: 8.887 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.378e-06/0.6631, allocations: 8 kB / 0.7277 GB, free: 8.879 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 0.0001357/0.6632, allocations: 117.7 kB / 0.7278 GB, free: 8.754 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.227e-05/0.6632, allocations: 4 kB / 0.7278 GB, free: 8.75 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002711/0.6635, allocations: 110 kB / 0.7279 GB, free: 8.637 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.6635, allocations: 0 / 0.7279 GB, free: 8.637 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.6635, allocations: 0.5625 kB / 0.7279 GB, free: 8.637 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.6635, allocations: 0 / 0.7279 GB, free: 8.637 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006496/0.6642, allocations: 358.4 kB / 0.7283 GB, free: 8.23 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.6642, allocations: 48 / 0.7283 GB, free: 8.23 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.72e-05/0.6643, allocations: 11.97 kB / 0.7283 GB, free: 8.219 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.6643, allocations: 8 kB / 0.7283 GB, free: 8.211 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.438e-06/0.6643, allocations: 0 / 0.7283 GB, free: 8.211 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.6643, allocations: 0 / 0.7283 GB, free: 8.211 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.6643, allocations: 0 / 0.7283 GB, free: 8.211 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000266/0.6646, allocations: 195.3 kB / 0.7285 GB, free: 8.004 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.83e-05/0.6646, allocations: 85.05 kB / 0.7286 GB, free: 7.902 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.627e-05/0.6646, allocations: 0 / 0.7286 GB, free: 7.902 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.703e-05/0.6647, allocations: 11.98 kB / 0.7286 GB, free: 7.891 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.014e-05/0.6648, allocations: 4 kB / 0.7286 GB, free: 7.887 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.958e-05/0.6648, allocations: 7.922 kB / 0.7286 GB, free: 7.879 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.87e-05/0.6649, allocations: 91.22 kB / 0.7287 GB, free: 7.789 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.21e-07/0.6649, allocations: 0 / 0.7287 GB, free: 7.789 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002542/0.6651, allocations: 12 kB / 0.7287 GB, free: 7.777 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.0001676/0.6653, allocations: 95.25 kB / 0.7288 GB, free: 7.676 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002915/0.6656, allocations: 67.88 kB / 0.7289 GB, free: 7.609 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.6656, allocations: 0 / 0.7289 GB, free: 7.609 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001128/0.6657, allocations: 36 kB / 0.7289 GB, free: 7.574 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002802/0.666, allocations: 11.97 kB / 0.7289 GB, free: 7.562 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006418/0.6667, allocations: 143.4 kB / 0.729 GB, free: 7.395 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005307/0.6672, allocations: 0.6809 MB / 0.7297 GB, free: 6.688 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.000112/0.6673, allocations: 7.734 kB / 0.7297 GB, free: 6.68 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4e-05/0.6674, allocations: 11.44 kB / 0.7297 GB, free: 6.668 MB / 0.545 GB Notification: Performance of SimCode: time 4.61e-07/0.6674, allocations: 0 / 0.7297 GB, free: 6.668 MB / 0.545 GB Notification: Performance of Templates: time 0.002787/0.6702, allocations: 0.5741 MB / 0.7303 GB, free: 6.102 MB / 0.545 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (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)