Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_BusinessSimulation.Examples.SIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 114.5 kB / 18.88 MB, free: 3.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 194.2 kB / 22.17 MB, free: 5.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 225.6 MB / 250.9 MB, free: 13.27 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.178/0.178, allocations: 31.6 MB / 337.7 MB, free: 9.758 MB / 270.1 MB " [Timeout remaining time 180] Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SIR") translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SIR") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002028/0.002028, allocations: 60.14 kB / 472.6 MB, free: 6.207 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3073/0.3094, allocations: 59.5 MB / 0.5197 GB, free: 8.984 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.007556/0.3169, allocations: 7.312 MB / 0.5268 GB, free: 3.789 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002441/0.3194, allocations: 1.107 MB / 0.5279 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009603/0.3203, allocations: 17.31 kB / 0.5279 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005868/0.3209, allocations: 141.7 kB / 0.528 GB, free: 2.902 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004571/0.3214, allocations: 86.02 kB / 0.5281 GB, free: 2.836 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009355/0.3223, allocations: 321.8 kB / 0.5284 GB, free: 2.633 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007686/0.3231, allocations: 0.7228 MB / 0.5291 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005371/0.3236, allocations: 323.7 kB / 0.5294 GB, free: 2.062 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003873/0.324, allocations: 299 kB / 0.5297 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003275/0.3243, allocations: 306.6 kB / 0.53 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.529e-05/0.3244, allocations: 82.06 kB / 0.5301 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001512/0.3246, allocations: 91.19 kB / 0.5302 GB, free: 1.711 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001354/0.3247, allocations: 172.9 kB / 0.5304 GB, free: 1.59 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002233/0.3249, allocations: 344.5 kB / 0.5307 GB, free: 1.348 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008899/0.3258, allocations: 0.8072 MB / 0.5315 GB, free: 0.957 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3258, allocations: 0 / 0.5315 GB, free: 0.957 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3258, allocations: 0 / 0.5315 GB, free: 0.957 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.3258, allocations: 0 / 0.5315 GB, free: 0.957 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 172 * Number of variables: 172 Notification: Performance of Generate backend data structure: time 0.001399/0.3272, allocations: 0.9184 MB / 0.5324 GB, free: 280 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.3273, allocations: 8.625 kB / 0.5324 GB, free: 280 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003915/0.3277, allocations: 101.7 kB / 0.5325 GB, free: 236 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006532/0.3283, allocations: 452.7 kB / 0.5329 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.562e-05/0.3284, allocations: 65.59 kB / 0.533 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/0.3285, allocations: 77.28 kB / 0.533 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001106/0.3296, allocations: 0.645 MB / 0.5337 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.3296, allocations: 0 / 0.5337 GB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.937e-05/0.3297, allocations: 32.3 kB / 0.5337 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.96e-05/0.3297, allocations: 16.53 kB / 0.5337 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008287/0.3305, allocations: 385.8 kB / 0.5341 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003466/0.334, allocations: 2.262 MB / 0.5363 GB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006202/0.3346, allocations: 301.4 kB / 0.5366 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004247/0.335, allocations: 219.7 kB / 0.5368 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.002e-05/0.3351, allocations: 5.375 kB / 0.5368 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.454e-05/0.3351, allocations: 43.44 kB / 0.5368 GB, free: 13.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 2.324e-06/0.3351, allocations: 0 / 0.5368 GB, free: 13.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.000808/0.3359, allocations: 404.7 kB / 0.5372 GB, free: 13.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001309/0.336, allocations: 210.6 kB / 0.5374 GB, free: 13.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004496/0.3365, allocations: 365.3 kB / 0.5378 GB, free: 12.89 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.764e-05/0.3366, allocations: 41.59 kB / 0.5378 GB, free: 12.85 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002708/0.3368, allocations: 321.9 kB / 0.5381 GB, free: 12.6 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.3369, allocations: 121.2 kB / 0.5382 GB, free: 12.5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001933/0.3371, allocations: 121.2 kB / 0.5384 GB, free: 12.44 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001892/0.3373, allocations: 350.2 kB / 0.5387 GB, free: 12.11 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003216/0.3376, allocations: 156.6 kB / 0.5388 GB, free: 12.05 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004588/0.3381, allocations: 306.7 kB / 0.5391 GB, free: 11.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005986/0.3387, allocations: 405.1 kB / 0.5395 GB, free: 11.54 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.3387, allocations: 1.188 kB / 0.5395 GB, free: 11.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.000924/0.3396, allocations: 0.5062 MB / 0.54 GB, free: 11.31 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.3396, allocations: 14.22 kB / 0.54 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.687e-06/0.3397, allocations: 4.562 kB / 0.54 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.112e-05/0.3397, allocations: 6.719 kB / 0.54 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003261/0.34, allocations: 80.16 kB / 0.5401 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.34, allocations: 7.453 kB / 0.5401 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00033/0.3403, allocations: 68.45 kB / 0.5402 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.12e-05/0.3404, allocations: 21.73 kB / 0.5402 GB, free: 11.25 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.susceptible.inflow.stopInflow,$PRE.susceptible.outflow.stopInflow,$PRE.removed.inflow.stopInflow,$PRE.removed.outflow.stopInflow,$PRE.infected.inflow.stopInflow,$PRE.infected.inflow.stopOutflow,removed.outflow.stopInflow,removed.inflow.stopInflow,infected.inflow.stopInflow,infected.inflow.stopOutflow,susceptible.outflow.stopInflow,becoming_infected.adopting.flowing.portA.stopInflow,becoming_infected.converting.portA.stopInflow,becoming_infected.adopting.flowing.portB.stopOutflow,becoming_infected.converting.portB.stopOutflow,becoming_infected.adopting.flowing.useB_rate,$PRE.becoming_infected.adopting.flowing.useB_rate,becoming_infected.adopting.flowing.useA_rate,$PRE.becoming_infected.adopting.flowing.useA_rate,becoming_infected.adopting.flowing.portB.stopInflow,becoming_infected.adopting.flowing.portA.stopOutflow,becoming_infected.converting.useB_rate,$PRE.becoming_infected.converting.useB_rate,becoming_infected.converting.useA_rate,$PRE.becoming_infected.converting.useA_rate,becoming_infected.converting.portB.stopInflow,becoming_infected.converting.portA.stopOutflow,removed.outflow.stopOutflow,$PRE.removed.outflow.stopOutflow,removed.inflow.stopOutflow,$PRE.removed.inflow.stopOutflow,susceptible.outflow.stopOutflow,$PRE.susceptible.outflow.stopOutflow,susceptible.inflow.stopOutflow,$PRE.susceptible.inflow.stopOutflow,susceptible.inflow.stopInflow) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003015/0.3407, allocations: 238.3 kB / 0.5404 GB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.3408, allocations: 47.5 kB / 0.5405 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001135/0.3409, allocations: 50 kB / 0.5405 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.3409, allocations: 4.531 kB / 0.5405 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.884e-06/0.3409, allocations: 1.188 kB / 0.5405 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.134e-06/0.3409, allocations: 3.438 kB / 0.5405 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001866/0.3428, allocations: 1.233 MB / 0.5417 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.199e-06/0.3428, allocations: 6.719 kB / 0.5417 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002679/0.3431, allocations: 51.47 kB / 0.5418 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.3431, allocations: 3.969 kB / 0.5418 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.087e-05/0.3431, allocations: 13.45 kB / 0.5418 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.99e-06/0.3431, allocations: 9.172 kB / 0.5418 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.3431, allocations: 2.469 kB / 0.5418 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008506/0.344, allocations: 0.5813 MB / 0.5424 GB, free: 9.742 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001938/0.3442, allocations: 153 kB / 0.5425 GB, free: 9.602 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.139e-05/0.3442, allocations: 18.88 kB / 0.5426 GB, free: 9.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002135/0.3444, allocations: 14.03 kB / 0.5426 GB, free: 9.586 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.725e-05/0.3445, allocations: 41.5 kB / 0.5426 GB, free: 9.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.347e-05/0.3446, allocations: 13.69 kB / 0.5426 GB, free: 9.566 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002881/0.3448, allocations: 234 kB / 0.5428 GB, free: 9.441 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3448, allocations: 0 / 0.5428 GB, free: 9.441 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005297/0.3454, allocations: 142.4 kB / 0.543 GB, free: 9.391 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (susceptible.x,removed.x,infected.x_hidden[1],infected.x_hidden[2],infected.x_hidden[3]) * Number of discrete variables: 16 (becoming_infected.adopting.flowing.portA.stopOutflow,becoming_infected.converting.portA.stopOutflow,susceptible.outflow.stopOutflow,removed.outflow.stopOutflow,susceptible.inflow.stopOutflow,removed.inflow.stopOutflow,becoming_infected.converting.useA_rate,becoming_infected.adopting.flowing.useA_rate,becoming_infected.adopting.flowing.portA.stopInflow,becoming_infected.converting.portA.stopInflow,becoming_infected.adopting.flowing.portB.stopOutflow,becoming_infected.converting.portB.stopOutflow,becoming_infected.adopting.flowing.useB_rate,becoming_infected.adopting.flowing.portB.stopInflow,becoming_infected.converting.useB_rate,becoming_infected.converting.portB.stopInflow) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001485/0.3455, allocations: 118.7 kB / 0.5431 GB, free: 9.293 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006759/0.3462, allocations: 352.4 kB / 0.5434 GB, free: 9.176 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3462, allocations: 1.375 kB / 0.5434 GB, free: 9.176 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000266/0.3465, allocations: 154 kB / 0.5436 GB, free: 9.121 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007539/0.3472, allocations: 128.5 kB / 0.5437 GB, free: 9.066 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001686/0.3489, allocations: 0.9649 MB / 0.5446 GB, free: 8.449 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005352/0.3494, allocations: 0.8649 MB / 0.5455 GB, free: 7.742 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002584/0.3497, allocations: 69.56 kB / 0.5455 GB, free: 7.723 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001075/0.3498, allocations: 44.23 kB / 0.5456 GB, free: 7.715 MB / 398.1 MB Notification: Performance of SimCode: time 6.62e-07/0.3498, allocations: 0 / 0.5456 GB, free: 7.715 MB / 398.1 MB Notification: Performance of Templates: time 0.01194/0.3617, allocations: 5.238 MB / 0.5507 GB, free: 5.242 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SIR.makefile [Timeout 660] (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SIR.sim & ./BusinessSimulation_dev_BusinessSimulation.Examples.SIR -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.0599629660137] Failed to read output from testmodel.py, exit status != 0: 0.37044038297608495 0.384789925 0.055807341 Calling exit ...