Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_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_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.14/2.14, allocations: 251.1 MB / 266.7 MB, free: 11.65 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001328/0.001327, allocations: 177 kB / 326.2 MB, free: 2.879 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.426/2.426, allocations: 205.4 MB / 0.5772 GB, free: 20.86 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009747/0.0009744, allocations: 99.91 kB / 0.6817 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0008137/0.0008142, allocations: 11.94 kB / 0.7957 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2271/0.228, allocations: 106.3 MB / 0.8995 GB, free: 65.51 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2315/0.4596, allocations: 131.5 MB / 1.028 GB, free: 13.85 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003065/0.46, allocations: 75.95 kB / 1.028 GB, free: 13.78 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003843/0.4639, allocations: 0.8735 MB / 1.029 GB, free: 12.9 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.054e-06/0.4639, allocations: 0 / 1.029 GB, free: 12.9 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.067e-05/0.4639, allocations: 0 / 1.029 GB, free: 12.9 MB / 0.6823 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.000695/0.4646, allocations: 371.3 kB / 1.029 GB, free: 12.48 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.4647, allocations: 8.031 kB / 1.029 GB, free: 12.48 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.504e-05/0.4648, allocations: 8.844 kB / 1.029 GB, free: 12.47 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001437/0.4649, allocations: 164.3 kB / 1.029 GB, free: 12.27 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.962e-05/0.465, allocations: 8.375 kB / 1.029 GB, free: 12.26 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.641e-05/0.465, allocations: 384 / 1.029 GB, free: 12.26 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003119/0.4653, allocations: 74.22 kB / 1.029 GB, free: 12.18 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.4653, allocations: 192 / 1.029 GB, free: 12.18 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.737e-05/0.4654, allocations: 7.875 kB / 1.029 GB, free: 12.18 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.545e-06/0.4654, allocations: 4 kB / 1.029 GB, free: 12.17 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000346/0.4657, allocations: 51.95 kB / 1.029 GB, free: 12.12 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005893/0.4663, allocations: 268.9 kB / 1.03 GB, free: 11.81 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002675/0.4666, allocations: 62.48 kB / 1.03 GB, free: 11.74 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000194/0.4668, allocations: 44.89 kB / 1.03 GB, free: 11.69 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.542e-05/0.4669, allocations: 7.938 kB / 1.03 GB, free: 11.68 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003107/0.4672, allocations: 75.3 kB / 1.03 GB, free: 11.6 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=6): time 3.005e-06/0.4672, allocations: 0 / 1.03 GB, free: 11.6 MB / 0.6823 GB Notification: Performance of matching and sorting (n=6): time 0.0007033/0.4679, allocations: 133.6 kB / 1.03 GB, free: 11.46 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.718e-05/0.468, allocations: 51.41 kB / 1.03 GB, free: 11.4 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001151/0.4681, allocations: 105.8 kB / 1.03 GB, free: 11.29 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.62e-05/0.4682, allocations: 33.7 kB / 1.03 GB, free: 11.25 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 6.516e-05/0.4683, allocations: 88.12 kB / 1.03 GB, free: 11.16 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.281e-05/0.4683, allocations: 19.81 kB / 1.03 GB, free: 11.14 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.608e-06/0.4683, allocations: 4 kB / 1.03 GB, free: 11.13 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001621/0.4685, allocations: 310.8 kB / 1.031 GB, free: 10.82 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001726/0.4687, allocations: 27.97 kB / 1.031 GB, free: 10.79 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002065/0.4689, allocations: 59.41 kB / 1.031 GB, free: 10.72 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001863/0.4691, allocations: 35.92 kB / 1.031 GB, free: 10.69 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.962e-06/0.4691, allocations: 4 kB / 1.031 GB, free: 10.68 MB / 0.6823 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.00046/0.4696, allocations: 105.5 kB / 1.031 GB, free: 10.57 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.527e-05/0.4696, allocations: 9.547 kB / 1.031 GB, free: 10.57 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.4697, allocations: 4 kB / 1.031 GB, free: 10.56 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.22e-05/0.4697, allocations: 4.094 kB / 1.031 GB, free: 10.56 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002088/0.4699, allocations: 27.86 kB / 1.031 GB, free: 10.53 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.955e-06/0.4699, allocations: 0 / 1.031 GB, free: 10.53 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001109/0.4701, allocations: 8 kB / 1.031 GB, free: 10.52 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.426e-05/0.4701, allocations: 4 kB / 1.031 GB, free: 10.52 MB / 0.6823 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 0.0001396/0.4702, allocations: 125.7 kB / 1.031 GB, free: 10.39 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.854e-05/0.4703, allocations: 4 kB / 1.031 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005092/0.4708, allocations: 121.9 kB / 1.031 GB, free: 10.26 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.167e-06/0.4708, allocations: 3.984 kB / 1.031 GB, free: 10.25 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.4708, allocations: 0 / 1.031 GB, free: 10.25 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.4708, allocations: 0 / 1.031 GB, free: 10.25 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007497/0.4716, allocations: 363.1 kB / 1.032 GB, free: 9.844 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.4716, allocations: 3.938 kB / 1.032 GB, free: 9.84 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001309/0.4718, allocations: 16.05 kB / 1.032 GB, free: 9.824 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.4718, allocations: 0 / 1.032 GB, free: 9.824 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.54e-05/0.4718, allocations: 8 kB / 1.032 GB, free: 9.816 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.981e-06/0.4718, allocations: 4 kB / 1.032 GB, free: 9.812 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.4718, allocations: 0 / 1.032 GB, free: 9.812 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005014/0.4723, allocations: 199.5 kB / 1.032 GB, free: 9.602 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.831e-05/0.4724, allocations: 89 kB / 1.032 GB, free: 9.496 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.175e-05/0.4725, allocations: 0 / 1.032 GB, free: 9.496 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001704/0.4726, allocations: 11.98 kB / 1.032 GB, free: 9.484 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.425e-05/0.4727, allocations: 4 kB / 1.032 GB, free: 9.48 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.4727, allocations: 7.875 kB / 1.032 GB, free: 9.473 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 6.264e-05/0.4728, allocations: 87.27 kB / 1.032 GB, free: 9.387 MB / 0.6823 GB Notification: Performance of sort global known variables: time 3.81e-07/0.4728, allocations: 0 / 1.032 GB, free: 9.387 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003073/0.4731, allocations: 12 kB / 1.032 GB, free: 9.375 MB / 0.6823 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.0001427/0.4733, allocations: 103.2 kB / 1.032 GB, free: 9.266 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004288/0.4737, allocations: 68.08 kB / 1.032 GB, free: 9.199 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.4737, allocations: 8 kB / 1.032 GB, free: 9.191 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002073/0.474, allocations: 39.97 kB / 1.032 GB, free: 9.152 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003428/0.4744, allocations: 4 kB / 1.032 GB, free: 9.148 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004709/0.4748, allocations: 144.6 kB / 1.032 GB, free: 8.973 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003074/0.4752, allocations: 0.6809 MB / 1.033 GB, free: 8.266 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.644e-05/0.4752, allocations: 4 kB / 1.033 GB, free: 8.262 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.046e-05/0.4753, allocations: 11.44 kB / 1.033 GB, free: 8.25 MB / 0.6823 GB Notification: Performance of SimCode: time 9.82e-07/0.4753, allocations: 0 / 1.033 GB, free: 8.25 MB / 0.6823 GB Notification: Performance of Templates: time 0.003623/0.4789, allocations: 0.5388 MB / 1.033 GB, free: 7.715 MB / 0.6823 GB make -j1 -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)