Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_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_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.812/1.812, allocations: 288.3 MB / 303.2 MB, free: 8.125 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.00104/0.00104, allocations: 189 kB / 371.8 MB, free: 10.26 MB / 298.7 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.4 MB / 0.6306 GB, free: 9.98 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.001063/0.001063, allocations: 94.84 kB / 0.7439 GB, free: 5.906 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004477/0.0004477, allocations: 11.41 kB / 0.8668 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.2869, allocations: 115.3 MB / 0.9794 GB, free: 27.67 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.000855/0.2878, allocations: 386 kB / 0.9798 GB, free: 27.29 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001161/0.289, allocations: 1.029 MB / 0.9808 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.64e-05/0.2891, allocations: 0 / 0.9808 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.524e-05/0.2891, allocations: 3.984 kB / 0.9808 GB, free: 26.24 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.443e-05/0.2892, allocations: 7.922 kB / 0.9808 GB, free: 26.23 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002196/0.2894, allocations: 31.92 kB / 0.9808 GB, free: 26.2 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 6.27e-05/0.2895, allocations: 27.95 kB / 0.9809 GB, free: 26.18 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.341e-05/0.2896, allocations: 11.98 kB / 0.9809 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.189e-05/0.2896, allocations: 15.92 kB / 0.9809 GB, free: 26.15 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 4.758e-05/0.2897, allocations: 15.92 kB / 0.9809 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.329e-05/0.2897, allocations: 4 kB / 0.9809 GB, free: 26.13 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.473e-05/0.2898, allocations: 19.92 kB / 0.9809 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.628e-05/0.2898, allocations: 7.984 kB / 0.9809 GB, free: 26.1 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.81e-05/0.2898, allocations: 37.62 kB / 0.981 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 8.115e-05/0.2899, allocations: 31.94 kB / 0.981 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.2899, allocations: 0 / 0.981 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.134e-06/0.2899, allocations: 0 / 0.981 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.779e-06/0.2899, allocations: 0 / 0.981 GB, free: 26.03 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.000535/0.2905, allocations: 367.5 kB / 0.9814 GB, free: 25.62 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.2905, allocations: 16.02 kB / 0.9814 GB, free: 25.61 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.395e-05/0.2906, allocations: 3.906 kB / 0.9814 GB, free: 25.6 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.776e-05/0.2907, allocations: 171 kB / 0.9815 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/0.2907, allocations: 0 / 0.9815 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.258e-05/0.2907, allocations: 8 kB / 0.9815 GB, free: 25.39 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000203/0.2909, allocations: 73.56 kB / 0.9816 GB, free: 25.31 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.2909, allocations: 4 kB / 0.9816 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.291, allocations: 8 kB / 0.9816 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.291, allocations: 0 / 0.9816 GB, free: 25.3 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001791/0.2911, allocations: 47.95 kB / 0.9817 GB, free: 25.25 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004198/0.2916, allocations: 280.8 kB / 0.9819 GB, free: 24.93 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001464/0.2917, allocations: 58.48 kB / 0.982 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.54e-05/0.2918, allocations: 4 kB / 0.982 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000197/0.292, allocations: 79.5 kB / 0.9821 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=6): time 1.372e-06/0.292, allocations: 0 / 0.9821 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of matching and sorting (n=6): time 0.0003877/0.2924, allocations: 145.5 kB / 0.9822 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.796e-05/0.2924, allocations: 51.41 kB / 0.9823 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.187e-05/0.2925, allocations: 109.8 kB / 0.9824 GB, free: 24.44 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.101e-05/0.2925, allocations: 25.7 kB / 0.9824 GB, free: 24.41 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.968e-05/0.2926, allocations: 88.14 kB / 0.9825 GB, free: 24.32 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.56e-05/0.2926, allocations: 7.812 kB / 0.9825 GB, free: 24.31 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.68e-06/0.2926, allocations: 4 kB / 0.9825 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.779e-05/0.2926, allocations: 322.8 kB / 0.9828 GB, free: 23.98 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.975e-05/0.2927, allocations: 31.92 kB / 0.9828 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.91e-05/0.2929, allocations: 63.45 kB / 0.9829 GB, free: 23.88 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001206/0.293, allocations: 43.91 kB / 0.9829 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.293, allocations: 0 / 0.9829 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002267/0.2932, allocations: 113.5 kB / 0.983 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.2932, allocations: 9.719 kB / 0.983 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.2933, allocations: 0 / 0.983 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.2933, allocations: 3.984 kB / 0.9831 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.75e-05/0.2934, allocations: 20 kB / 0.9831 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.2934, allocations: 3.984 kB / 0.9831 GB, free: 23.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.434e-05/0.2935, allocations: 11.94 kB / 0.9831 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.668e-06/0.2935, allocations: 4 kB / 0.9831 GB, free: 23.66 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 7.373e-05/0.2936, allocations: 121.8 kB / 0.9832 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.121e-05/0.2936, allocations: 4 kB / 0.9832 GB, free: 23.53 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002589/0.2938, allocations: 114 kB / 0.9833 GB, free: 23.42 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.2939, allocations: 4 kB / 0.9833 GB, free: 23.41 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.2939, allocations: 0 / 0.9833 GB, free: 23.41 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.2939, allocations: 0 / 0.9833 GB, free: 23.41 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003518/0.2942, allocations: 366.4 kB / 0.9837 GB, free: 23 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2942, allocations: 4 kB / 0.9837 GB, free: 23 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.552e-05/0.2943, allocations: 11.98 kB / 0.9837 GB, free: 22.98 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.2943, allocations: 4 kB / 0.9837 GB, free: 22.98 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.258e-06/0.2943, allocations: 0 / 0.9837 GB, free: 22.98 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.2943, allocations: 0 / 0.9837 GB, free: 22.98 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.2943, allocations: 0.625 kB / 0.9837 GB, free: 22.98 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002327/0.2946, allocations: 203.5 kB / 0.9839 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.517e-05/0.2946, allocations: 85.06 kB / 0.984 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.719e-05/0.2946, allocations: 4 kB / 0.984 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.185e-05/0.2947, allocations: 15.98 kB / 0.984 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.065e-05/0.2948, allocations: 8 kB / 0.984 GB, free: 22.64 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.248e-05/0.2948, allocations: 4 kB / 0.984 GB, free: 22.63 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.44e-05/0.2948, allocations: 87.2 kB / 0.9841 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2948, allocations: 0 / 0.9841 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002254/0.2951, allocations: 12 kB / 0.9841 GB, free: 22.54 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.0001318/0.2952, allocations: 103.2 kB / 0.9842 GB, free: 22.42 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002417/0.2955, allocations: 79.88 kB / 0.9843 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.2955, allocations: 0 / 0.9843 GB, free: 22.34 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001039/0.2956, allocations: 35.92 kB / 0.9843 GB, free: 22.31 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001752/0.2958, allocations: 9.156 kB / 0.9843 GB, free: 22.3 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002846/0.2961, allocations: 144.7 kB / 0.9844 GB, free: 22.14 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001348/0.2962, allocations: 0.6887 MB / 0.9851 GB, free: 21.42 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 3.344e-05/0.2962, allocations: 7.938 kB / 0.9851 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.973e-05/0.2963, allocations: 7.438 kB / 0.9851 GB, free: 21.4 MB / 0.6198 GB Notification: Performance of SimCode: time 2.31e-07/0.2963, allocations: 4 kB / 0.9851 GB, free: 21.4 MB / 0.6198 GB Notification: Performance of Templates: time 0.00276/0.299, allocations: 0.6708 MB / 0.9858 GB, free: 20.73 MB / 0.6198 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)