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.0009623/0.0009627, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.0009/0.0009, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.322/1.322, allocations: 205.4 MB / 222.1 MB, free: 5.891 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.623/1.623, allocations: 292.5 MB / 0.5497 GB, free: 14.62 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.0005421/0.0005421, allocations: 18 kB / 0.6736 GB, free: 26.42 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2722/0.2727, allocations: 116.3 MB / 0.7871 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.0009171/0.2737, allocations: 395.9 kB / 0.7875 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001278/0.275, allocations: 1.023 MB / 0.7885 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.956e-05/0.275, allocations: 0 / 0.7885 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.614e-05/0.2751, allocations: 3.938 kB / 0.7885 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.82e-05/0.2751, allocations: 11.98 kB / 0.7885 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001981/0.2753, allocations: 27.91 kB / 0.7885 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.246e-05/0.2754, allocations: 31.89 kB / 0.7886 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 8.872e-05/0.2755, allocations: 11.98 kB / 0.7886 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.267e-05/0.2756, allocations: 12 kB / 0.7886 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.883e-05/0.2756, allocations: 19.91 kB / 0.7886 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.177e-05/0.2757, allocations: 4 kB / 0.7886 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.702e-05/0.2757, allocations: 19.92 kB / 0.7886 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.6e-05/0.2757, allocations: 7.922 kB / 0.7887 GB, free: 10.41 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.397e-05/0.2758, allocations: 37.64 kB / 0.7887 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.09e-05/0.2759, allocations: 35.92 kB / 0.7887 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.2759, allocations: 0 / 0.7887 GB, free: 10.33 MB / 0.6075 GB Notification: Performance of FrontEnd: time 4.398e-06/0.2759, allocations: 8 kB / 0.7887 GB, free: 10.32 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.258e-06/0.2759, allocations: 0 / 0.7887 GB, free: 10.32 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.0005519/0.2765, allocations: 359.5 kB / 0.7891 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.2765, allocations: 8.031 kB / 0.7891 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.647e-05/0.2765, allocations: 7.906 kB / 0.7891 GB, free: 9.906 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000111/0.2767, allocations: 171 kB / 0.7893 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.572e-05/0.2767, allocations: 3.984 kB / 0.7893 GB, free: 9.695 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.152e-05/0.2767, allocations: 4 kB / 0.7893 GB, free: 9.691 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000201/0.2769, allocations: 69.66 kB / 0.7893 GB, free: 9.617 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.2769, allocations: 0 / 0.7893 GB, free: 9.617 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.072e-05/0.2769, allocations: 0 / 0.7893 GB, free: 9.617 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.277, allocations: 0 / 0.7893 GB, free: 9.617 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001815/0.2771, allocations: 55.95 kB / 0.7894 GB, free: 9.562 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004164/0.2776, allocations: 280.8 kB / 0.7896 GB, free: 9.238 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001624/0.2777, allocations: 66.48 kB / 0.7897 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.766e-05/0.2778, allocations: 0 / 0.7897 GB, free: 9.164 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002022/0.278, allocations: 75.5 kB / 0.7898 GB, free: 9.078 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 1.442e-06/0.278, allocations: 4 kB / 0.7898 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.0004043/0.2784, allocations: 137.5 kB / 0.7899 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.037e-05/0.2784, allocations: 55.41 kB / 0.79 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.606e-05/0.2785, allocations: 109.8 kB / 0.7901 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/0.2786, allocations: 25.7 kB / 0.7901 GB, free: 8.719 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 3.844e-05/0.2786, allocations: 84.14 kB / 0.7902 GB, free: 8.633 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.709e-05/0.2786, allocations: 11.81 kB / 0.7902 GB, free: 8.621 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.709e-06/0.2786, allocations: 4 kB / 0.7902 GB, free: 8.617 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.449e-05/0.2787, allocations: 322.8 kB / 0.7905 GB, free: 8.293 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.618e-05/0.2788, allocations: 27.98 kB / 0.7905 GB, free: 8.266 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/0.279, allocations: 59.39 kB / 0.7906 GB, free: 8.195 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001047/0.2791, allocations: 35.98 kB / 0.7906 GB, free: 8.16 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2791, allocations: 3.938 kB / 0.7906 GB, free: 8.156 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002556/0.2793, allocations: 121.4 kB / 0.7907 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.2794, allocations: 8.094 kB / 0.7907 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.698e-06/0.2794, allocations: 0 / 0.7907 GB, free: 8.023 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.2794, allocations: 4 kB / 0.7907 GB, free: 8.02 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.996e-05/0.2795, allocations: 15.98 kB / 0.7908 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.089e-06/0.2795, allocations: 0 / 0.7908 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.82e-05/0.2796, allocations: 16.42 kB / 0.7908 GB, free: 7.988 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.181e-05/0.2796, allocations: 8 kB / 0.7908 GB, free: 7.98 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 ($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 7.707e-05/0.2797, allocations: 117.7 kB / 0.7909 GB, free: 7.855 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.408e-06/0.2797, allocations: 7.938 kB / 0.7909 GB, free: 7.848 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002706/0.28, allocations: 114.1 kB / 0.791 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.28, allocations: 0 / 0.791 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.28, allocations: 0 / 0.791 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.944e-06/0.28, allocations: 11.98 kB / 0.791 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004193/0.2804, allocations: 366.4 kB / 0.7914 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2804, allocations: 0 / 0.7914 GB, free: 7.305 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.227e-05/0.2805, allocations: 19.98 kB / 0.7914 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.2805, allocations: 0 / 0.7914 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.165e-06/0.2805, allocations: 0 / 0.7914 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.2805, allocations: 0 / 0.7914 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.2805, allocations: 0 / 0.7914 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002725/0.2808, allocations: 211.4 kB / 0.7916 GB, free: 7.062 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.597e-05/0.2809, allocations: 81.02 kB / 0.7917 GB, free: 6.965 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.496e-05/0.2809, allocations: 0 / 0.7917 GB, free: 6.965 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.56e-05/0.281, allocations: 11.98 kB / 0.7917 GB, free: 6.953 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.779e-05/0.281, allocations: 7.984 kB / 0.7917 GB, free: 6.945 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.274e-05/0.2811, allocations: 4 kB / 0.7917 GB, free: 6.941 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.382e-05/0.2811, allocations: 83.28 kB / 0.7918 GB, free: 6.859 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2811, allocations: 4 kB / 0.7918 GB, free: 6.855 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002354/0.2813, allocations: 11.98 kB / 0.7918 GB, free: 6.844 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 (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.0001453/0.2815, allocations: 111.2 kB / 0.7919 GB, free: 6.727 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002563/0.2818, allocations: 72.27 kB / 0.792 GB, free: 6.656 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2818, allocations: 4 kB / 0.792 GB, free: 6.652 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.00011/0.2819, allocations: 35.97 kB / 0.792 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001656/0.2821, allocations: 7.938 kB / 0.792 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003028/0.2824, allocations: 145 kB / 0.7922 GB, free: 6.438 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002172/0.2826, allocations: 0.6848 MB / 0.7928 GB, free: 5.727 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.218e-05/0.2826, allocations: 12.17 kB / 0.7928 GB, free: 5.711 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.205e-05/0.2827, allocations: 11.44 kB / 0.7928 GB, free: 5.699 MB / 0.6075 GB Notification: Performance of SimCode: time 2.3e-07/0.2827, allocations: 0 / 0.7928 GB, free: 5.699 MB / 0.6075 GB Notification: Performance of Templates: time 0.002703/0.2854, allocations: 0.6692 MB / 0.7935 GB, free: 5.035 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: