Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.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.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.653/1.653, allocations: 285.4 MB / 298 MB, free: 6.004 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.0009609/0.000961, allocations: 184.8 kB / 366.4 MB, free: 2.094 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.77/1.77, allocations: 205.1 MB / 0.6248 GB, free: 7.742 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.001076/0.001075, allocations: 90.98 kB / 0.738 GB, free: 40.29 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.907e-05/3.951e-05, allocations: 8 kB / 0.8583 GB, free: 13.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8015/0.8016, allocations: 115.3 MB / 0.9709 GB, free: 77.97 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2168/1.018, allocations: 137.9 MB / 1.106 GB, free: 13.95 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003415/1.019, allocations: 71.95 kB / 1.106 GB, free: 13.88 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.005117/1.024, allocations: 1.093 MB / 1.107 GB, free: 12.81 MB / 0.7136 GB Notification: Performance of FrontEnd: time 2.735e-06/1.024, allocations: 0 / 1.107 GB, free: 12.81 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 1.278e-05/1.024, allocations: 1.25 kB / 1.107 GB, free: 12.81 MB / 0.7136 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.000746/1.025, allocations: 359.9 kB / 1.107 GB, free: 12.41 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 7.958e-05/1.025, allocations: 13.19 kB / 1.107 GB, free: 12.4 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.077e-05/1.025, allocations: 4 kB / 1.107 GB, free: 12.4 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001975/1.025, allocations: 171 kB / 1.107 GB, free: 12.19 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.646e-05/1.025, allocations: 3.031 kB / 1.107 GB, free: 12.19 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.647e-05/1.025, allocations: 4 kB / 1.107 GB, free: 12.19 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002076/1.026, allocations: 49.69 kB / 1.107 GB, free: 12.13 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/1.026, allocations: 3.984 kB / 1.107 GB, free: 12.13 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.212e-05/1.026, allocations: 3.156 kB / 1.107 GB, free: 12.13 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/1.026, allocations: 0 / 1.107 GB, free: 12.13 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001151/1.026, allocations: 19.94 kB / 1.107 GB, free: 12.11 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007516/1.027, allocations: 278.2 kB / 1.108 GB, free: 11.79 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001827/1.027, allocations: 52.88 kB / 1.108 GB, free: 11.73 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.1e-05/1.027, allocations: 16.98 kB / 1.108 GB, free: 11.71 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 3.193e-05/1.027, allocations: 0 / 1.108 GB, free: 11.71 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000203/1.027, allocations: 66.62 kB / 1.108 GB, free: 11.64 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=6): time 6.262e-06/1.027, allocations: 4.547 kB / 1.108 GB, free: 11.63 MB / 0.7136 GB Notification: Performance of matching and sorting (n=6): time 0.0003513/1.028, allocations: 70.2 kB / 1.108 GB, free: 11.56 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.351e-05/1.028, allocations: 57.34 kB / 1.108 GB, free: 11.49 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000113/1.028, allocations: 97.81 kB / 1.108 GB, free: 11.39 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.392e-05/1.028, allocations: 25.7 kB / 1.108 GB, free: 11.36 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 7.33e-05/1.028, allocations: 86.95 kB / 1.108 GB, free: 11.27 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 4.381e-05/1.028, allocations: 20.52 kB / 1.108 GB, free: 11.25 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.484e-06/1.028, allocations: 0 / 1.108 GB, free: 11.25 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001673/1.028, allocations: 323.3 kB / 1.108 GB, free: 10.93 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.048e-05/1.028, allocations: 10.22 kB / 1.108 GB, free: 10.92 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.488e-05/1.028, allocations: 43.36 kB / 1.108 GB, free: 10.87 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.54e-05/1.028, allocations: 13.38 kB / 1.108 GB, free: 10.86 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/1.028, allocations: 0 / 1.108 GB, free: 10.86 MB / 0.7136 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002693/1.029, allocations: 92 kB / 1.108 GB, free: 10.77 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/1.029, allocations: 4 kB / 1.109 GB, free: 10.76 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.199e-05/1.029, allocations: 4 kB / 1.109 GB, free: 10.76 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/1.029, allocations: 0 / 1.109 GB, free: 10.76 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001915/1.029, allocations: 19.92 kB / 1.109 GB, free: 10.74 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/1.029, allocations: 0 / 1.109 GB, free: 10.74 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001284/1.029, allocations: 12.78 kB / 1.109 GB, free: 10.73 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.595e-05/1.029, allocations: 7.984 kB / 1.109 GB, free: 10.72 MB / 0.7136 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 () * 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.0001331/1.029, allocations: 112.9 kB / 1.109 GB, free: 10.61 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.44e-05/1.029, allocations: 3.906 kB / 1.109 GB, free: 10.6 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002661/1.03, allocations: 87.05 kB / 1.109 GB, free: 10.51 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/1.03, allocations: 0 / 1.109 GB, free: 10.51 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/1.03, allocations: 4.094 kB / 1.109 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/1.03, allocations: 0 / 1.109 GB, free: 10.5 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000479/1.03, allocations: 326.6 kB / 1.109 GB, free: 10.13 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/1.03, allocations: 0 / 1.109 GB, free: 10.13 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001107/1.03, allocations: 15.92 kB / 1.109 GB, free: 10.11 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/1.03, allocations: 0 / 1.109 GB, free: 10.11 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/1.03, allocations: 4 kB / 1.109 GB, free: 10.11 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/1.03, allocations: 0 / 1.109 GB, free: 10.11 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/1.031, allocations: 11.67 kB / 1.109 GB, free: 10.1 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002807/1.031, allocations: 167.5 kB / 1.109 GB, free: 9.922 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 6.319e-05/1.031, allocations: 81.02 kB / 1.109 GB, free: 9.824 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.669e-05/1.031, allocations: 6.156 kB / 1.109 GB, free: 9.82 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000181/1.031, allocations: 11.98 kB / 1.109 GB, free: 9.809 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.595e-05/1.031, allocations: 7.984 kB / 1.109 GB, free: 9.801 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-05/1.031, allocations: 4 kB / 1.109 GB, free: 9.797 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 6.017e-05/1.031, allocations: 87.22 kB / 1.109 GB, free: 9.711 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.2e-07/1.031, allocations: 0 / 1.109 GB, free: 9.711 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0004725/1.032, allocations: 20 kB / 1.109 GB, free: 9.691 MB / 0.7136 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 () * 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.0002753/1.032, allocations: 119.1 kB / 1.11 GB, free: 9.566 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0002093/1.032, allocations: 40 kB / 1.11 GB, free: 9.527 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/1.032, allocations: 0 / 1.11 GB, free: 9.527 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 9.239e-05/1.032, allocations: 19.94 kB / 1.11 GB, free: 9.508 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003159/1.033, allocations: 12.17 kB / 1.11 GB, free: 9.496 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003998/1.033, allocations: 81.45 kB / 1.11 GB, free: 9.398 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000405/1.034, allocations: 0.6848 MB / 1.11 GB, free: 8.688 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.716e-05/1.034, allocations: 4.188 kB / 1.11 GB, free: 8.68 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.671e-05/1.034, allocations: 7.438 kB / 1.11 GB, free: 8.672 MB / 0.7136 GB Notification: Performance of SimCode: time 6.32e-07/1.034, allocations: 5.688 kB / 1.11 GB, free: 8.668 MB / 0.7136 GB Notification: Performance of Templates: time 0.004938/1.039, allocations: 0.6765 MB / 1.111 GB, free: 8.031 MB / 0.7136 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)