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.001208/0.001208, allocations: 105.1 kB / 15.98 MB, free: 6.355 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.001316/0.001316, allocations: 196.5 kB / 16.91 MB, free: 6.191 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.495/1.495, allocations: 205.1 MB / 222.8 MB, free: 4.707 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.767/1.767, allocations: 292.3 MB / 0.5492 GB, free: 13.63 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.00146/0.00146, allocations: 68.97 kB / 0.6717 GB, free: 26.29 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2724/0.2738, allocations: 114.5 MB / 0.7835 GB, free: 13.91 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002181/0.2761, allocations: 0.7347 MB / 0.7842 GB, free: 13.17 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.001413/0.2775, allocations: 1.048 MB / 0.7853 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.188e-05/0.2776, allocations: 0 / 0.7853 GB, free: 12.11 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.908e-05/0.2776, allocations: 3.938 kB / 0.7853 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.269e-05/0.2777, allocations: 4 kB / 0.7853 GB, free: 12.1 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000275/0.278, allocations: 35.91 kB / 0.7853 GB, free: 12.06 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.304e-05/0.2781, allocations: 43.91 kB / 0.7853 GB, free: 12.02 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001036/0.2782, allocations: 12 kB / 0.7854 GB, free: 12.01 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.757e-05/0.2783, allocations: 23.86 kB / 0.7854 GB, free: 11.98 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.341e-05/0.2783, allocations: 19.91 kB / 0.7854 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.485e-05/0.2783, allocations: 4 kB / 0.7854 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.399e-05/0.2784, allocations: 19.98 kB / 0.7854 GB, free: 11.94 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.111e-05/0.2784, allocations: 15.92 kB / 0.7854 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.378e-05/0.2785, allocations: 19.92 kB / 0.7855 GB, free: 11.91 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001076/0.2786, allocations: 35.94 kB / 0.7855 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2786, allocations: 0 / 0.7855 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.563e-06/0.2786, allocations: 0 / 0.7855 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.982e-06/0.2786, allocations: 0 / 0.7855 GB, free: 11.87 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.0006358/0.2792, allocations: 363.7 kB / 0.7858 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.2793, allocations: 12.03 kB / 0.7858 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.24e-05/0.2793, allocations: 12.83 kB / 0.7859 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001335/0.2795, allocations: 164.4 kB / 0.786 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.2795, allocations: 384 / 0.786 GB, free: 11.24 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.499e-05/0.2795, allocations: 8.375 kB / 0.786 GB, free: 11.23 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002028/0.2797, allocations: 70.14 kB / 0.7861 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.084e-06/0.2797, allocations: 192 / 0.7861 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.396e-05/0.2798, allocations: 7.938 kB / 0.7861 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.2798, allocations: 4 kB / 0.7861 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001835/0.28, allocations: 47.88 kB / 0.7861 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000465/0.2804, allocations: 280.7 kB / 0.7864 GB, free: 10.78 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000159/0.2806, allocations: 58.42 kB / 0.7865 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.2807, allocations: 40.95 kB / 0.7865 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.243e-05/0.2808, allocations: 0 / 0.7865 GB, free: 10.67 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002231/0.281, allocations: 75.38 kB / 0.7866 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=6): time 1.293e-06/0.281, allocations: 4 kB / 0.7866 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of matching and sorting (n=6): time 0.0004091/0.2814, allocations: 113.6 kB / 0.7867 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.64e-05/0.2815, allocations: 59.34 kB / 0.7867 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.348e-05/0.2816, allocations: 101.9 kB / 0.7868 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.2816, allocations: 29.7 kB / 0.7869 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.614e-05/0.2817, allocations: 92.03 kB / 0.787 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.238e-05/0.2817, allocations: 11.97 kB / 0.787 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.073e-05/0.2817, allocations: 25.7 kB / 0.787 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001373/0.2819, allocations: 310.8 kB / 0.7873 GB, free: 9.797 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.579e-05/0.282, allocations: 27.97 kB / 0.7873 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001165/0.2821, allocations: 51.42 kB / 0.7874 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001918/0.2823, allocations: 83.27 kB / 0.7874 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2823, allocations: 0 / 0.7874 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002699/0.2826, allocations: 105.5 kB / 0.7876 GB, free: 9.504 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.2826, allocations: 4 kB / 0.7876 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.2826, allocations: 0 / 0.7876 GB, free: 9.5 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.2827, allocations: 4 kB / 0.7876 GB, free: 9.496 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001076/0.2828, allocations: 15.92 kB / 0.7876 GB, free: 9.48 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.2828, allocations: 8.094 kB / 0.7876 GB, free: 9.473 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.977e-05/0.2829, allocations: 15.92 kB / 0.7876 GB, free: 9.457 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.156e-05/0.2829, allocations: 4 kB / 0.7876 GB, free: 9.453 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 8.958e-05/0.283, allocations: 118.8 kB / 0.7877 GB, free: 9.328 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.394e-05/0.283, allocations: 3.906 kB / 0.7877 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002839/0.2833, allocations: 106 kB / 0.7878 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.2833, allocations: 4 kB / 0.7878 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.2833, allocations: 0 / 0.7878 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.2833, allocations: 0 / 0.7878 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004576/0.2838, allocations: 351.1 kB / 0.7882 GB, free: 8.812 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.2838, allocations: 0 / 0.7882 GB, free: 8.812 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.181e-05/0.2839, allocations: 15.98 kB / 0.7882 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.2839, allocations: 0 / 0.7882 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.2839, allocations: 7.938 kB / 0.7882 GB, free: 8.789 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.2839, allocations: 4 kB / 0.7882 GB, free: 8.785 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.2839, allocations: 0 / 0.7882 GB, free: 8.785 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002889/0.2842, allocations: 191.4 kB / 0.7884 GB, free: 8.582 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.647e-05/0.2843, allocations: 85.02 kB / 0.7884 GB, free: 8.48 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.688e-05/0.2843, allocations: 3.938 kB / 0.7885 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.706e-05/0.2844, allocations: 11.98 kB / 0.7885 GB, free: 8.465 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.303e-05/0.2844, allocations: 11.98 kB / 0.7885 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.433e-05/0.2845, allocations: 3.938 kB / 0.7885 GB, free: 8.449 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.673e-05/0.2845, allocations: 79.28 kB / 0.7886 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2845, allocations: 4 kB / 0.7886 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002407/0.2848, allocations: 16 kB / 0.7886 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.0001705/0.2849, allocations: 107.2 kB / 0.7887 GB, free: 8.238 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002603/0.2852, allocations: 67.98 kB / 0.7887 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.2852, allocations: 3.938 kB / 0.7887 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001127/0.2853, allocations: 31.97 kB / 0.7888 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002713/0.2856, allocations: 8 kB / 0.7888 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003657/0.286, allocations: 175.4 kB / 0.7889 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002649/0.2863, allocations: 0.6807 MB / 0.7896 GB, free: 7.219 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.3e-05/0.2863, allocations: 11.44 kB / 0.7896 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of SimCode: time 2.2e-07/0.2863, allocations: 0 / 0.7896 GB, free: 7.207 MB / 0.6075 GB Notification: Performance of Templates: time 0.002696/0.289, allocations: 0.8667 MB / 0.7905 GB, free: 6.352 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)