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.001407/0.001407, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001409/0.001409, allocations: 192.1 kB / 16.26 MB, free: 6.621 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.652/1.652, allocations: 205.1 MB / 222.1 MB, free: 4.75 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.753/1.753, allocations: 292.2 MB / 0.5485 GB, free: 13.68 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.001355/0.001355, allocations: 69.2 kB / 0.671 GB, free: 26.13 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3091/0.3105, allocations: 114.5 MB / 0.7829 GB, free: 13.93 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002076/0.3126, allocations: 0.7348 MB / 0.7836 GB, free: 13.19 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001192/0.3138, allocations: 1.044 MB / 0.7846 GB, free: 12.13 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.131e-05/0.3139, allocations: 4 kB / 0.7846 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.149e-05/0.3139, allocations: 0 / 0.7846 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.665e-05/0.314, allocations: 3.938 kB / 0.7846 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002894/0.3143, allocations: 35.89 kB / 0.7846 GB, free: 12.09 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.066e-05/0.3144, allocations: 47.92 kB / 0.7847 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.3145, allocations: 7.984 kB / 0.7847 GB, free: 12.03 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.947e-05/0.3146, allocations: 23.92 kB / 0.7847 GB, free: 12.01 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.391e-05/0.3146, allocations: 23.91 kB / 0.7847 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.43e-05/0.3147, allocations: 4 kB / 0.7847 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.811e-05/0.3147, allocations: 15.98 kB / 0.7848 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.307e-05/0.3148, allocations: 15.92 kB / 0.7848 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.413e-05/0.3148, allocations: 15.94 kB / 0.7848 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001465/0.3149, allocations: 51.84 kB / 0.7848 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.315, allocations: 4 kB / 0.7848 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.563e-06/0.315, allocations: 0 / 0.7848 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.204e-05/0.315, allocations: 4 kB / 0.7848 GB, free: 11.88 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.0006585/0.3156, allocations: 370 kB / 0.7852 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.3157, allocations: 8.031 kB / 0.7852 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.094e-05/0.3157, allocations: 8.844 kB / 0.7852 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.3159, allocations: 160.4 kB / 0.7854 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.5e-05/0.3159, allocations: 12.36 kB / 0.7854 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.629e-05/0.3159, allocations: 8.312 kB / 0.7854 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002123/0.3161, allocations: 66.22 kB / 0.7855 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.3161, allocations: 192 / 0.7855 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.3162, allocations: 7.938 kB / 0.7855 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.74e-06/0.3162, allocations: 7.938 kB / 0.7855 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001776/0.3164, allocations: 39.95 kB / 0.7855 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004421/0.3168, allocations: 288.7 kB / 0.7858 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001931/0.317, allocations: 58.48 kB / 0.7858 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.644e-05/0.3171, allocations: 28.97 kB / 0.7859 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.017e-05/0.3171, allocations: 4 kB / 0.7859 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001969/0.3174, allocations: 79.31 kB / 0.7859 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 1.372e-06/0.3174, allocations: 0 / 0.7859 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.000403/0.3178, allocations: 113.6 kB / 0.7861 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.977e-05/0.3178, allocations: 55.41 kB / 0.7861 GB, free: 10.4 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.501e-05/0.3179, allocations: 113.8 kB / 0.7862 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.244e-05/0.3179, allocations: 25.7 kB / 0.7862 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.872e-05/0.318, allocations: 88.05 kB / 0.7863 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.698e-05/0.318, allocations: 11.91 kB / 0.7863 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.054e-05/0.3181, allocations: 21.7 kB / 0.7864 GB, free: 10.12 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001142/0.3182, allocations: 314.8 kB / 0.7867 GB, free: 9.805 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.453e-05/0.3183, allocations: 23.97 kB / 0.7867 GB, free: 9.781 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000114/0.3184, allocations: 59.34 kB / 0.7867 GB, free: 9.711 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001824/0.3186, allocations: 75.34 kB / 0.7868 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.3186, allocations: 0 / 0.7868 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002449/0.3188, allocations: 109.4 kB / 0.7869 GB, free: 9.512 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.3189, allocations: 10.66 kB / 0.7869 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.3189, allocations: 0 / 0.7869 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.421e-05/0.3189, allocations: 0 / 0.7869 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.319, allocations: 15.98 kB / 0.7869 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.319, allocations: 0 / 0.7869 GB, free: 9.488 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.797e-05/0.3191, allocations: 16.02 kB / 0.7869 GB, free: 9.473 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.3191, allocations: 8 kB / 0.787 GB, free: 9.465 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 9.039e-05/0.3192, allocations: 122.4 kB / 0.7871 GB, free: 9.336 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.257e-05/0.3192, allocations: 3.906 kB / 0.7871 GB, free: 9.332 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002705/0.3195, allocations: 102.6 kB / 0.7872 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.3195, allocations: 0 / 0.7872 GB, free: 9.227 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.3195, allocations: 7.938 kB / 0.7872 GB, free: 9.219 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.3195, allocations: 3.984 kB / 0.7872 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005046/0.3201, allocations: 358.5 kB / 0.7875 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.3201, allocations: 0 / 0.7875 GB, free: 8.809 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.78e-05/0.3201, allocations: 11.98 kB / 0.7875 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.3201, allocations: 48 / 0.7875 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.3202, allocations: 3.984 kB / 0.7875 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3202, allocations: 0 / 0.7875 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.3202, allocations: 3.984 kB / 0.7875 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002769/0.3204, allocations: 199.4 kB / 0.7877 GB, free: 8.578 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.693e-05/0.3205, allocations: 84.95 kB / 0.7878 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.631e-05/0.3205, allocations: 3.984 kB / 0.7878 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.504e-05/0.3206, allocations: 8 kB / 0.7878 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.227e-05/0.3207, allocations: 7.984 kB / 0.7878 GB, free: 8.457 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.661e-05/0.3207, allocations: 11.94 kB / 0.7878 GB, free: 8.445 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.707e-05/0.3208, allocations: 79.28 kB / 0.7879 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3208, allocations: 0 / 0.7879 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002333/0.321, allocations: 15.98 kB / 0.7879 GB, free: 8.352 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.0001567/0.3212, allocations: 99.25 kB / 0.788 GB, free: 8.246 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002549/0.3214, allocations: 63.89 kB / 0.7881 GB, free: 8.184 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.3214, allocations: 8.188 kB / 0.7881 GB, free: 8.176 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001059/0.3216, allocations: 27.97 kB / 0.7881 GB, free: 8.148 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002562/0.3218, allocations: 8 kB / 0.7881 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003613/0.3222, allocations: 149.4 kB / 0.7883 GB, free: 7.969 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003448/0.3225, allocations: 0.6846 MB / 0.7889 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.256e-05/0.3226, allocations: 4.438 kB / 0.789 GB, free: 7.254 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.536e-05/0.3226, allocations: 15.42 kB / 0.789 GB, free: 7.238 MB / 0.6075 GB Notification: Performance of SimCode: time 2.21e-07/0.3226, allocations: 0 / 0.789 GB, free: 7.238 MB / 0.6075 GB Notification: Performance of Templates: time 0.003148/0.3258, allocations: 0.7284 MB / 0.7897 GB, free: 6.52 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)