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.612/1.612, allocations: 288.4 MB / 304.3 MB, free: 8.07 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.0009334/0.0009334, allocations: 172.5 kB / 372.9 MB, free: 10.15 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.549/1.549, allocations: 205.4 MB / 0.6317 GB, free: 9.93 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007471/0.0007472, allocations: 98.94 kB / 0.7451 GB, free: 5.824 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004293/0.0004293, allocations: 16.16 kB / 0.8681 GB, free: 141.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2294/0.2298, allocations: 115.3 MB / 0.9807 GB, free: 27.41 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7804/1.01, allocations: 138 MB / 1.115 GB, free: 16.41 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/1.011, allocations: 74.34 kB / 1.116 GB, free: 16.41 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003666/1.014, allocations: 1.09 MB / 1.117 GB, free: 32.07 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.104e-06/1.014, allocations: 0 / 1.117 GB, free: 32.07 MB / 0.698 GB Notification: Performance of Transformations before backend: time 7.424e-06/1.014, allocations: 0 / 1.117 GB, free: 32.07 MB / 0.698 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.0004886/1.015, allocations: 376.6 kB / 1.117 GB, free: 31.7 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/1.015, allocations: 7.719 kB / 1.117 GB, free: 31.7 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.442e-05/1.015, allocations: 4.812 kB / 1.117 GB, free: 31.7 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/1.015, allocations: 167.5 kB / 1.117 GB, free: 31.5 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.781e-05/1.015, allocations: 8.031 kB / 1.117 GB, free: 31.5 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.563e-05/1.015, allocations: 384 / 1.117 GB, free: 31.5 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001966/1.015, allocations: 74.7 kB / 1.117 GB, free: 31.46 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/1.015, allocations: 192 / 1.117 GB, free: 31.46 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/1.015, allocations: 3.938 kB / 1.117 GB, free: 31.46 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/1.015, allocations: 7.641 kB / 1.117 GB, free: 31.46 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/1.015, allocations: 59.02 kB / 1.117 GB, free: 31.45 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004698/1.016, allocations: 268.7 kB / 1.118 GB, free: 31.19 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001521/1.016, allocations: 62.06 kB / 1.118 GB, free: 31.16 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.27e-05/1.016, allocations: 38.19 kB / 1.118 GB, free: 31.15 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.686e-05/1.016, allocations: 0 / 1.118 GB, free: 31.15 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002012/1.016, allocations: 84.69 kB / 1.118 GB, free: 31.09 MB / 0.698 GB Notification: Performance of pre-optimization done (n=6): time 1.143e-06/1.016, allocations: 0 / 1.118 GB, free: 31.09 MB / 0.698 GB Notification: Performance of matching and sorting (n=6): time 0.0003854/1.017, allocations: 142 kB / 1.118 GB, free: 31.05 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.618e-05/1.017, allocations: 55.28 kB / 1.118 GB, free: 30.99 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.791e-05/1.017, allocations: 108.1 kB / 1.118 GB, free: 30.89 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/1.017, allocations: 29.58 kB / 1.118 GB, free: 30.86 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 4.497e-05/1.017, allocations: 80.14 kB / 1.118 GB, free: 30.77 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.234e-05/1.017, allocations: 25.53 kB / 1.118 GB, free: 30.76 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.998e-06/1.017, allocations: 1.641 kB / 1.118 GB, free: 30.76 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001122/1.017, allocations: 317 kB / 1.118 GB, free: 30.45 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.855e-05/1.017, allocations: 31.78 kB / 1.118 GB, free: 30.45 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000101/1.017, allocations: 57.73 kB / 1.119 GB, free: 30.41 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001791/1.018, allocations: 91.41 kB / 1.119 GB, free: 30.37 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/1.018, allocations: 0 / 1.119 GB, free: 30.37 MB / 0.698 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002314/1.018, allocations: 113.4 kB / 1.119 GB, free: 30.33 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/1.018, allocations: 9.078 kB / 1.119 GB, free: 30.33 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/1.018, allocations: 0 / 1.119 GB, free: 30.33 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/1.018, allocations: 0 / 1.119 GB, free: 30.33 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.971e-05/1.018, allocations: 19.91 kB / 1.119 GB, free: 30.33 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.251e-06/1.018, allocations: 0 / 1.119 GB, free: 30.33 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.729e-05/1.018, allocations: 18.05 kB / 1.119 GB, free: 30.32 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.367e-06/1.018, allocations: 3.844 kB / 1.119 GB, free: 30.32 MB / 0.698 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 8.855e-05/1.018, allocations: 127 kB / 1.119 GB, free: 30.2 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.057e-06/1.018, allocations: 3.938 kB / 1.119 GB, free: 30.19 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002631/1.019, allocations: 118.4 kB / 1.119 GB, free: 30.16 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/1.019, allocations: 1.406 kB / 1.119 GB, free: 30.16 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/1.019, allocations: 0 / 1.119 GB, free: 30.16 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/1.019, allocations: 0 / 1.119 GB, free: 30.16 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003829/1.019, allocations: 367.6 kB / 1.119 GB, free: 29.85 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/1.019, allocations: 0 / 1.119 GB, free: 29.85 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.708e-05/1.019, allocations: 10.91 kB / 1.119 GB, free: 29.85 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/1.019, allocations: 0 / 1.119 GB, free: 29.85 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.777e-06/1.019, allocations: 0 / 1.119 GB, free: 29.85 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/1.019, allocations: 0 / 1.119 GB, free: 29.85 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/1.019, allocations: 4.531 kB / 1.119 GB, free: 29.85 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002639/1.019, allocations: 217.4 kB / 1.12 GB, free: 29.71 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 3.504e-05/1.019, allocations: 81.11 kB / 1.12 GB, free: 29.61 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.618e-05/1.019, allocations: 0 / 1.12 GB, free: 29.61 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.232e-05/1.019, allocations: 10.81 kB / 1.12 GB, free: 29.61 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.2e-05/1.02, allocations: 10.84 kB / 1.12 GB, free: 29.61 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.777e-06/1.02, allocations: 7.781 kB / 1.12 GB, free: 29.6 MB / 0.698 GB Notification: Performance of sorting global known variables: time 3.897e-05/1.02, allocations: 85.33 kB / 1.12 GB, free: 29.53 MB / 0.698 GB Notification: Performance of sort global known variables: time 1e-07/1.02, allocations: 3.938 kB / 1.12 GB, free: 29.52 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000246/1.02, allocations: 27.22 kB / 1.12 GB, free: 29.51 MB / 0.698 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.0001501/1.02, allocations: 109.3 kB / 1.12 GB, free: 29.41 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002347/1.02, allocations: 80.16 kB / 1.12 GB, free: 29.41 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/1.02, allocations: 0 / 1.12 GB, free: 29.41 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001002/1.02, allocations: 33.47 kB / 1.12 GB, free: 29.41 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002488/1.021, allocations: 18.08 kB / 1.12 GB, free: 29.4 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000307/1.021, allocations: 143.8 kB / 1.12 GB, free: 29.28 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002188/1.021, allocations: 0.6798 MB / 1.121 GB, free: 28.58 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 3.069e-05/1.021, allocations: 7.219 kB / 1.121 GB, free: 28.58 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.942e-05/1.021, allocations: 11.28 kB / 1.121 GB, free: 28.57 MB / 0.698 GB Notification: Performance of SimCode: time 2.41e-07/1.021, allocations: 4 kB / 1.121 GB, free: 28.57 MB / 0.698 GB Notification: Performance of Templates: time 0.00289/1.024, allocations: 0.6674 MB / 1.122 GB, free: 28.52 MB / 0.698 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)