Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.4.0/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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.4.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset") translateModel(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.4.0/UsersGuide/package.order:0:0-0:0:readonly] Warning: The package.order file does not list all .mo files and directories (containing package.mo) present in its directory. Missing names are: License Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.4.0/package.mo): time 0.7006/0.7006, allocations: 117.9 MB / 133.9 MB, free: 4.516 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001073/0.001073, allocations: 178.3 kB / 161.7 MB, free: 2.742 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.882/1.882, allocations: 205.4 MB / 394.8 MB, free: 20.9 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001099/0.001099, allocations: 97.2 kB / 470.1 MB, free: 12.12 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005643/0.0005645, allocations: 16 kB / 0.5423 GB, free: 6.844 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4117/0.4123, allocations: 74.54 MB / 0.6151 GB, free: 54.11 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1395/0.5519, allocations: 103.6 MB / 0.7163 GB, free: 14.39 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003008/0.5523, allocations: 79.95 kB / 0.7163 GB, free: 14.31 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.009917/0.5622, allocations: 3.546 MB / 0.7198 GB, free: 10.76 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.856e-06/0.5623, allocations: 0 / 0.7198 GB, free: 10.76 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 2.021e-05/0.5623, allocations: 7.938 kB / 0.7198 GB, free: 10.75 MB / 0.4948 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.000729/0.563, allocations: 463.4 kB / 0.7203 GB, free: 10.24 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.5631, allocations: 8.031 kB / 0.7203 GB, free: 10.23 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.205e-05/0.5632, allocations: 20.73 kB / 0.7203 GB, free: 10.21 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003135/0.5635, allocations: 235.9 kB / 0.7205 GB, free: 9.945 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/0.5635, allocations: 4.375 kB / 0.7205 GB, free: 9.941 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.378e-05/0.5635, allocations: 16.38 kB / 0.7205 GB, free: 9.926 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000296/0.5638, allocations: 154.9 kB / 0.7207 GB, free: 9.754 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.5639, allocations: 192 / 0.7207 GB, free: 9.754 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.95e-05/0.5639, allocations: 11.94 kB / 0.7207 GB, free: 9.742 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.5639, allocations: 7.984 kB / 0.7207 GB, free: 9.734 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002394/0.5642, allocations: 75.89 kB / 0.7208 GB, free: 9.66 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00106/0.5652, allocations: 0.7626 MB / 0.7215 GB, free: 8.832 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001497/0.5654, allocations: 50.55 kB / 0.7216 GB, free: 8.773 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.5655, allocations: 40.84 kB / 0.7216 GB, free: 8.73 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.5655, allocations: 8.125 kB / 0.7216 GB, free: 8.723 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002767/0.5658, allocations: 134.7 kB / 0.7217 GB, free: 8.566 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=11): time 1.513e-06/0.5658, allocations: 224 / 0.7217 GB, free: 8.566 MB / 0.4948 GB Notification: Performance of matching and sorting (n=11): time 0.000479/0.5663, allocations: 177.3 kB / 0.7219 GB, free: 8.387 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.009e-05/0.5664, allocations: 140.6 kB / 0.722 GB, free: 8.219 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001825/0.5666, allocations: 199 kB / 0.7222 GB, free: 8.016 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.17e-05/0.5666, allocations: 29.7 kB / 0.7223 GB, free: 7.98 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 8.905e-05/0.5667, allocations: 135.8 kB / 0.7224 GB, free: 7.844 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 3.611e-05/0.5668, allocations: 31.55 kB / 0.7224 GB, free: 7.812 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.654e-06/0.5668, allocations: 4 kB / 0.7224 GB, free: 7.809 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001166/0.5669, allocations: 330.8 kB / 0.7227 GB, free: 7.477 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001285/0.5671, allocations: 47.97 kB / 0.7228 GB, free: 7.43 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001806/0.5672, allocations: 142.6 kB / 0.7229 GB, free: 7.238 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003099/0.5676, allocations: 214.3 kB / 0.7231 GB, free: 6.977 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.5676, allocations: 7.938 kB / 0.7231 GB, free: 6.969 MB / 0.4948 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004058/0.568, allocations: 221.3 kB / 0.7233 GB, free: 6.746 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.568, allocations: 8 kB / 0.7234 GB, free: 6.738 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.568, allocations: 4 kB / 0.7234 GB, free: 6.734 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.817e-05/0.5681, allocations: 4 kB / 0.7234 GB, free: 6.73 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000142/0.5682, allocations: 39.91 kB / 0.7234 GB, free: 6.691 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.879e-06/0.5682, allocations: 4 kB / 0.7234 GB, free: 6.688 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001438/0.5684, allocations: 32.11 kB / 0.7234 GB, free: 6.656 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.331e-05/0.5684, allocations: 8 kB / 0.7234 GB, free: 6.648 MB / 0.4948 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.0001072/0.5685, allocations: 139.1 kB / 0.7236 GB, free: 6.504 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.553e-05/0.5685, allocations: 31.69 kB / 0.7236 GB, free: 6.473 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.167e-05/0.5686, allocations: 17.41 kB / 0.7236 GB, free: 6.457 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.5686, allocations: 0 / 0.7236 GB, free: 6.457 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.5686, allocations: 4 kB / 0.7236 GB, free: 6.453 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.5686, allocations: 3.984 kB / 0.7236 GB, free: 6.449 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008271/0.5695, allocations: 0.5211 MB / 0.7241 GB, free: 5.871 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.5695, allocations: 4 kB / 0.7241 GB, free: 5.867 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001135/0.5696, allocations: 15.98 kB / 0.7242 GB, free: 5.852 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.5696, allocations: 7.984 kB / 0.7242 GB, free: 5.844 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.5696, allocations: 4 kB / 0.7242 GB, free: 5.84 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.5697, allocations: 4 kB / 0.7242 GB, free: 5.836 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.5697, allocations: 0 / 0.7242 GB, free: 5.836 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005291/0.5702, allocations: 381 kB / 0.7245 GB, free: 5.441 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.977e-05/0.5703, allocations: 92.92 kB / 0.7246 GB, free: 5.332 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.745e-05/0.5703, allocations: 4 kB / 0.7246 GB, free: 5.328 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/0.5705, allocations: 20.03 kB / 0.7246 GB, free: 5.309 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.724e-05/0.5705, allocations: 16.22 kB / 0.7247 GB, free: 5.293 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.062e-05/0.5706, allocations: 8 kB / 0.7247 GB, free: 5.285 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.000124/0.5707, allocations: 144.2 kB / 0.7248 GB, free: 5.145 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5707, allocations: 4 kB / 0.7248 GB, free: 5.141 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0003257/0.571, allocations: 28 kB / 0.7248 GB, free: 5.113 MB / 0.4948 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.0001675/0.5712, allocations: 119.1 kB / 0.725 GB, free: 4.988 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0003145/0.5715, allocations: 124.1 kB / 0.7251 GB, free: 4.867 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.5715, allocations: 0 / 0.7251 GB, free: 4.867 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001534/0.5717, allocations: 55.91 kB / 0.7251 GB, free: 4.812 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005415/0.5723, allocations: 65.84 kB / 0.7252 GB, free: 4.75 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006228/0.5729, allocations: 390.7 kB / 0.7256 GB, free: 4.328 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003313/0.5732, allocations: 0.7245 MB / 0.7263 GB, free: 3.578 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 8.464e-05/0.5733, allocations: 13.55 kB / 0.7263 GB, free: 3.566 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.033e-05/0.5734, allocations: 23.42 kB / 0.7263 GB, free: 3.543 MB / 0.4948 GB Notification: Performance of SimCode: time 3.4e-07/0.5734, allocations: 0 / 0.7263 GB, free: 3.543 MB / 0.4948 GB Notification: Performance of Templates: time 0.004894/0.5783, allocations: 1.779 MB / 0.728 GB, free: 1.785 MB / 0.4948 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)