Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.589/2.589, allocations: 287.9 MB / 302.9 MB, free: 8.27 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001416/0.001415, allocations: 177 kB / 371.4 MB, free: 10.69 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.162/2.162, allocations: 205.4 MB / 0.6301 GB, free: 10.41 MB / 458.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00103/0.00103, allocations: 112.1 kB / 0.7434 GB, free: 6.41 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004857/0.0004859, allocations: 12.5 kB / 0.8662 GB, free: 141.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1861/0.1866, allocations: 115.3 MB / 0.9788 GB, free: 28.17 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001232/0.1879, allocations: 477.6 kB / 0.9792 GB, free: 27.7 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.002216/0.1901, allocations: 1.111 MB / 0.9803 GB, free: 26.57 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.689e-05/0.1903, allocations: 0 / 0.9803 GB, free: 26.57 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.281e-05/0.1903, allocations: 3.938 kB / 0.9803 GB, free: 26.57 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001092/0.1904, allocations: 15.97 kB / 0.9803 GB, free: 26.55 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008351/0.1913, allocations: 118.7 kB / 0.9804 GB, free: 26.44 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001434/0.1915, allocations: 63.86 kB / 0.9805 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.1916, allocations: 16.17 kB / 0.9805 GB, free: 26.36 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.1918, allocations: 43.89 kB / 0.9806 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001013/0.1919, allocations: 31.89 kB / 0.9806 GB, free: 26.29 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 3.985e-05/0.1919, allocations: 12 kB / 0.9806 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 9.843e-05/0.1921, allocations: 19.98 kB / 0.9806 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.548e-05/0.1921, allocations: 3.938 kB / 0.9806 GB, free: 26.25 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.791e-05/0.1922, allocations: 37.7 kB / 0.9807 GB, free: 26.21 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001844/0.1924, allocations: 83.8 kB / 0.9807 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.418e-06/0.1924, allocations: 0 / 0.9807 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of FrontEnd: time 4.809e-06/0.1924, allocations: 0 / 0.9807 GB, free: 26.12 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.013e-06/0.1925, allocations: 3.938 kB / 0.9807 GB, free: 26.12 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006725/0.1931, allocations: 415.2 kB / 0.9811 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.1932, allocations: 8.031 kB / 0.9811 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.812e-05/0.1933, allocations: 15.84 kB / 0.9812 GB, free: 25.64 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001171/0.1934, allocations: 174.9 kB / 0.9813 GB, free: 25.43 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.311e-05/0.1935, allocations: 8 kB / 0.9813 GB, free: 25.42 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.119e-05/0.1936, allocations: 8 kB / 0.9813 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003544/0.1939, allocations: 85.59 kB / 0.9814 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.194, allocations: 0 / 0.9814 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.807e-05/0.194, allocations: 0 / 0.9814 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.981e-06/0.194, allocations: 0 / 0.9814 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004043/0.1945, allocations: 55.95 kB / 0.9815 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007672/0.1953, allocations: 348.6 kB / 0.9818 GB, free: 24.88 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003133/0.1956, allocations: 66.55 kB / 0.9819 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.032e-05/0.1957, allocations: 4 kB / 0.9819 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000388/0.1961, allocations: 91.48 kB / 0.982 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=8): time 4.892e-06/0.1961, allocations: 0 / 0.982 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of matching and sorting (n=8): time 0.0008772/0.197, allocations: 169.5 kB / 0.9821 GB, free: 24.53 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.782e-05/0.1971, allocations: 59.34 kB / 0.9822 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001266/0.1972, allocations: 117.8 kB / 0.9823 GB, free: 24.33 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 4.173e-05/0.1973, allocations: 25.7 kB / 0.9823 GB, free: 24.3 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.601e-05/0.1974, allocations: 100 kB / 0.9824 GB, free: 24.2 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 4.023e-05/0.1974, allocations: 19.75 kB / 0.9824 GB, free: 24.18 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.178e-05/0.1975, allocations: 8 kB / 0.9824 GB, free: 24.17 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 7.375e-05/0.1976, allocations: 318.8 kB / 0.9827 GB, free: 23.85 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003461/0.1979, allocations: 51.97 kB / 0.9828 GB, free: 23.8 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003747/0.1983, allocations: 97.11 kB / 0.9829 GB, free: 23.69 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003666/0.1987, allocations: 89.61 kB / 0.983 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.547e-06/0.1988, allocations: 4 kB / 0.983 GB, free: 23.59 MB / 0.6198 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.001012/0.1998, allocations: 219.1 kB / 0.9832 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 5.537e-05/0.1999, allocations: 41.62 kB / 0.9832 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.572e-06/0.1999, allocations: 4.156 kB / 0.9832 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.4e-05/0.1999, allocations: 4 kB / 0.9832 GB, free: 23.31 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000202/0.2002, allocations: 19.98 kB / 0.9833 GB, free: 23.29 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.374e-05/0.2002, allocations: 7.953 kB / 0.9833 GB, free: 23.28 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005036/0.2007, allocations: 49.78 kB / 0.9833 GB, free: 23.23 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.606e-05/0.2008, allocations: 4 kB / 0.9833 GB, free: 23.23 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition3,$PRE.booPul.y,booPul.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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.0001525/0.201, allocations: 129.7 kB / 0.9834 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.625e-05/0.201, allocations: 7.906 kB / 0.9834 GB, free: 23.09 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006219/0.2017, allocations: 138 kB / 0.9836 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.2017, allocations: 0 / 0.9836 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.035e-06/0.2017, allocations: 0 / 0.9836 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.403e-06/0.2018, allocations: 3.953 kB / 0.9836 GB, free: 22.95 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000802/0.2026, allocations: 394.3 kB / 0.984 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/0.2026, allocations: 3.984 kB / 0.984 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001405/0.2028, allocations: 12 kB / 0.984 GB, free: 22.49 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.526e-06/0.2028, allocations: 0 / 0.984 GB, free: 22.49 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.008e-05/0.2028, allocations: 3.984 kB / 0.984 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.218e-06/0.2029, allocations: 4.469 kB / 0.984 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.038e-06/0.2029, allocations: 3.953 kB / 0.984 GB, free: 22.48 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005962/0.2035, allocations: 227.4 kB / 0.9842 GB, free: 22.24 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.029e-05/0.2035, allocations: 85.02 kB / 0.9843 GB, free: 22.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.304e-05/0.2036, allocations: 0 / 0.9843 GB, free: 22.14 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002233/0.2038, allocations: 15.98 kB / 0.9843 GB, free: 22.12 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.537e-05/0.2039, allocations: 15.94 kB / 0.9843 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.845e-05/0.204, allocations: 0 / 0.9843 GB, free: 22.11 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 6.998e-05/0.2041, allocations: 91.81 kB / 0.9844 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.082e-06/0.2041, allocations: 0 / 0.9844 GB, free: 22.02 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0006732/0.2048, allocations: 20 kB / 0.9844 GB, free: 22 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001836/0.205, allocations: 103.3 kB / 0.9845 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0007771/0.2058, allocations: 195.2 kB / 0.9847 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 5.518e-06/0.2058, allocations: 0 / 0.9847 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.000266/0.2061, allocations: 56.16 kB / 0.9848 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004176/0.2065, allocations: 8.312 kB / 0.9848 GB, free: 21.62 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005803/0.2072, allocations: 187.1 kB / 0.9849 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001286/0.2073, allocations: 0.6926 MB / 0.9856 GB, free: 20.7 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 4.091e-05/0.2074, allocations: 4 kB / 0.9856 GB, free: 20.69 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.909e-05/0.2074, allocations: 11.44 kB / 0.9856 GB, free: 20.68 MB / 0.6198 GB Notification: Performance of SimCode: time 1.421e-06/0.2074, allocations: 0 / 0.9856 GB, free: 20.68 MB / 0.6198 GB Notification: Performance of Templates: time 0.004183/0.2116, allocations: 1.269 MB / 0.9869 GB, free: 19.43 MB / 0.6198 GB