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 3.413/3.413, allocations: 287.3 MB / 302.3 MB, free: 8.277 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.001643/0.001643, allocations: 193.3 kB / 370.8 MB, free: 10.84 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.307/2.307, allocations: 205.4 MB / 0.6295 GB, free: 10.55 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.001096/0.001096, allocations: 87.56 kB / 0.7428 GB, free: 6.582 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000685/0.0006852, allocations: 12.22 kB / 0.8656 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2801, allocations: 115.3 MB / 0.9782 GB, free: 28.37 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001084/0.2813, allocations: 393.8 kB / 0.9786 GB, free: 27.98 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001785/0.2831, allocations: 1.021 MB / 0.9796 GB, free: 26.95 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.889e-05/0.2831, allocations: 3.938 kB / 0.9796 GB, free: 26.95 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.953e-05/0.2832, allocations: 3.984 kB / 0.9796 GB, free: 26.94 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 8.563e-05/0.2833, allocations: 11.98 kB / 0.9796 GB, free: 26.93 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003276/0.2836, allocations: 31.84 kB / 0.9796 GB, free: 26.9 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 9.09e-05/0.2837, allocations: 27.97 kB / 0.9796 GB, free: 26.87 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.2838, allocations: 7.984 kB / 0.9797 GB, free: 26.86 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 8.757e-05/0.2839, allocations: 27.84 kB / 0.9797 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 6.677e-05/0.284, allocations: 19.92 kB / 0.9797 GB, free: 26.82 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.769e-05/0.2841, allocations: 0 / 0.9797 GB, free: 26.82 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 8.044e-05/0.2842, allocations: 11.98 kB / 0.9797 GB, free: 26.8 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.263e-05/0.2842, allocations: 4 kB / 0.9797 GB, free: 26.8 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.798e-05/0.2842, allocations: 29.7 kB / 0.9797 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001281/0.2844, allocations: 39.84 kB / 0.9798 GB, free: 26.73 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2844, allocations: 8 kB / 0.9798 GB, free: 26.72 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.956e-06/0.2844, allocations: 0 / 0.9798 GB, free: 26.72 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 5.059e-06/0.2844, allocations: 3.938 kB / 0.9798 GB, free: 26.71 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.0007487/0.2852, allocations: 363.5 kB / 0.9801 GB, free: 26.31 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.2853, allocations: 12.02 kB / 0.9802 GB, free: 26.3 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.913e-05/0.2853, allocations: 11.91 kB / 0.9802 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001053/0.2854, allocations: 171 kB / 0.9803 GB, free: 26.08 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.066e-05/0.2855, allocations: 4 kB / 0.9803 GB, free: 26.08 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.367e-05/0.2855, allocations: 0 / 0.9803 GB, free: 26.08 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003286/0.2859, allocations: 65.67 kB / 0.9804 GB, free: 26.01 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.2859, allocations: 0 / 0.9804 GB, free: 26.01 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.762e-05/0.2859, allocations: 3.984 kB / 0.9804 GB, free: 26 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.2859, allocations: 4 kB / 0.9804 GB, free: 26 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003755/0.2863, allocations: 51.91 kB / 0.9804 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006185/0.287, allocations: 284.8 kB / 0.9807 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002912/0.2873, allocations: 62.55 kB / 0.9808 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 4.7e-05/0.2873, allocations: 0 / 0.9808 GB, free: 25.55 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003359/0.2877, allocations: 83.44 kB / 0.9809 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 2.245e-06/0.2877, allocations: 0 / 0.9809 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.0007842/0.2885, allocations: 137.5 kB / 0.981 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.05e-05/0.2886, allocations: 55.41 kB / 0.981 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.075e-05/0.2887, allocations: 110 kB / 0.9811 GB, free: 25.13 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 2.009e-05/0.2887, allocations: 33.7 kB / 0.9812 GB, free: 25.09 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 4.221e-05/0.2888, allocations: 80.14 kB / 0.9813 GB, free: 25.01 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.035e-05/0.2888, allocations: 15.81 kB / 0.9813 GB, free: 25 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.709e-06/0.2888, allocations: 0 / 0.9813 GB, free: 25 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.057e-05/0.2889, allocations: 314.8 kB / 0.9816 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002035/0.2891, allocations: 31.98 kB / 0.9816 GB, free: 24.65 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000218/0.2894, allocations: 59.34 kB / 0.9817 GB, free: 24.58 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002127/0.2896, allocations: 31.98 kB / 0.9817 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.2896, allocations: 0 / 0.9817 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005275/0.2902, allocations: 121.6 kB / 0.9818 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.405e-05/0.2902, allocations: 4 kB / 0.9818 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.2902, allocations: 3.938 kB / 0.9818 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.2902, allocations: 4 kB / 0.9818 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002066/0.2905, allocations: 19.92 kB / 0.9818 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.2905, allocations: 3.938 kB / 0.9818 GB, free: 24.39 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001471/0.2906, allocations: 15.92 kB / 0.9819 GB, free: 24.37 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.882e-05/0.2907, allocations: 8 kB / 0.9819 GB, free: 24.36 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 0.000108/0.2908, allocations: 121.8 kB / 0.982 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.348e-05/0.2908, allocations: 3.984 kB / 0.982 GB, free: 24.23 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005653/0.2914, allocations: 110 kB / 0.9821 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.2915, allocations: 4 kB / 0.9821 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.2915, allocations: 7.938 kB / 0.9821 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.2915, allocations: 0 / 0.9821 GB, free: 24.11 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007457/0.2922, allocations: 358.4 kB / 0.9824 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.2923, allocations: 0 / 0.9824 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001273/0.2924, allocations: 16 kB / 0.9825 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.132e-06/0.2924, allocations: 0 / 0.9825 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.92e-05/0.2925, allocations: 7.984 kB / 0.9825 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.417e-06/0.2925, allocations: 0 / 0.9825 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.2925, allocations: 0 / 0.9825 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000518/0.293, allocations: 203.4 kB / 0.9827 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 3.775e-05/0.2931, allocations: 89 kB / 0.9827 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.058e-05/0.2931, allocations: 4.438 kB / 0.9827 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002111/0.2933, allocations: 11.98 kB / 0.9828 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.402e-05/0.2934, allocations: 0 / 0.9828 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.263e-05/0.2935, allocations: 12 kB / 0.9828 GB, free: 23.33 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 5.082e-05/0.2935, allocations: 91.22 kB / 0.9829 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.41e-07/0.2935, allocations: 0 / 0.9829 GB, free: 23.24 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0005382/0.2941, allocations: 8 kB / 0.9829 GB, free: 23.23 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.0001929/0.2943, allocations: 107.3 kB / 0.983 GB, free: 23.12 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0004904/0.2948, allocations: 71.89 kB / 0.983 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.2948, allocations: 0 / 0.983 GB, free: 23.05 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0002307/0.2951, allocations: 39.91 kB / 0.9831 GB, free: 23.01 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003553/0.2954, allocations: 9.891 kB / 0.9831 GB, free: 23 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00045/0.2959, allocations: 148.8 kB / 0.9832 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001652/0.2961, allocations: 0.6809 MB / 0.9839 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 6.004e-05/0.2962, allocations: 12.11 kB / 0.9839 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.038e-05/0.2962, allocations: 7.438 kB / 0.9839 GB, free: 22.1 MB / 0.6198 GB Notification: Performance of SimCode: time 1.122e-06/0.2962, allocations: 0 / 0.9839 GB, free: 22.1 MB / 0.6198 GB Notification: Performance of Templates: time 0.004516/0.3008, allocations: 0.6729 MB / 0.9846 GB, free: 21.43 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)