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.01112/0.01112, allocations: 98.39 kB / 15.73 MB, free: 5.535 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.001931/0.001931, allocations: 185 kB / 16.67 MB, free: 5.473 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.705/1.705, allocations: 205.1 MB / 222.5 MB, free: 12.21 MB / 190.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.477/1.477, allocations: 251.7 MB / 0.5094 GB, free: 428 kB / 430.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.001487/0.001487, allocations: 63.89 kB / 0.7258 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8792/0.8807, allocations: 104.7 MB / 0.828 GB, free: 2.645 MB / 0.6231 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.003339/0.8841, allocations: 1.374 MB / 0.8294 GB, free: 1.258 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.0006119/0.8847, allocations: 230.3 kB / 0.8296 GB, free: 1.031 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.262e-05/0.8848, allocations: 0 / 0.8296 GB, free: 1.031 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 4.468e-05/0.8849, allocations: 7.922 kB / 0.8296 GB, free: 1.023 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 8.675e-05/0.885, allocations: 7.922 kB / 0.8296 GB, free: 1.016 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002362/0.8853, allocations: 27.92 kB / 0.8296 GB, free: 0.9883 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.0001198/0.8854, allocations: 39.91 kB / 0.8297 GB, free: 0.9492 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.8855, allocations: 15.98 kB / 0.8297 GB, free: 0.9336 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 9.697e-05/0.8856, allocations: 19.92 kB / 0.8297 GB, free: 0.9141 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 5.619e-05/0.8857, allocations: 19.91 kB / 0.8297 GB, free: 0.8945 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 2.42e-05/0.8857, allocations: 4 kB / 0.8297 GB, free: 0.8906 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 1.292e-05/0.8857, allocations: 4 kB / 0.8297 GB, free: 0.8867 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 2.689e-05/0.8858, allocations: 15.92 kB / 0.8297 GB, free: 0.8711 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 5.104e-05/0.8858, allocations: 19.88 kB / 0.8298 GB, free: 0.8516 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.0001251/0.8859, allocations: 39.86 kB / 0.8298 GB, free: 0.8125 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.886, allocations: 0 / 0.8298 GB, free: 0.8125 MB / 0.6231 GB Notification: Performance of FrontEnd: time 3.487e-06/0.886, allocations: 4 kB / 0.8298 GB, free: 0.8086 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 6.763e-06/0.886, allocations: 3.938 kB / 0.8298 GB, free: 0.8047 MB / 0.6231 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.0006899/0.8867, allocations: 363 kB / 0.8302 GB, free: 412 kB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.8867, allocations: 12.03 kB / 0.8302 GB, free: 400 kB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.741e-05/0.8868, allocations: 0.9375 kB / 0.8302 GB, free: 400 kB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001491/0.8869, allocations: 170.5 kB / 0.8303 GB, free: 192 kB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.486e-05/0.887, allocations: 384 / 0.8303 GB, free: 192 kB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.314e-05/0.887, allocations: 8.375 kB / 0.8303 GB, free: 184 kB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002214/0.8872, allocations: 62.22 kB / 0.8304 GB, free: 116 kB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-06/0.8872, allocations: 192 / 0.8304 GB, free: 116 kB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.502e-05/0.8872, allocations: 3.938 kB / 0.8304 GB, free: 112 kB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.8873, allocations: 7.938 kB / 0.8304 GB, free: 104 kB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001957/0.8875, allocations: 43.89 kB / 0.8305 GB, free: 60 kB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004768/0.8879, allocations: 272.9 kB / 0.8307 GB, free: 15.74 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001617/0.8881, allocations: 54.48 kB / 0.8308 GB, free: 15.68 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.8882, allocations: 32.95 kB / 0.8308 GB, free: 15.64 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 1.981e-05/0.8883, allocations: 0 / 0.8308 GB, free: 15.64 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002221/0.8885, allocations: 79.39 kB / 0.8309 GB, free: 15.55 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=6): time 1.673e-06/0.8885, allocations: 0 / 0.8309 GB, free: 15.55 MB / 0.6387 GB Notification: Performance of matching and sorting (n=6): time 0.0004264/0.8889, allocations: 121.7 kB / 0.831 GB, free: 15.43 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.5e-05/0.889, allocations: 59.38 kB / 0.831 GB, free: 15.36 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.354e-05/0.8891, allocations: 105.9 kB / 0.8311 GB, free: 15.25 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.8891, allocations: 25.7 kB / 0.8312 GB, free: 15.21 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 4.496e-05/0.8892, allocations: 96.06 kB / 0.8313 GB, free: 15.12 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 1.9e-05/0.8892, allocations: 11.81 kB / 0.8313 GB, free: 15.11 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.485e-05/0.8892, allocations: 21.72 kB / 0.8313 GB, free: 15.08 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001307/0.8894, allocations: 318.8 kB / 0.8316 GB, free: 14.76 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.357e-05/0.8895, allocations: 19.98 kB / 0.8316 GB, free: 14.74 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001066/0.8896, allocations: 51.34 kB / 0.8317 GB, free: 14.68 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000195/0.8898, allocations: 83.33 kB / 0.8317 GB, free: 14.58 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.445e-05/0.8898, allocations: 0 / 0.8317 GB, free: 14.58 MB / 0.6387 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002534/0.8901, allocations: 105.6 kB / 0.8318 GB, free: 14.47 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.8901, allocations: 8 kB / 0.8319 GB, free: 14.46 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.804e-06/0.8901, allocations: 0 / 0.8319 GB, free: 14.46 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.8901, allocations: 0 / 0.8319 GB, free: 14.46 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.8902, allocations: 15.98 kB / 0.8319 GB, free: 14.45 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.323e-06/0.8902, allocations: 160 / 0.8319 GB, free: 14.45 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.764e-05/0.8903, allocations: 11.89 kB / 0.8319 GB, free: 14.44 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.09e-05/0.8903, allocations: 11.92 kB / 0.8319 GB, free: 14.43 MB / 0.6387 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 9.766e-05/0.8904, allocations: 125.8 kB / 0.832 GB, free: 14.29 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.278e-05/0.8905, allocations: 0 / 0.832 GB, free: 14.29 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002811/0.8907, allocations: 102 kB / 0.8321 GB, free: 14.19 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.584e-06/0.8908, allocations: 0 / 0.8321 GB, free: 14.19 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.8908, allocations: 3.984 kB / 0.8321 GB, free: 14.18 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.8908, allocations: 48 / 0.8321 GB, free: 14.18 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004575/0.8912, allocations: 370.3 kB / 0.8325 GB, free: 13.77 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.556e-06/0.8913, allocations: 0 / 0.8325 GB, free: 13.77 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.883e-05/0.8913, allocations: 11.94 kB / 0.8325 GB, free: 13.75 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.8913, allocations: 0 / 0.8325 GB, free: 13.75 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/0.8914, allocations: 0 / 0.8325 GB, free: 13.75 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.8914, allocations: 4.359 kB / 0.8325 GB, free: 13.75 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.8914, allocations: 0 / 0.8325 GB, free: 13.75 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002908/0.8917, allocations: 203.4 kB / 0.8327 GB, free: 13.54 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 4.014e-05/0.8917, allocations: 81.02 kB / 0.8328 GB, free: 13.44 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.724e-05/0.8917, allocations: 3.984 kB / 0.8328 GB, free: 13.43 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.798e-05/0.8918, allocations: 8 kB / 0.8328 GB, free: 13.43 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.359e-05/0.8919, allocations: 7.984 kB / 0.8328 GB, free: 13.42 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.048e-05/0.8919, allocations: 7.938 kB / 0.8328 GB, free: 13.41 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 5.194e-05/0.892, allocations: 83.28 kB / 0.8329 GB, free: 13.33 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.21e-07/0.892, allocations: 0 / 0.8329 GB, free: 13.33 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0002333/0.8922, allocations: 15.98 kB / 0.8329 GB, free: 13.31 MB / 0.6387 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.0001177/0.8923, allocations: 96.31 kB / 0.833 GB, free: 13.21 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.0002667/0.8926, allocations: 63.89 kB / 0.833 GB, free: 13.15 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.8926, allocations: 0 / 0.833 GB, free: 13.15 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0001134/0.8928, allocations: 31.97 kB / 0.8331 GB, free: 13.12 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002639/0.893, allocations: 12.19 kB / 0.8331 GB, free: 13.11 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003686/0.8934, allocations: 133.5 kB / 0.8332 GB, free: 12.95 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/0.8937, allocations: 0.6844 MB / 0.8339 GB, free: 12.23 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 3.691e-05/0.8938, allocations: 4 kB / 0.8339 GB, free: 12.23 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.436e-05/0.8938, allocations: 11.44 kB / 0.8339 GB, free: 12.22 MB / 0.6387 GB Notification: Performance of SimCode: time 2.31e-07/0.8938, allocations: 0 / 0.8339 GB, free: 12.22 MB / 0.6387 GB Notification: Performance of Templates: time 0.003193/0.897, allocations: 0.6522 MB / 0.8345 GB, free: 11.57 MB / 0.6387 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)