Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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 7.0.1 (/home/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") 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 4.023/4.023, allocations: 251.1 MB / 266.7 MB, free: 11.63 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002416/0.002416, allocations: 175.5 kB / 326.2 MB, free: 2.871 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.065/4.065, allocations: 205.4 MB / 0.5772 GB, free: 20.75 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001482/0.001482, allocations: 87.86 kB / 0.6817 GB, free: 13.65 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0007888/0.0007892, allocations: 11.97 kB / 0.7957 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3437/0.3445, allocations: 106.3 MB / 0.8995 GB, free: 65.56 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3488/0.6934, allocations: 133.6 MB / 1.03 GB, free: 11.83 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004973/0.694, allocations: 79.95 kB / 1.03 GB, free: 11.75 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.0257/0.7197, allocations: 3.504 MB / 1.033 GB, free: 8.234 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.667e-06/0.7198, allocations: 4 kB / 1.033 GB, free: 8.23 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 2.24e-05/0.7198, allocations: 0 / 1.033 GB, free: 8.23 MB / 0.6823 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.001395/0.7212, allocations: 471.2 kB / 1.034 GB, free: 7.715 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 7.043e-05/0.7213, allocations: 12.03 kB / 1.034 GB, free: 7.703 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.26e-05/0.7214, allocations: 16.75 kB / 1.034 GB, free: 7.688 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005304/0.722, allocations: 228 kB / 1.034 GB, free: 7.426 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.37e-05/0.722, allocations: 8.375 kB / 1.034 GB, free: 7.418 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.562e-05/0.7221, allocations: 12.38 kB / 1.034 GB, free: 7.406 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006701/0.7228, allocations: 154.3 kB / 1.034 GB, free: 7.234 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.7229, allocations: 0.625 kB / 1.034 GB, free: 7.234 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.685e-05/0.7229, allocations: 7.938 kB / 1.034 GB, free: 7.227 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.443e-05/0.723, allocations: 4 kB / 1.034 GB, free: 7.223 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006435/0.7236, allocations: 87.81 kB / 1.034 GB, free: 7.137 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002397/0.726, allocations: 0.7587 MB / 1.035 GB, free: 6.312 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000392/0.7265, allocations: 50.67 kB / 1.035 GB, free: 6.254 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003084/0.7268, allocations: 40.84 kB / 1.035 GB, free: 6.211 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 4.444e-05/0.7269, allocations: 12.08 kB / 1.035 GB, free: 6.199 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000614/0.7275, allocations: 130.6 kB / 1.035 GB, free: 6.047 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=11): time 4.628e-06/0.7276, allocations: 0 / 1.035 GB, free: 6.047 MB / 0.6823 GB Notification: Performance of matching and sorting (n=11): time 0.001299/0.7289, allocations: 189.3 kB / 1.036 GB, free: 5.855 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001379/0.7291, allocations: 132.5 kB / 1.036 GB, free: 5.695 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002721/0.7318, allocations: 199.2 kB / 1.036 GB, free: 5.492 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 7.722e-05/0.732, allocations: 29.7 kB / 1.036 GB, free: 5.457 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.7322, allocations: 131.8 kB / 1.036 GB, free: 5.324 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 8.072e-05/0.7323, allocations: 35.61 kB / 1.036 GB, free: 5.289 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.885e-05/0.7323, allocations: 4 kB / 1.036 GB, free: 5.285 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002018/0.7325, allocations: 326.8 kB / 1.036 GB, free: 4.957 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003769/0.7329, allocations: 47.97 kB / 1.036 GB, free: 4.91 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004797/0.7334, allocations: 152.2 kB / 1.037 GB, free: 4.711 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003914/0.7338, allocations: 51.98 kB / 1.037 GB, free: 4.66 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.958e-05/0.7339, allocations: 7.938 kB / 1.037 GB, free: 4.652 MB / 0.6823 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.001139/0.735, allocations: 221.4 kB / 1.037 GB, free: 4.43 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 3.799e-05/0.7351, allocations: 12.06 kB / 1.037 GB, free: 4.418 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.892e-05/0.7352, allocations: 4 kB / 1.037 GB, free: 4.414 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.477e-05/0.7352, allocations: 4 kB / 1.037 GB, free: 4.41 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003753/0.7356, allocations: 35.92 kB / 1.037 GB, free: 4.375 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.291e-05/0.7356, allocations: 7.938 kB / 1.037 GB, free: 4.367 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004231/0.7361, allocations: 27.92 kB / 1.037 GB, free: 4.34 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.437e-05/0.7361, allocations: 12 kB / 1.037 GB, free: 4.328 MB / 0.6823 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,intWitRes1.trigger,$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.0002802/0.7364, allocations: 145.6 kB / 1.037 GB, free: 4.176 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.139e-05/0.7365, allocations: 19.75 kB / 1.037 GB, free: 4.156 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001179/0.7367, allocations: 21.39 kB / 1.037 GB, free: 4.133 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.295e-05/0.7367, allocations: 4 kB / 1.037 GB, free: 4.129 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.7367, allocations: 0 / 1.037 GB, free: 4.129 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.7368, allocations: 0 / 1.037 GB, free: 4.129 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002051/0.7388, allocations: 0.5249 MB / 1.038 GB, free: 3.547 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.7389, allocations: 0 / 1.038 GB, free: 3.547 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003708/0.7393, allocations: 20.3 kB / 1.038 GB, free: 3.527 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.095e-05/0.7393, allocations: 4 kB / 1.038 GB, free: 3.523 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.33e-05/0.7394, allocations: 12 kB / 1.038 GB, free: 3.512 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.276e-05/0.7394, allocations: 3.938 kB / 1.038 GB, free: 3.508 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.7394, allocations: 0 / 1.038 GB, free: 3.508 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00132/0.7408, allocations: 376.1 kB / 1.038 GB, free: 3.117 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001319/0.7409, allocations: 88.92 kB / 1.038 GB, free: 3.012 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.151e-05/0.741, allocations: 12.03 kB / 1.038 GB, free: 3 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005091/0.7416, allocations: 23.92 kB / 1.038 GB, free: 2.977 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.7417, allocations: 19.86 kB / 1.038 GB, free: 2.957 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.79e-05/0.7417, allocations: 4 kB / 1.038 GB, free: 2.953 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0002856/0.742, allocations: 148.1 kB / 1.038 GB, free: 2.809 MB / 0.6823 GB Notification: Performance of sort global known variables: time 7.61e-07/0.7421, allocations: 0 / 1.038 GB, free: 2.809 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0008246/0.7429, allocations: 28 kB / 1.038 GB, free: 2.781 MB / 0.6823 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,intWitRes1.trigger,$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.0002792/0.7432, allocations: 119.2 kB / 1.038 GB, free: 2.652 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0008772/0.7441, allocations: 117.1 kB / 1.039 GB, free: 2.539 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 5.962e-06/0.7441, allocations: 4.062 kB / 1.039 GB, free: 2.535 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004058/0.7446, allocations: 59.91 kB / 1.039 GB, free: 2.477 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001361/0.7459, allocations: 55.75 kB / 1.039 GB, free: 2.426 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001347/0.7473, allocations: 394.8 kB / 1.039 GB, free: 2.004 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000459/0.7478, allocations: 0.7167 MB / 1.04 GB, free: 1.262 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0002225/0.7481, allocations: 25.53 kB / 1.04 GB, free: 1.234 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.172e-05/0.7482, allocations: 15.44 kB / 1.04 GB, free: 1.223 MB / 0.6823 GB Notification: Performance of SimCode: time 1.783e-06/0.7482, allocations: 0 / 1.04 GB, free: 1.223 MB / 0.6823 GB Notification: Performance of Templates: time 0.01131/0.7595, allocations: 1.737 MB / 1.041 GB, free: 15.5 MB / 0.698 GB make -j1 -f Buildings_7.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f Buildings_7.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_7.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_7.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_7.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)