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.1-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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.1-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.1-maint.8.1.x/package.mo): time 1.699/1.699, allocations: 293 MB / 309 MB, free: 4.828 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.001093/0.001093, allocations: 176.6 kB / 378.7 MB, free: 1.016 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.826/1.826, allocations: 205.4 MB / 0.6383 GB, free: 9.176 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.000817/0.0008168, allocations: 87 kB / 0.7527 GB, free: 62.18 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000424/0.0004241, allocations: 12 kB / 0.8768 GB, free: 10.57 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2562/0.2566, allocations: 116.4 MB / 0.9904 GB, free: 6.016 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7013/0.958, allocations: 139 MB / 1.126 GB, free: 34.79 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002664/0.9583, allocations: 70.08 kB / 1.126 GB, free: 34.73 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.003054/0.9614, allocations: 1.094 MB / 1.127 GB, free: 33.9 MB / 0.7292 GB Notification: Performance of FrontEnd: time 4.017e-06/0.9614, allocations: 0 / 1.127 GB, free: 33.9 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 9.818e-06/0.9614, allocations: 4 kB / 1.127 GB, free: 33.89 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.0005174/0.962, allocations: 383.2 kB / 1.128 GB, free: 33.49 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 5.434e-05/0.962, allocations: 11.75 kB / 1.128 GB, free: 33.48 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.431e-05/0.9621, allocations: 8.984 kB / 1.128 GB, free: 33.48 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001427/0.9622, allocations: 164.8 kB / 1.128 GB, free: 33.28 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.9622, allocations: 4.375 kB / 1.128 GB, free: 33.27 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.993e-05/0.9623, allocations: 384 / 1.128 GB, free: 33.27 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002306/0.9625, allocations: 69.47 kB / 1.128 GB, free: 33.21 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.483e-05/0.9625, allocations: 4.188 kB / 1.128 GB, free: 33.21 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.9626, allocations: 3.938 kB / 1.128 GB, free: 33.2 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.9626, allocations: 0.625 kB / 1.128 GB, free: 33.2 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001801/0.9628, allocations: 53.59 kB / 1.128 GB, free: 33.16 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004826/0.9633, allocations: 277.9 kB / 1.128 GB, free: 32.86 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001645/0.9634, allocations: 62.34 kB / 1.128 GB, free: 32.8 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.483e-05/0.9635, allocations: 35.64 kB / 1.128 GB, free: 32.77 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.087e-05/0.9636, allocations: 4 kB / 1.128 GB, free: 32.76 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002551/0.9638, allocations: 78.33 kB / 1.128 GB, free: 32.68 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=6): time 1.873e-06/0.9638, allocations: 0 / 1.128 GB, free: 32.68 MB / 0.7292 GB Notification: Performance of matching and sorting (n=6): time 0.0004367/0.9643, allocations: 143.5 kB / 1.129 GB, free: 32.56 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.015e-05/0.9644, allocations: 51.41 kB / 1.129 GB, free: 32.5 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.408e-05/0.9644, allocations: 105.9 kB / 1.129 GB, free: 32.39 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.577e-05/0.9645, allocations: 25.7 kB / 1.129 GB, free: 32.36 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 4.918e-05/0.9645, allocations: 92.22 kB / 1.129 GB, free: 32.26 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 2.042e-05/0.9646, allocations: 15.73 kB / 1.129 GB, free: 32.25 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.561e-06/0.9646, allocations: 4 kB / 1.129 GB, free: 32.24 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 8.319e-05/0.9647, allocations: 318.5 kB / 1.129 GB, free: 31.93 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.145e-05/0.9648, allocations: 27.17 kB / 1.129 GB, free: 31.91 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/0.9649, allocations: 63.7 kB / 1.129 GB, free: 31.84 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001889/0.9651, allocations: 90.86 kB / 1.129 GB, free: 31.75 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.9651, allocations: 4 kB / 1.129 GB, free: 31.75 MB / 0.7292 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002314/0.9653, allocations: 111.8 kB / 1.129 GB, free: 31.64 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.9653, allocations: 10.66 kB / 1.129 GB, free: 31.64 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.9654, allocations: 0 / 1.129 GB, free: 31.64 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.095e-05/0.9654, allocations: 4.031 kB / 1.129 GB, free: 31.64 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.9655, allocations: 19.52 kB / 1.129 GB, free: 31.62 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.9655, allocations: 0 / 1.129 GB, free: 31.62 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.157e-05/0.9656, allocations: 12.56 kB / 1.13 GB, free: 31.61 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.414e-05/0.9656, allocations: 8.656 kB / 1.13 GB, free: 31.61 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 7.771e-05/0.9657, allocations: 129.7 kB / 1.13 GB, free: 31.47 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.12e-05/0.9657, allocations: 5.266 kB / 1.13 GB, free: 31.46 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002564/0.966, allocations: 111.7 kB / 1.13 GB, free: 31.37 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.966, allocations: 4 kB / 1.13 GB, free: 31.36 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.966, allocations: 4.641 kB / 1.13 GB, free: 31.36 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.966, allocations: 0 / 1.13 GB, free: 31.36 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003938/0.9664, allocations: 362.2 kB / 1.13 GB, free: 30.98 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.9664, allocations: 1.891 kB / 1.13 GB, free: 30.98 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.599e-05/0.9665, allocations: 15.42 kB / 1.13 GB, free: 30.97 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.9665, allocations: 4 kB / 1.13 GB, free: 30.96 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.9665, allocations: 0 / 1.13 GB, free: 30.96 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.043e-06/0.9665, allocations: 0.5 kB / 1.13 GB, free: 30.96 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.9665, allocations: 0 / 1.13 GB, free: 30.96 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002387/0.9668, allocations: 213.8 kB / 1.13 GB, free: 30.75 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 2.516e-05/0.9668, allocations: 77.81 kB / 1.13 GB, free: 30.66 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.767e-05/0.9668, allocations: 4.812 kB / 1.13 GB, free: 30.66 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.865e-05/0.9669, allocations: 12 kB / 1.13 GB, free: 30.65 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.639e-05/0.967, allocations: 7.516 kB / 1.13 GB, free: 30.64 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/0.967, allocations: 8.812 kB / 1.13 GB, free: 30.64 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 2.706e-05/0.967, allocations: 90.75 kB / 1.131 GB, free: 30.55 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.1e-07/0.967, allocations: 0 / 1.131 GB, free: 30.55 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002289/0.9673, allocations: 19.84 kB / 1.131 GB, free: 30.53 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.0001551/0.9674, allocations: 107.3 kB / 1.131 GB, free: 30.42 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002281/0.9677, allocations: 74.34 kB / 1.131 GB, free: 30.36 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.9677, allocations: 0 / 1.131 GB, free: 30.36 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 9.587e-05/0.9678, allocations: 36.41 kB / 1.131 GB, free: 30.33 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002448/0.968, allocations: 12.22 kB / 1.131 GB, free: 30.32 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003194/0.9684, allocations: 149.1 kB / 1.131 GB, free: 30.16 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001479/0.9685, allocations: 0.6844 MB / 1.132 GB, free: 29.45 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 3.333e-05/0.9686, allocations: 5.25 kB / 1.132 GB, free: 29.45 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.011e-05/0.9686, allocations: 7.438 kB / 1.132 GB, free: 29.45 MB / 0.7292 GB Notification: Performance of SimCode: time 3.91e-07/0.9686, allocations: 5.031 kB / 1.132 GB, free: 29.44 MB / 0.7292 GB Notification: Performance of Templates: time 0.00286/0.9715, allocations: 0.6773 MB / 1.132 GB, free: 29.06 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)