Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Utilities.Math.Examples.IntegratorWithReset.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.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 2.823/2.823, allocations: 287.9 MB / 302.9 MB, free: 8.242 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.001429/0.001429, allocations: 183 kB / 371.4 MB, free: 10.68 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.083/2.083, allocations: 205.4 MB / 0.6301 GB, free: 10.44 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.001028/0.001028, allocations: 102.5 kB / 0.7434 GB, free: 6.441 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001228, allocations: 20.67 kB / 0.8662 GB, free: 141.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.187/0.1883, allocations: 115.3 MB / 0.9787 GB, free: 28.21 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.001798/0.1902, allocations: 1.48 MB / 0.9802 GB, free: 26.72 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0009701/0.1912, allocations: 0.5546 MB / 0.9807 GB, free: 26.16 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001027/0.1913, allocations: 3.938 kB / 0.9807 GB, free: 26.15 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.702e-05/0.1913, allocations: 11.86 kB / 0.9807 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0001244/0.1915, allocations: 27.89 kB / 0.9808 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001941/0.1917, allocations: 55.88 kB / 0.9808 GB, free: 26.06 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002088/0.1919, allocations: 119.7 kB / 0.9809 GB, free: 25.94 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/0.192, allocations: 29.86 kB / 0.981 GB, free: 25.91 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 6.764e-05/0.1921, allocations: 43.78 kB / 0.981 GB, free: 25.87 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 7.164e-05/0.1922, allocations: 47.7 kB / 0.9811 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.11e-05/0.1922, allocations: 4 kB / 0.9811 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 1.969e-05/0.1923, allocations: 11.94 kB / 0.9811 GB, free: 25.8 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 2.308e-05/0.1923, allocations: 15.92 kB / 0.9811 GB, free: 25.79 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.871e-05/0.1923, allocations: 53.58 kB / 0.9811 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001085/0.1925, allocations: 84.05 kB / 0.9812 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.518e-06/0.1925, allocations: 0 / 0.9812 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.892e-06/0.1925, allocations: 0 / 0.9812 GB, free: 25.65 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.038e-05/0.1925, allocations: 0 / 0.9812 GB, free: 25.65 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0005967/0.1931, allocations: 460 kB / 0.9817 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.1932, allocations: 12.02 kB / 0.9817 GB, free: 25.14 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.136e-05/0.1932, allocations: 27.75 kB / 0.9817 GB, free: 25.11 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002208/0.1935, allocations: 214.8 kB / 0.9819 GB, free: 24.86 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.896e-05/0.1935, allocations: 11.94 kB / 0.9819 GB, free: 24.85 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.551e-05/0.1935, allocations: 19.91 kB / 0.9819 GB, free: 24.83 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003063/0.1939, allocations: 149.9 kB / 0.9821 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.1939, allocations: 0 / 0.9821 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.848e-05/0.1939, allocations: 4 kB / 0.9821 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.106e-06/0.1939, allocations: 4 kB / 0.9821 GB, free: 24.66 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002754/0.1942, allocations: 87.78 kB / 0.9822 GB, free: 24.57 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009085/0.1951, allocations: 0.7434 MB / 0.9829 GB, free: 23.76 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001842/0.1953, allocations: 50.55 kB / 0.9829 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.073e-05/0.1954, allocations: 4 kB / 0.9829 GB, free: 23.7 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002924/0.1957, allocations: 134.6 kB / 0.9831 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=11): time 2.897e-06/0.1957, allocations: 0 / 0.9831 GB, free: 23.54 MB / 0.6198 GB Notification: Performance of matching and sorting (n=11): time 0.0005641/0.1963, allocations: 181.3 kB / 0.9832 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.387e-05/0.1963, allocations: 140.7 kB / 0.9834 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001812/0.1965, allocations: 199.7 kB / 0.9836 GB, free: 22.99 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.762e-05/0.1966, allocations: 25.7 kB / 0.9836 GB, free: 22.96 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.548e-05/0.1966, allocations: 131.8 kB / 0.9837 GB, free: 22.82 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 3.59e-05/0.1967, allocations: 35.69 kB / 0.9838 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.486e-06/0.1967, allocations: 4 kB / 0.9838 GB, free: 22.79 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.145e-05/0.1968, allocations: 326.8 kB / 0.9841 GB, free: 22.46 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001715/0.197, allocations: 52.34 kB / 0.9841 GB, free: 22.41 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001875/0.1972, allocations: 145 kB / 0.9843 GB, free: 22.21 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000172/0.1974, allocations: 63.92 kB / 0.9843 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.3e-06/0.1974, allocations: 0 / 0.9843 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004864/0.1979, allocations: 213.5 kB / 0.9845 GB, free: 21.94 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.1979, allocations: 12 kB / 0.9845 GB, free: 21.93 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.565e-06/0.1979, allocations: 4 kB / 0.9845 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.992e-05/0.1979, allocations: 4 kB / 0.9845 GB, free: 21.92 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001649/0.1981, allocations: 39.92 kB / 0.9846 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.1981, allocations: 11.94 kB / 0.9846 GB, free: 21.87 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001895/0.1983, allocations: 27.83 kB / 0.9846 GB, free: 21.84 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.902e-05/0.1984, allocations: 23.94 kB / 0.9846 GB, free: 21.82 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,sampleTrigger.y,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.000115/0.1985, allocations: 127.4 kB / 0.9848 GB, free: 21.68 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.938e-05/0.1986, allocations: 19.72 kB / 0.9848 GB, free: 21.66 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.681e-05/0.1986, allocations: 25.39 kB / 0.9848 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.496e-06/0.1986, allocations: 0 / 0.9848 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.788e-06/0.1986, allocations: 0 / 0.9848 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.844e-06/0.1987, allocations: 7.953 kB / 0.9848 GB, free: 21.64 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008808/0.1995, allocations: 0.5249 MB / 0.9853 GB, free: 21.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.985e-06/0.1996, allocations: 4 kB / 0.9853 GB, free: 21.05 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001488/0.1997, allocations: 23.98 kB / 0.9854 GB, free: 21.03 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.515e-06/0.1998, allocations: 4 kB / 0.9854 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.93e-05/0.1998, allocations: 4.266 kB / 0.9854 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.163e-06/0.1998, allocations: 4 kB / 0.9854 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1998, allocations: 4 kB / 0.9854 GB, free: 21.01 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005583/0.2004, allocations: 417.3 kB / 0.9858 GB, free: 20.56 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 4.418e-05/0.2004, allocations: 89.3 kB / 0.9859 GB, free: 20.46 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.492e-05/0.2005, allocations: 8 kB / 0.9859 GB, free: 20.45 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000229/0.2007, allocations: 11.98 kB / 0.9859 GB, free: 20.44 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.745e-05/0.2008, allocations: 15.98 kB / 0.9859 GB, free: 20.42 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.7e-05/0.2008, allocations: 11.97 kB / 0.9859 GB, free: 20.41 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.000119/0.2009, allocations: 148.3 kB / 0.986 GB, free: 20.27 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.589e-06/0.201, allocations: 0 / 0.986 GB, free: 20.27 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004628/0.2014, allocations: 31.94 kB / 0.9861 GB, free: 20.23 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001074/0.2015, allocations: 103.2 kB / 0.9862 GB, free: 20.12 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.00039/0.202, allocations: 124.1 kB / 0.9863 GB, free: 20 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.225e-06/0.202, allocations: 0 / 0.9863 GB, free: 20 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001835/0.2022, allocations: 56.7 kB / 0.9863 GB, free: 19.95 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004988/0.2027, allocations: 67.38 kB / 0.9864 GB, free: 19.89 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006328/0.2033, allocations: 378.7 kB / 0.9868 GB, free: 19.48 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000171/0.2035, allocations: 0.7361 MB / 0.9875 GB, free: 18.72 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 9.262e-05/0.2036, allocations: 13.55 kB / 0.9875 GB, free: 18.71 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.92e-05/0.2037, allocations: 19.44 kB / 0.9875 GB, free: 18.69 MB / 0.6198 GB Notification: Performance of SimCode: time 1.788e-06/0.2037, allocations: 0 / 0.9875 GB, free: 18.69 MB / 0.6198 GB Notification: Performance of Templates: time 0.005574/0.2093, allocations: 1.741 MB / 0.9892 GB, free: 16.97 MB / 0.6198 GB