Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.746/1.746, allocations: 292.6 MB / 307.6 MB, free: 5.199 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001106/0.001106, allocations: 181 kB / 377.1 MB, free: 1.52 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.659/1.659, allocations: 205.4 MB / 0.6367 GB, free: 8.613 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008854/0.0008853, allocations: 97.64 kB / 0.751 GB, free: 63.27 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003451/0.0003454, allocations: 16 kB / 0.8748 GB, free: 11.21 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.2738, allocations: 116.3 MB / 0.9884 GB, free: 6.754 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7532/1.027, allocations: 138.9 MB / 1.124 GB, free: 35.7 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002403/1.027, allocations: 70.5 kB / 1.124 GB, free: 35.64 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.003294/1.031, allocations: 1.09 MB / 1.125 GB, free: 34.79 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.254e-06/1.031, allocations: 0 / 1.125 GB, free: 34.79 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 8.957e-06/1.031, allocations: 0 / 1.125 GB, free: 34.79 MB / 0.7292 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.0005085/1.031, allocations: 377.7 kB / 1.126 GB, free: 34.4 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.617e-05/1.031, allocations: 16.02 kB / 1.126 GB, free: 34.38 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.547e-05/1.031, allocations: 2.062 kB / 1.126 GB, free: 34.38 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.908e-05/1.031, allocations: 171 kB / 1.126 GB, free: 34.18 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/1.032, allocations: 0 / 1.126 GB, free: 34.18 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.802e-05/1.032, allocations: 8.625 kB / 1.126 GB, free: 34.17 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002033/1.032, allocations: 66.38 kB / 1.126 GB, free: 34.12 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/1.032, allocations: 0 / 1.126 GB, free: 34.12 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.461e-05/1.032, allocations: 11.94 kB / 1.126 GB, free: 34.11 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/1.032, allocations: 0 / 1.126 GB, free: 34.11 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001905/1.032, allocations: 54.91 kB / 1.126 GB, free: 34.06 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004628/1.032, allocations: 274.4 kB / 1.126 GB, free: 33.77 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001596/1.033, allocations: 64.48 kB / 1.126 GB, free: 33.7 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/1.033, allocations: 0 / 1.126 GB, free: 33.7 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002148/1.033, allocations: 82.73 kB / 1.126 GB, free: 33.62 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=6): time 2.555e-06/1.033, allocations: 0.6094 kB / 1.126 GB, free: 33.62 MB / 0.7292 GB Notification: Performance of matching and sorting (n=6): time 0.0004255/1.033, allocations: 142.6 kB / 1.126 GB, free: 33.5 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.569e-05/1.033, allocations: 51.41 kB / 1.126 GB, free: 33.43 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.16e-05/1.033, allocations: 105 kB / 1.127 GB, free: 33.33 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.248e-05/1.033, allocations: 25.7 kB / 1.127 GB, free: 33.3 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 4.311e-05/1.034, allocations: 84.14 kB / 1.127 GB, free: 33.21 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.026e-05/1.034, allocations: 19.22 kB / 1.127 GB, free: 33.2 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.689e-06/1.034, allocations: 0 / 1.127 GB, free: 33.2 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 5.514e-05/1.034, allocations: 318.8 kB / 1.127 GB, free: 32.88 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.46e-05/1.034, allocations: 31.31 kB / 1.127 GB, free: 32.85 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001063/1.034, allocations: 63.05 kB / 1.127 GB, free: 32.79 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001059/1.034, allocations: 37.5 kB / 1.127 GB, free: 32.76 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.819e-05/1.034, allocations: 0 / 1.127 GB, free: 32.76 MB / 0.7292 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002557/1.034, allocations: 108.1 kB / 1.127 GB, free: 32.66 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/1.034, allocations: 4 kB / 1.127 GB, free: 32.66 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/1.034, allocations: 8.969 kB / 1.127 GB, free: 32.65 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/1.034, allocations: 0.75 kB / 1.127 GB, free: 32.65 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/1.034, allocations: 19.45 kB / 1.127 GB, free: 32.63 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/1.034, allocations: 4 kB / 1.127 GB, free: 32.63 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.197e-05/1.035, allocations: 11.52 kB / 1.127 GB, free: 32.62 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/1.035, allocations: 4 kB / 1.127 GB, free: 32.62 MB / 0.7292 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 6.831e-05/1.035, allocations: 118.8 kB / 1.127 GB, free: 32.49 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.55e-05/1.035, allocations: 15.84 kB / 1.127 GB, free: 32.48 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002709/1.035, allocations: 112.7 kB / 1.127 GB, free: 32.38 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-06/1.035, allocations: 0.5625 kB / 1.127 GB, free: 32.38 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/1.035, allocations: 0 / 1.127 GB, free: 32.38 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.339e-06/1.035, allocations: 0 / 1.127 GB, free: 32.38 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003741/1.035, allocations: 367.9 kB / 1.128 GB, free: 32 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/1.035, allocations: 0 / 1.128 GB, free: 32 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.592e-05/1.035, allocations: 19.94 kB / 1.128 GB, free: 31.98 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/1.035, allocations: 4.562 kB / 1.128 GB, free: 31.98 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/1.035, allocations: 3.516 kB / 1.128 GB, free: 31.98 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/1.035, allocations: 4.5 kB / 1.128 GB, free: 31.97 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/1.035, allocations: 0 / 1.128 GB, free: 31.97 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002576/1.036, allocations: 206.3 kB / 1.128 GB, free: 31.77 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.15e-05/1.036, allocations: 81.11 kB / 1.128 GB, free: 31.67 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.696e-05/1.036, allocations: 4.562 kB / 1.128 GB, free: 31.67 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.862e-05/1.036, allocations: 11.52 kB / 1.128 GB, free: 31.66 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.686e-05/1.036, allocations: 8.359 kB / 1.128 GB, free: 31.66 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-06/1.036, allocations: 0 / 1.128 GB, free: 31.66 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 2.888e-05/1.036, allocations: 83.91 kB / 1.128 GB, free: 31.57 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.21e-07/1.036, allocations: 4 kB / 1.128 GB, free: 31.57 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002378/1.036, allocations: 20.34 kB / 1.128 GB, free: 31.55 MB / 0.7292 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.0001564/1.036, allocations: 115.8 kB / 1.128 GB, free: 31.43 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002511/1.037, allocations: 69.83 kB / 1.128 GB, free: 31.38 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/1.037, allocations: 0 / 1.128 GB, free: 31.38 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001067/1.037, allocations: 43.02 kB / 1.128 GB, free: 31.34 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000178/1.037, allocations: 8.984 kB / 1.129 GB, free: 31.34 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003182/1.037, allocations: 145.8 kB / 1.129 GB, free: 31.18 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001311/1.037, allocations: 0.6876 MB / 1.129 GB, free: 30.47 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 3.575e-05/1.038, allocations: 6.25 kB / 1.129 GB, free: 30.46 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.329e-05/1.038, allocations: 7.438 kB / 1.129 GB, free: 30.46 MB / 0.7292 GB Notification: Performance of SimCode: time 2.21e-07/1.038, allocations: 0 / 1.129 GB, free: 30.46 MB / 0.7292 GB Notification: Performance of Templates: time 0.003164/1.041, allocations: 0.6624 MB / 1.13 GB, free: 30.09 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)