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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001385/0.001385, allocations: 104.4 kB / 19.7 MB, free: 2.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001546/0.001546, allocations: 216.9 kB / 22.99 MB, free: 4.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.46/1.46, allocations: 230.6 MB / 256.8 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo): time 0.1764/0.1764, allocations: 31.54 MB / 344.7 MB, free: 3.871 MB / 270.1 MB " [Timeout remaining time 180] Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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: BusinessSimulation requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002295/0.002295, allocations: 67.91 kB / 482 MB, free: 15.02 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3175/0.3198, allocations: 60.72 MB / 0.53 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.007338/0.3271, allocations: 6.708 MB / 0.5366 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002248/0.3294, allocations: 1.098 MB / 0.5376 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003982/0.3298, allocations: 26.09 kB / 0.5377 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003841/0.3302, allocations: 141 kB / 0.5378 GB, free: 2.387 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000246/0.3304, allocations: 93.78 kB / 0.5379 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006997/0.3311, allocations: 299 kB / 0.5382 GB, free: 2.133 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006298/0.3317, allocations: 0.7204 MB / 0.5389 GB, free: 1.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004668/0.3322, allocations: 307.6 kB / 0.5392 GB, free: 1.512 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002702/0.3325, allocations: 308.5 kB / 0.5395 GB, free: 1.309 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002405/0.3327, allocations: 259.3 kB / 0.5397 GB, free: 1.109 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.214e-05/0.3328, allocations: 92.03 kB / 0.5398 GB, free: 1.102 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001254/0.3329, allocations: 91.67 kB / 0.5399 GB, free: 1.098 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001103/0.333, allocations: 172.3 kB / 0.54 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001909/0.3332, allocations: 274.9 kB / 0.5403 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006392/0.3339, allocations: 0.8038 MB / 0.5411 GB, free: 128 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3339, allocations: 5 kB / 0.5411 GB, free: 124 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3339, allocations: 0 / 0.5411 GB, free: 124 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.315e-05/0.3339, allocations: 0 / 0.5411 GB, free: 124 kB / 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.001493/0.3354, allocations: 0.8367 MB / 0.5419 GB, free: 15.45 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.3354, allocations: 11.38 kB / 0.5419 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003492/0.3358, allocations: 103.3 kB / 0.542 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007018/0.3365, allocations: 389.5 kB / 0.5424 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.054e-05/0.3365, allocations: 60.25 kB / 0.5425 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.613e-05/0.3366, allocations: 73.5 kB / 0.5425 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001143/0.3378, allocations: 0.7816 MB / 0.5433 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.3378, allocations: 1.125 kB / 0.5433 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.42e-05/0.3379, allocations: 26.84 kB / 0.5433 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.685e-05/0.3379, allocations: 20.34 kB / 0.5433 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007156/0.3386, allocations: 379.3 kB / 0.5437 GB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00296/0.3416, allocations: 1.826 MB / 0.5455 GB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006144/0.3422, allocations: 314.7 kB / 0.5458 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000403/0.3426, allocations: 202.5 kB / 0.546 GB, free: 12.47 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.3426, allocations: 8.547 kB / 0.546 GB, free: 12.46 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.94e-05/0.3426, allocations: 44.06 kB / 0.546 GB, free: 12.42 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 1.884e-06/0.3426, allocations: 0 / 0.546 GB, free: 12.42 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007672/0.3434, allocations: 401.3 kB / 0.5464 GB, free: 12.21 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001388/0.3435, allocations: 214.9 kB / 0.5466 GB, free: 11.96 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003818/0.3439, allocations: 317.5 kB / 0.5469 GB, free: 11.74 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.111e-05/0.344, allocations: 39.2 kB / 0.5469 GB, free: 11.7 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002624/0.3442, allocations: 329.6 kB / 0.5473 GB, free: 11.41 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/0.3444, allocations: 126.8 kB / 0.5474 GB, free: 11.3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/0.3445, allocations: 121.2 kB / 0.5475 GB, free: 11.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001893/0.3447, allocations: 346.7 kB / 0.5478 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003036/0.345, allocations: 151 kB / 0.548 GB, free: 10.81 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005122/0.3455, allocations: 410 kB / 0.5484 GB, free: 10.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006/0.3461, allocations: 403.2 kB / 0.5488 GB, free: 10.14 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.3461, allocations: 1.406 kB / 0.5488 GB, free: 10.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008883/0.347, allocations: 0.5045 MB / 0.5492 GB, free: 9.883 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.347, allocations: 11.34 kB / 0.5493 GB, free: 9.879 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.3471, allocations: 2.969 kB / 0.5493 GB, free: 9.879 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.378e-05/0.3471, allocations: 15.09 kB / 0.5493 GB, free: 9.871 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003067/0.3474, allocations: 80.2 kB / 0.5493 GB, free: 9.848 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.275e-05/0.3474, allocations: 6.5 kB / 0.5494 GB, free: 9.848 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003188/0.3477, allocations: 62.08 kB / 0.5494 GB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.284e-05/0.3478, allocations: 24.92 kB / 0.5494 GB, free: 9.797 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.0003131/0.3481, allocations: 225 kB / 0.5497 GB, free: 9.609 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.3482, allocations: 41.11 kB / 0.5497 GB, free: 9.586 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001101/0.3483, allocations: 47.61 kB / 0.5497 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.3483, allocations: 8.5 kB / 0.5497 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.3483, allocations: 1.125 kB / 0.5497 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.814e-06/0.3483, allocations: 5.141 kB / 0.5498 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001671/0.35, allocations: 1.068 MB / 0.5508 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.35, allocations: 6.219 kB / 0.5508 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002432/0.3502, allocations: 52.44 kB / 0.5509 GB, free: 8.676 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.3502, allocations: 3.938 kB / 0.5509 GB, free: 8.676 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.023e-05/0.3503, allocations: 12.94 kB / 0.5509 GB, free: 8.668 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.444e-06/0.3503, allocations: 7.672 kB / 0.5509 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.3503, allocations: 5.219 kB / 0.5509 GB, free: 8.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008127/0.3511, allocations: 0.5819 MB / 0.5514 GB, free: 8.246 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001423/0.3512, allocations: 66.23 kB / 0.5515 GB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.837e-05/0.3513, allocations: 13.5 kB / 0.5515 GB, free: 8.191 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001936/0.3515, allocations: 15.52 kB / 0.5515 GB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001068/0.3516, allocations: 40.81 kB / 0.5516 GB, free: 8.156 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.097e-05/0.3516, allocations: 13.72 kB / 0.5516 GB, free: 8.152 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002264/0.3518, allocations: 196.7 kB / 0.5518 GB, free: 8.023 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3518, allocations: 3.938 kB / 0.5518 GB, free: 8.02 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005005/0.3523, allocations: 139.7 kB / 0.5519 GB, free: 7.973 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.0001561/0.3525, allocations: 127.9 kB / 0.552 GB, free: 7.859 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006514/0.3531, allocations: 347 kB / 0.5524 GB, free: 7.711 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.618e-05/0.3532, allocations: 5.375 kB / 0.5524 GB, free: 7.707 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002382/0.3534, allocations: 147.4 kB / 0.5525 GB, free: 7.645 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006553/0.354, allocations: 124 kB / 0.5526 GB, free: 7.582 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001765/0.3558, allocations: 1.007 MB / 0.5536 GB, free: 6.859 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003183/0.3561, allocations: 272.6 kB / 0.5539 GB, free: 6.684 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.3562, allocations: 43.06 kB / 0.5539 GB, free: 6.672 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3562, allocations: 0 / 0.5539 GB, free: 6.672 MB / 398.1 MB Notification: Performance of Templates: time 0.01039/0.3666, allocations: 6.257 MB / 0.56 GB, free: 1.477 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: 7.757066901773214] Failed to read output from testmodel.py, exit status != 0: 0.37599384086206555 0.39111421199999996 0.054040549 Calling exit ...