Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.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_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.832/2.832, allocations: 287.5 MB / 302.4 MB, free: 8.281 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.001485/0.001484, allocations: 181.9 kB / 371 MB, free: 10.86 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.211/2.211, allocations: 205.4 MB / 0.6297 GB, free: 10.59 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.001066/0.001066, allocations: 93.48 kB / 0.743 GB, free: 6.586 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006595/0.0006596, allocations: 10.88 kB / 0.8658 GB, free: 140.7 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2385, allocations: 115.3 MB / 0.9784 GB, free: 28.36 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.000937/0.2395, allocations: 389.8 kB / 0.9787 GB, free: 27.97 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001381/0.2409, allocations: 1.025 MB / 0.9797 GB, free: 26.93 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.129e-05/0.241, allocations: 0 / 0.9797 GB, free: 26.93 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.612e-05/0.241, allocations: 3.938 kB / 0.9797 GB, free: 26.93 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 7.135e-05/0.2411, allocations: 19.91 kB / 0.9798 GB, free: 26.91 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002408/0.2413, allocations: 23.98 kB / 0.9798 GB, free: 26.89 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.999e-05/0.2414, allocations: 43.84 kB / 0.9798 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 8.736e-05/0.2415, allocations: 11.98 kB / 0.9798 GB, free: 26.83 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.583e-05/0.2416, allocations: 15.92 kB / 0.9799 GB, free: 26.82 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.368e-05/0.2417, allocations: 15.92 kB / 0.9799 GB, free: 26.8 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.67e-05/0.2417, allocations: 4 kB / 0.9799 GB, free: 26.8 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 7.067e-05/0.2418, allocations: 15.98 kB / 0.9799 GB, free: 26.78 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.717e-05/0.2418, allocations: 3.984 kB / 0.9799 GB, free: 26.78 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.615e-05/0.2419, allocations: 37.7 kB / 0.9799 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 9.659e-05/0.242, allocations: 35.91 kB / 0.98 GB, free: 26.7 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.242, allocations: 0 / 0.98 GB, free: 26.7 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.665e-06/0.242, allocations: 4 kB / 0.98 GB, free: 26.7 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.242, allocations: 0 / 0.98 GB, free: 26.7 MB / 0.6198 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.0006139/0.2426, allocations: 371.5 kB / 0.9803 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.2427, allocations: 12.02 kB / 0.9803 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.903e-05/0.2427, allocations: 7.906 kB / 0.9803 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.597e-05/0.2428, allocations: 167 kB / 0.9805 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.895e-05/0.2429, allocations: 0 / 0.9805 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.917e-05/0.2429, allocations: 4 kB / 0.9805 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002623/0.2432, allocations: 69.66 kB / 0.9806 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.886e-05/0.2432, allocations: 0 / 0.9806 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.487e-05/0.2433, allocations: 4 kB / 0.9806 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.2433, allocations: 0 / 0.9806 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002946/0.2436, allocations: 55.89 kB / 0.9806 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004915/0.2441, allocations: 284.8 kB / 0.9809 GB, free: 25.6 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002294/0.2443, allocations: 66.47 kB / 0.981 GB, free: 25.52 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001593/0.2445, allocations: 32.95 kB / 0.981 GB, free: 25.49 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.586e-05/0.2445, allocations: 12 kB / 0.981 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002744/0.2448, allocations: 75.31 kB / 0.9811 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 1.863e-06/0.2449, allocations: 0 / 0.9811 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.0006117/0.2455, allocations: 141.5 kB / 0.9812 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.372e-05/0.2455, allocations: 51.41 kB / 0.9813 GB, free: 25.18 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.942e-05/0.2456, allocations: 109.8 kB / 0.9814 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.554e-05/0.2456, allocations: 25.7 kB / 0.9814 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.847e-05/0.2457, allocations: 92.14 kB / 0.9815 GB, free: 24.94 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.249e-05/0.2457, allocations: 7.812 kB / 0.9815 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.764e-06/0.2457, allocations: 4 kB / 0.9815 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.57e-05/0.2458, allocations: 318.8 kB / 0.9818 GB, free: 24.61 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001538/0.246, allocations: 23.98 kB / 0.9818 GB, free: 24.59 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.2462, allocations: 63.34 kB / 0.9819 GB, free: 24.51 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001663/0.2463, allocations: 27.98 kB / 0.9819 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.2464, allocations: 4 kB / 0.9819 GB, free: 24.48 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0004004/0.2468, allocations: 114 kB / 0.982 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.2468, allocations: 8 kB / 0.982 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.2468, allocations: 0 / 0.982 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.877e-05/0.2468, allocations: 0 / 0.982 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001704/0.247, allocations: 32.02 kB / 0.9821 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.247, allocations: 0 / 0.9821 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001095/0.2472, allocations: 23.88 kB / 0.9821 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.329e-05/0.2472, allocations: 0 / 0.9821 GB, free: 24.3 MB / 0.6198 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 9.778e-05/0.2473, allocations: 113.8 kB / 0.9822 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.626e-05/0.2473, allocations: 4 kB / 0.9822 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004126/0.2478, allocations: 118 kB / 0.9823 GB, free: 24.06 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.2478, allocations: 0 / 0.9823 GB, free: 24.06 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.2478, allocations: 0 / 0.9823 GB, free: 24.06 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.2478, allocations: 3.984 kB / 0.9823 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005726/0.2484, allocations: 366.5 kB / 0.9827 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.2484, allocations: 3.984 kB / 0.9827 GB, free: 23.64 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.939e-05/0.2485, allocations: 11.94 kB / 0.9827 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.2485, allocations: 4 kB / 0.9827 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.2486, allocations: 0 / 0.9827 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.2486, allocations: 7.922 kB / 0.9827 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.2486, allocations: 11.89 kB / 0.9827 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003882/0.249, allocations: 195.5 kB / 0.9829 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.524e-05/0.249, allocations: 81.02 kB / 0.983 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.105e-05/0.249, allocations: 7.984 kB / 0.983 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001459/0.2492, allocations: 12 kB / 0.983 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.263e-05/0.2493, allocations: 7.984 kB / 0.983 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.2493, allocations: 3.953 kB / 0.983 GB, free: 23.27 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 3.903e-05/0.2493, allocations: 91.47 kB / 0.9831 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.71e-07/0.2493, allocations: 0 / 0.9831 GB, free: 23.18 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003086/0.2497, allocations: 11.98 kB / 0.9831 GB, free: 23.16 MB / 0.6198 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.0001528/0.2498, allocations: 104.5 kB / 0.9832 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003896/0.2502, allocations: 71.89 kB / 0.9833 GB, free: 22.98 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.2502, allocations: 0 / 0.9833 GB, free: 22.98 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001775/0.2504, allocations: 44.09 kB / 0.9833 GB, free: 22.94 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003354/0.2508, allocations: 9.406 kB / 0.9833 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003622/0.2512, allocations: 140.7 kB / 0.9834 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001684/0.2513, allocations: 0.6848 MB / 0.9841 GB, free: 22.06 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.427e-05/0.2514, allocations: 192 / 0.9841 GB, free: 22.05 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.095e-05/0.2514, allocations: 11.44 kB / 0.9841 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of SimCode: time 6.31e-07/0.2514, allocations: 0 / 0.9841 GB, free: 22.04 MB / 0.6198 GB Notification: Performance of Templates: time 0.003604/0.2551, allocations: 0.6756 MB / 0.9848 GB, free: 21.37 MB / 0.6198 GB make -j1 -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)