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.001346/0.001346, allocations: 110 kB / 18.93 MB, free: 2.945 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.001404/0.001404, allocations: 193.5 kB / 22.23 MB, free: 5.16 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.496/1.496, allocations: 225.6 MB / 251 MB, free: 13 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.1817/0.1817, allocations: 31.62 MB / 337.9 MB, free: 9.602 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.001992/0.001992, allocations: 75.86 kB / 472.9 MB, free: 6.02 MB / 334.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4205/0.4225, allocations: 59.52 MB / 0.5199 GB, free: 8.773 MB / 382.1 MB
Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.01006/0.4326, allocations: 7.327 MB / 0.5271 GB, free: 3.566 MB / 382.1 MB
Notification: Performance of NFInst.instExpressions: time 0.003285/0.4359, allocations: 1.105 MB / 0.5282 GB, free: 2.766 MB / 382.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.000925/0.4368, allocations: 26.75 kB / 0.5282 GB, free: 2.754 MB / 382.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0005273/0.4373, allocations: 140.8 kB / 0.5283 GB, free: 2.672 MB / 382.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0003253/0.4377, allocations: 94.8 kB / 0.5284 GB, free: 2.598 MB / 382.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0009787/0.4386, allocations: 316.6 kB / 0.5287 GB, free: 2.398 MB / 382.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0009026/0.4395, allocations: 0.7253 MB / 0.5294 GB, free: 2.02 MB / 382.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.000587/0.4401, allocations: 316.7 kB / 0.5297 GB, free: 1.828 MB / 382.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.000389/0.4405, allocations: 312.8 kB / 0.53 GB, free: 1.652 MB / 382.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003526/0.4409, allocations: 308.6 kB / 0.5303 GB, free: 1.465 MB / 382.1 MB
Notification: Performance of NFPackage.collectConstants: time 0.0001416/0.441, allocations: 86.94 kB / 0.5304 GB, free: 1.461 MB / 382.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.000199/0.4412, allocations: 89.86 kB / 0.5305 GB, free: 1.461 MB / 382.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001641/0.4414, allocations: 178 kB / 0.5307 GB, free: 1.336 MB / 382.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0002949/0.4417, allocations: 341.4 kB / 0.531 GB, free: 1.094 MB / 382.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.001129/0.4428, allocations: 0.7991 MB / 0.5318 GB, free: 0.7148 MB / 382.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.4428, allocations: 0.6094 kB / 0.5318 GB, free: 0.7148 MB / 382.1 MB
Notification: Performance of FrontEnd: time 1.393e-06/0.4428, allocations: 0 / 0.5318 GB, free: 0.7148 MB / 382.1 MB
Notification: Performance of Transformations before backend: time 1.308e-05/0.4428, allocations: 0.9375 kB / 0.5318 GB, free: 0.7148 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.001627/0.4444, allocations: 0.8416 MB / 0.5326 GB, free: 128 kB / 382.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.711e-05/0.4445, allocations: 10.86 kB / 0.5326 GB, free: 128 kB / 382.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004271/0.4449, allocations: 97.91 kB / 0.5327 GB, free: 88 kB / 382.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008258/0.4458, allocations: 395.9 kB / 0.5331 GB, free: 15.8 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.575e-05/0.4458, allocations: 60.41 kB / 0.5331 GB, free: 15.77 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001407/0.446, allocations: 76.22 kB / 0.5332 GB, free: 15.74 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001509/0.4475, allocations: 0.6442 MB / 0.5338 GB, free: 15.41 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.641e-05/0.4475, allocations: 1 kB / 0.5338 GB, free: 15.41 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.385e-05/0.4476, allocations: 30.56 kB / 0.5339 GB, free: 15.39 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.297e-05/0.4476, allocations: 16.97 kB / 0.5339 GB, free: 15.39 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001074/0.4487, allocations: 382.3 kB / 0.5343 GB, free: 15.25 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004064/0.4528, allocations: 2.209 MB / 0.5364 GB, free: 13.77 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0007328/0.4535, allocations: 301.3 kB / 0.5367 GB, free: 13.61 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0005188/0.454, allocations: 210.9 kB / 0.5369 GB, free: 13.52 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.734e-05/0.454, allocations: 5.344 kB / 0.5369 GB, free: 13.52 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.024e-05/0.4541, allocations: 46.75 kB / 0.537 GB, free: 13.47 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=38): time 3.626e-06/0.4541, allocations: 3.938 kB / 0.537 GB, free: 13.46 MB / 398.1 MB
Notification: Performance of matching and sorting (n=38): time 0.001035/0.4551, allocations: 397.4 kB / 0.5373 GB, free: 13.29 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001688/0.4553, allocations: 211.2 kB / 0.5375 GB, free: 13.04 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005832/0.4559, allocations: 368.6 kB / 0.5379 GB, free: 12.84 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 7.651e-05/0.456, allocations: 40.81 kB / 0.5379 GB, free: 12.8 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0003295/0.4563, allocations: 318.8 kB / 0.5382 GB, free: 12.55 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001304/0.4564, allocations: 128.6 kB / 0.5384 GB, free: 12.45 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002082/0.4566, allocations: 121.2 kB / 0.5385 GB, free: 12.38 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0002452/0.4569, allocations: 354.5 kB / 0.5388 GB, free: 12.05 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003568/0.4572, allocations: 153 kB / 0.539 GB, free: 12 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005103/0.4578, allocations: 302.4 kB / 0.5392 GB, free: 11.77 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0007107/0.4585, allocations: 408.5 kB / 0.5396 GB, free: 11.48 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.4585, allocations: 1.031 kB / 0.5396 GB, free: 11.48 MB / 398.1 MB
Notification: Performance of matching and sorting (n=73) (initialization): time 0.00112/0.4596, allocations: 0.5041 MB / 0.5401 GB, free: 11.26 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 3.245e-05/0.4596, allocations: 13.44 kB / 0.5401 GB, free: 11.25 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.4596, allocations: 3.594 kB / 0.5401 GB, free: 11.25 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 3.147e-05/0.4597, allocations: 7.828 kB / 0.5401 GB, free: 11.25 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004102/0.4601, allocations: 80.67 kB / 0.5402 GB, free: 11.24 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.6e-05/0.4601, allocations: 15.3 kB / 0.5402 GB, free: 11.23 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004016/0.4605, allocations: 71.94 kB / 0.5403 GB, free: 11.19 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-05/0.4606, allocations: 21.94 kB / 0.5403 GB, free: 11.18 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.00042/0.461, allocations: 221.5 kB / 0.5405 GB, free: 11 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001573/0.4611, allocations: 47.91 kB / 0.5406 GB, free: 10.97 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001322/0.4613, allocations: 46.33 kB / 0.5406 GB, free: 10.94 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.364e-05/0.4613, allocations: 4.094 kB / 0.5406 GB, free: 10.94 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-05/0.4613, allocations: 1.156 kB / 0.5406 GB, free: 10.94 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.428e-05/0.4613, allocations: 3.094 kB / 0.5406 GB, free: 10.94 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002425/0.4637, allocations: 1.213 MB / 0.5418 GB, free: 10.13 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.074e-06/0.4637, allocations: 5.5 kB / 0.5418 GB, free: 10.12 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002864/0.464, allocations: 52.73 kB / 0.5419 GB, free: 10.12 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 8.656e-06/0.464, allocations: 3 kB / 0.5419 GB, free: 10.12 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.517e-05/0.4641, allocations: 14.2 kB / 0.5419 GB, free: 10.11 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.003e-06/0.4641, allocations: 3.812 kB / 0.5419 GB, free: 10.11 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.4641, allocations: 3.281 kB / 0.5419 GB, free: 10.11 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009316/0.465, allocations: 0.5769 MB / 0.5425 GB, free: 9.73 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001784/0.4652, allocations: 83.8 kB / 0.5425 GB, free: 9.676 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.953e-05/0.4653, allocations: 15.52 kB / 0.5426 GB, free: 9.668 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002083/0.4655, allocations: 17.73 kB / 0.5426 GB, free: 9.66 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.4656, allocations: 39.38 kB / 0.5426 GB, free: 9.648 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.68e-05/0.4656, allocations: 13.39 kB / 0.5426 GB, free: 9.645 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 0.0003485/0.466, allocations: 237.5 kB / 0.5429 GB, free: 9.516 MB / 398.1 MB
Notification: Performance of sort global known variables: time 8.1e-08/0.466, allocations: 0 / 0.5429 GB, free: 9.516 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0006066/0.4666, allocations: 139 kB / 0.543 GB, free: 9.469 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.0001758/0.4668, allocations: 127 kB / 0.5431 GB, free: 9.363 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.0007741/0.4675, allocations: 352.8 kB / 0.5434 GB, free: 9.242 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.4675, allocations: 0 / 0.5434 GB, free: 9.242 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0003044/0.4678, allocations: 155.7 kB / 0.5436 GB, free: 9.188 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007507/0.4686, allocations: 125.8 kB / 0.5437 GB, free: 9.145 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001911/0.4705, allocations: 0.963 MB / 0.5447 GB, free: 8.527 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005912/0.4711, allocations: 0.8634 MB / 0.5455 GB, free: 7.82 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 0.0002927/0.4714, allocations: 71.61 kB / 0.5456 GB, free: 7.801 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001138/0.4715, allocations: 43.25 kB / 0.5456 GB, free: 7.793 MB / 398.1 MB
Notification: Performance of SimCode: time 4.8e-07/0.4715, allocations: 3.938 kB / 0.5456 GB, free: 7.789 MB / 398.1 MB
Notification: Performance of Templates: time 0.01298/0.4845, allocations: 5.374 MB / 0.5509 GB, free: 5.266 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 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 480]
[Calling sys.exit(0), Time elapsed: 5.293220840394497]
Failed to read output from testmodel.py, exit status != 0:
0.49365028738975525 0.512357944 0.06366801200000001
Calling exit ...
<OMPython.OMCSessionZMQ object at 0x7fd45a2617b0>