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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 195.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.669/1.669, allocations: 205.1 MB / 222.4 MB, free: 4.609 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.891/1.891, allocations: 292.3 MB / 0.5489 GB, free: 12.81 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001993, allocations: 71.88 kB / 0.6715 GB, free: 26.24 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3454/0.3474, allocations: 114.5 MB / 0.7834 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002865/0.3504, allocations: 0.6806 MB / 0.784 GB, free: 12.8 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001755/0.3521, allocations: 1.047 MB / 0.7851 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.002e-05/0.3522, allocations: 0 / 0.7851 GB, free: 11.74 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.656e-05/0.3523, allocations: 7.922 kB / 0.7851 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 8.051e-05/0.3524, allocations: 7.938 kB / 0.7851 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000432/0.3529, allocations: 43.83 kB / 0.7851 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000106/0.353, allocations: 43.92 kB / 0.7852 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001347/0.3531, allocations: 15.97 kB / 0.7852 GB, free: 11.62 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.3532, allocations: 19.94 kB / 0.7852 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 8.55e-05/0.3533, allocations: 19.91 kB / 0.7852 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.986e-05/0.3534, allocations: 4 kB / 0.7852 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 9.189e-05/0.3534, allocations: 19.98 kB / 0.7852 GB, free: 11.56 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.571e-05/0.3535, allocations: 11.94 kB / 0.7852 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.453e-05/0.3535, allocations: 19.91 kB / 0.7853 GB, free: 11.53 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001685/0.3537, allocations: 51.86 kB / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3537, allocations: 0 / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.774e-06/0.3537, allocations: 0 / 0.7853 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.695e-06/0.3538, allocations: 0 / 0.7853 GB, free: 11.48 MB / 0.6075 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.0007078/0.3545, allocations: 367.7 kB / 0.7857 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.375e-05/0.3545, allocations: 11.97 kB / 0.7857 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.237e-05/0.3546, allocations: 12.84 kB / 0.7857 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001486/0.3547, allocations: 168.4 kB / 0.7858 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.3548, allocations: 384 / 0.7858 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.17e-05/0.3548, allocations: 4.375 kB / 0.7859 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002347/0.355, allocations: 62.22 kB / 0.7859 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.355, allocations: 192 / 0.7859 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/0.3551, allocations: 7.875 kB / 0.7859 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.3551, allocations: 0 / 0.7859 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001947/0.3553, allocations: 47.95 kB / 0.786 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005308/0.3558, allocations: 284.6 kB / 0.7862 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001746/0.356, allocations: 54.48 kB / 0.7863 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/0.3561, allocations: 40.95 kB / 0.7863 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.759e-05/0.3562, allocations: 0 / 0.7863 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002785/0.3565, allocations: 75.31 kB / 0.7864 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 1.243e-06/0.3565, allocations: 0 / 0.7864 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.0004323/0.3569, allocations: 121.6 kB / 0.7865 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.006e-05/0.357, allocations: 55.41 kB / 0.7866 GB, free: 10 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.635e-05/0.3571, allocations: 105.8 kB / 0.7867 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.3571, allocations: 25.7 kB / 0.7867 GB, free: 9.859 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.787e-05/0.3572, allocations: 92.05 kB / 0.7868 GB, free: 9.766 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.075e-05/0.3572, allocations: 7.969 kB / 0.7868 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.389e-05/0.3572, allocations: 29.7 kB / 0.7868 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001339/0.3574, allocations: 310.8 kB / 0.7871 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/0.3575, allocations: 27.97 kB / 0.7871 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001163/0.3576, allocations: 52.92 kB / 0.7872 GB, free: 9.32 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000211/0.3578, allocations: 83.33 kB / 0.7873 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.3578, allocations: 0 / 0.7873 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002795/0.3581, allocations: 113.4 kB / 0.7874 GB, free: 9.109 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.3582, allocations: 4 kB / 0.7874 GB, free: 9.105 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.3582, allocations: 4 kB / 0.7874 GB, free: 9.102 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.3582, allocations: 4 kB / 0.7874 GB, free: 9.098 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.3583, allocations: 11.98 kB / 0.7874 GB, free: 9.086 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.3583, allocations: 8.094 kB / 0.7874 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.186e-05/0.3584, allocations: 11.92 kB / 0.7874 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.099e-05/0.3584, allocations: 4 kB / 0.7874 GB, free: 9.062 MB / 0.6075 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 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001108/0.3585, allocations: 121.7 kB / 0.7875 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.886e-05/0.3586, allocations: 7.906 kB / 0.7875 GB, free: 8.926 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002894/0.3589, allocations: 102 kB / 0.7876 GB, free: 8.82 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.3589, allocations: 4 kB / 0.7876 GB, free: 8.816 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.3589, allocations: 0 / 0.7876 GB, free: 8.816 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.3589, allocations: 0 / 0.7876 GB, free: 8.816 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004776/0.3594, allocations: 350.4 kB / 0.788 GB, free: 8.418 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.3594, allocations: 7.938 kB / 0.788 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.094e-05/0.3595, allocations: 7.984 kB / 0.788 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.3595, allocations: 0 / 0.788 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.3595, allocations: 4 kB / 0.788 GB, free: 8.398 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.3595, allocations: 4 kB / 0.788 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3595, allocations: 0 / 0.788 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002973/0.3598, allocations: 195.4 kB / 0.7882 GB, free: 8.188 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.417e-05/0.3599, allocations: 81.02 kB / 0.7883 GB, free: 8.09 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.707e-05/0.3599, allocations: 4 kB / 0.7883 GB, free: 8.086 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000102/0.36, allocations: 16.11 kB / 0.7883 GB, free: 8.07 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.578e-05/0.3601, allocations: 7.984 kB / 0.7883 GB, free: 8.062 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.247e-05/0.3601, allocations: 11.94 kB / 0.7883 GB, free: 8.051 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 5.017e-05/0.3602, allocations: 79.28 kB / 0.7884 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3602, allocations: 0 / 0.7884 GB, free: 7.973 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002688/0.3604, allocations: 16 kB / 0.7884 GB, free: 7.957 MB / 0.6075 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002221/0.3607, allocations: 103.2 kB / 0.7885 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002927/0.361, allocations: 67.89 kB / 0.7886 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.361, allocations: 0 / 0.7886 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001161/0.3611, allocations: 31.97 kB / 0.7886 GB, free: 7.75 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002925/0.3614, allocations: 8 kB / 0.7886 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004014/0.3618, allocations: 141.6 kB / 0.7887 GB, free: 7.578 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/0.3621, allocations: 0.6807 MB / 0.7894 GB, free: 6.871 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 4.168e-05/0.3622, allocations: 4 kB / 0.7894 GB, free: 6.867 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.069e-05/0.3622, allocations: 11.44 kB / 0.7894 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of SimCode: time 2.01e-07/0.3622, allocations: 0 / 0.7894 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of Templates: time 0.003788/0.366, allocations: 0.7894 MB / 0.7902 GB, free: 6.074 MB / 0.6075 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)