Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_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 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.233/2.233, allocations: 251.1 MB / 266.1 MB, free: 11.64 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001644/0.001644, allocations: 191.3 kB / 325.6 MB, free: 2.84 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.557/2.557, allocations: 205.4 MB / 0.5766 GB, free: 21.19 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001237/0.001236, allocations: 92.17 kB / 0.6811 GB, free: 14.04 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004603/0.0004605, allocations: 15.78 kB / 0.7951 GB, free: 135.8 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.2204, allocations: 106.3 MB / 0.8989 GB, free: 65.98 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002181/0.2226, allocations: 1.489 MB / 0.9003 GB, free: 64.48 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001101/0.2238, allocations: 0.57 MB / 0.9009 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.2239, allocations: 0 / 0.9009 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 2.882e-05/0.2239, allocations: 11.86 kB / 0.9009 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 0.0001433/0.2241, allocations: 27.89 kB / 0.9009 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002279/0.2243, allocations: 51.94 kB / 0.901 GB, free: 63.81 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0002515/0.2246, allocations: 115.7 kB / 0.9011 GB, free: 63.7 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.2247, allocations: 37.84 kB / 0.9011 GB, free: 63.66 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 7.691e-05/0.2248, allocations: 43.78 kB / 0.9012 GB, free: 63.62 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 8.109e-05/0.2249, allocations: 47.7 kB / 0.9012 GB, free: 63.57 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 2.842e-05/0.225, allocations: 4 kB / 0.9012 GB, free: 63.57 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 2.269e-05/0.225, allocations: 7.938 kB / 0.9012 GB, free: 63.56 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.923e-05/0.225, allocations: 23.84 kB / 0.9012 GB, free: 63.54 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 4.213e-05/0.2251, allocations: 49.64 kB / 0.9013 GB, free: 63.48 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0001209/0.2252, allocations: 79.83 kB / 0.9014 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.2252, allocations: 0 / 0.9014 GB, free: 63.41 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.413e-06/0.2252, allocations: 4 kB / 0.9014 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.2253, allocations: 0 / 0.9014 GB, free: 63.4 MB / 0.6042 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.0007826/0.2261, allocations: 458.5 kB / 0.9018 GB, free: 62.91 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.013e-05/0.2261, allocations: 12.03 kB / 0.9018 GB, free: 62.89 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.267e-05/0.2262, allocations: 23.7 kB / 0.9018 GB, free: 62.87 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002515/0.2264, allocations: 226.7 kB / 0.9021 GB, free: 62.61 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.074e-05/0.2265, allocations: 8 kB / 0.9021 GB, free: 62.6 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.667e-05/0.2265, allocations: 19.98 kB / 0.9021 GB, free: 62.58 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003742/0.2269, allocations: 149.9 kB / 0.9022 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.2269, allocations: 0 / 0.9022 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.038e-05/0.227, allocations: 8 kB / 0.9022 GB, free: 62.41 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.784e-06/0.227, allocations: 3.953 kB / 0.9022 GB, free: 62.4 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003636/0.2273, allocations: 79.88 kB / 0.9023 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001028/0.2284, allocations: 0.7431 MB / 0.903 GB, free: 61.52 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002097/0.2286, allocations: 50.55 kB / 0.9031 GB, free: 61.46 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 2.694e-05/0.2287, allocations: 3.938 kB / 0.9031 GB, free: 61.45 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003343/0.229, allocations: 130.8 kB / 0.9032 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=11): time 2.134e-06/0.229, allocations: 0 / 0.9032 GB, free: 61.3 MB / 0.6042 GB Notification: Performance of matching and sorting (n=11): time 0.0007052/0.2297, allocations: 185.6 kB / 0.9034 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.712e-05/0.2298, allocations: 128.5 kB / 0.9035 GB, free: 60.96 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001945/0.23, allocations: 198.9 kB / 0.9037 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.991e-05/0.23, allocations: 33.7 kB / 0.9037 GB, free: 60.71 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 7.523e-05/0.2301, allocations: 128 kB / 0.9039 GB, free: 60.59 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 3.587e-05/0.2302, allocations: 35.61 kB / 0.9039 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.071e-05/0.2302, allocations: 4 kB / 0.9039 GB, free: 60.55 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.831e-05/0.2303, allocations: 326.8 kB / 0.9042 GB, free: 60.22 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001929/0.2305, allocations: 44.34 kB / 0.9042 GB, free: 60.18 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000235/0.2307, allocations: 153.4 kB / 0.9044 GB, free: 59.98 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002171/0.231, allocations: 64.11 kB / 0.9045 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.231, allocations: 3.984 kB / 0.9045 GB, free: 59.91 MB / 0.6042 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005762/0.2316, allocations: 217.1 kB / 0.9047 GB, free: 59.69 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.2316, allocations: 8 kB / 0.9047 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.2316, allocations: 4 kB / 0.9047 GB, free: 59.68 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.2316, allocations: 7.953 kB / 0.9047 GB, free: 59.67 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002154/0.2319, allocations: 44.31 kB / 0.9047 GB, free: 59.63 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.201e-05/0.2319, allocations: 7.938 kB / 0.9047 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002266/0.2321, allocations: 31.83 kB / 0.9048 GB, free: 59.59 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.803e-05/0.2322, allocations: 12 kB / 0.9048 GB, free: 59.58 MB / 0.6042 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.0001157/0.2323, allocations: 134.5 kB / 0.9049 GB, free: 59.44 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.501e-05/0.2323, allocations: 15.81 kB / 0.9049 GB, free: 59.42 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.3e-05/0.2324, allocations: 29.39 kB / 0.9049 GB, free: 59.39 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.2324, allocations: 0 / 0.9049 GB, free: 59.39 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.2324, allocations: 3.953 kB / 0.905 GB, free: 59.39 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.401e-06/0.2324, allocations: 4 kB / 0.905 GB, free: 59.38 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001031/0.2335, allocations: 0.5211 MB / 0.9055 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.2335, allocations: 4 kB / 0.9055 GB, free: 58.8 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002108/0.2337, allocations: 23.86 kB / 0.9055 GB, free: 58.78 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.613e-06/0.2337, allocations: 7.953 kB / 0.9055 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.2338, allocations: 0 / 0.9055 GB, free: 58.77 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.062e-06/0.2338, allocations: 8.297 kB / 0.9055 GB, free: 58.76 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.2338, allocations: 4 kB / 0.9055 GB, free: 58.76 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006988/0.2345, allocations: 421.2 kB / 0.9059 GB, free: 58.3 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 5.204e-05/0.2346, allocations: 92.86 kB / 0.906 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.896e-05/0.2346, allocations: 4 kB / 0.906 GB, free: 58.19 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002606/0.2349, allocations: 20.03 kB / 0.906 GB, free: 58.17 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.736e-05/0.235, allocations: 19.97 kB / 0.906 GB, free: 58.15 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.451e-05/0.235, allocations: 4 kB / 0.906 GB, free: 58.15 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0001293/0.2351, allocations: 144.2 kB / 0.9062 GB, free: 58.01 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.41e-07/0.2351, allocations: 0 / 0.9062 GB, free: 58.01 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0004668/0.2356, allocations: 31.95 kB / 0.9062 GB, free: 57.98 MB / 0.6042 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.0001316/0.2358, allocations: 103.2 kB / 0.9063 GB, free: 57.87 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0004879/0.2363, allocations: 124.7 kB / 0.9064 GB, free: 57.75 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.2363, allocations: 4.062 kB / 0.9064 GB, free: 57.74 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002274/0.2365, allocations: 51.91 kB / 0.9065 GB, free: 57.69 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006141/0.2371, allocations: 52.97 kB / 0.9065 GB, free: 57.64 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006937/0.2378, allocations: 395.1 kB / 0.9069 GB, free: 57.22 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001777/0.238, allocations: 0.7284 MB / 0.9076 GB, free: 56.46 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.0001066/0.2382, allocations: 21.53 kB / 0.9076 GB, free: 56.44 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.92e-05/0.2382, allocations: 19.44 kB / 0.9077 GB, free: 56.43 MB / 0.6042 GB Notification: Performance of SimCode: time 8.72e-07/0.2382, allocations: 0 / 0.9077 GB, free: 56.43 MB / 0.6042 GB Notification: Performance of Templates: time 0.008618/0.2469, allocations: 1.728 MB / 0.9093 GB, free: 54.72 MB / 0.6042 GB