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.001319/0.001319, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001608/0.001608, allocations: 212.6 kB / 22.25 MB, free: 4.859 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.44/1.44, allocations: 230.6 MB / 256 MB, free: 7.801 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.1767/0.1767, allocations: 31.55 MB / 344 MB, free: 3.773 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.002192/0.002192, allocations: 71.89 kB / 481.3 MB, free: 15 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3158/0.318, allocations: 60.71 MB / 0.5293 GB, free: 7.809 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.007706/0.3257, allocations: 6.716 MB / 0.5358 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002329/0.328, allocations: 1.094 MB / 0.5369 GB, free: 2.496 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000783/0.3288, allocations: 26.56 kB / 0.5369 GB, free: 2.484 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000518/0.3293, allocations: 142.7 kB / 0.5371 GB, free: 2.402 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004853/0.3298, allocations: 88.17 kB / 0.5371 GB, free: 2.332 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001046/0.3308, allocations: 307.5 kB / 0.5374 GB, free: 2.145 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009081/0.3317, allocations: 0.7191 MB / 0.5381 GB, free: 1.758 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005159/0.3323, allocations: 304.8 kB / 0.5384 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002836/0.3325, allocations: 311.1 kB / 0.5387 GB, free: 1.336 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002578/0.3328, allocations: 259.8 kB / 0.539 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001051/0.3329, allocations: 82.91 kB / 0.5391 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001441/0.333, allocations: 89.66 kB / 0.5391 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001296/0.3332, allocations: 171.2 kB / 0.5393 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001849/0.3334, allocations: 275.1 kB / 0.5396 GB, free: 0.793 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006206/0.334, allocations: 0.8113 MB / 0.5404 GB, free: 160 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.334, allocations: 5.375 kB / 0.5404 GB, free: 156 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.334, allocations: 0 / 0.5404 GB, free: 156 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.465e-05/0.334, allocations: 0 / 0.5404 GB, free: 156 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.00131/0.3353, allocations: 0.8329 MB / 0.5412 GB, free: 15.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.3353, allocations: 18.28 kB / 0.5412 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000338/0.3357, allocations: 103.1 kB / 0.5413 GB, free: 15.42 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006852/0.3364, allocations: 389.1 kB / 0.5417 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.27e-05/0.3364, allocations: 61.31 kB / 0.5417 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001139/0.3366, allocations: 73.16 kB / 0.5418 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001239/0.3378, allocations: 0.7774 MB / 0.5426 GB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.986e-05/0.3378, allocations: 1.406 kB / 0.5426 GB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.176e-05/0.3379, allocations: 27.06 kB / 0.5426 GB, free: 14.44 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.561e-05/0.3379, allocations: 15.97 kB / 0.5426 GB, free: 14.44 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007393/0.3386, allocations: 383.5 kB / 0.543 GB, free: 14.26 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003079/0.3417, allocations: 1.835 MB / 0.5448 GB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006393/0.3423, allocations: 299.7 kB / 0.545 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004204/0.3428, allocations: 208.8 kB / 0.5452 GB, free: 12.5 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.861e-05/0.3428, allocations: 5.562 kB / 0.5452 GB, free: 12.5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.638e-05/0.3428, allocations: 42.97 kB / 0.5453 GB, free: 12.45 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 1.974e-06/0.3428, allocations: 0 / 0.5453 GB, free: 12.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.0008374/0.3437, allocations: 397.6 kB / 0.5457 GB, free: 12.25 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001537/0.3438, allocations: 218 kB / 0.5459 GB, free: 11.99 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004112/0.3442, allocations: 313.6 kB / 0.5462 GB, free: 11.78 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.115e-05/0.3443, allocations: 44.34 kB / 0.5462 GB, free: 11.73 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002747/0.3446, allocations: 329.5 kB / 0.5465 GB, free: 11.44 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001364/0.3447, allocations: 131.3 kB / 0.5467 GB, free: 11.33 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000168/0.3449, allocations: 119.4 kB / 0.5468 GB, free: 11.25 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001873/0.3451, allocations: 348.1 kB / 0.5471 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003074/0.3454, allocations: 154.5 kB / 0.5472 GB, free: 10.84 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004693/0.3458, allocations: 409.7 kB / 0.5476 GB, free: 10.46 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005822/0.3464, allocations: 395.1 kB / 0.548 GB, free: 10.17 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.85e-06/0.3464, allocations: 1.281 kB / 0.548 GB, free: 10.17 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008839/0.3473, allocations: 0.5054 MB / 0.5485 GB, free: 9.914 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.3473, allocations: 6.031 kB / 0.5485 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.3473, allocations: 3.531 kB / 0.5485 GB, free: 9.914 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.583e-05/0.3474, allocations: 11.5 kB / 0.5485 GB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003028/0.3477, allocations: 85.05 kB / 0.5486 GB, free: 9.883 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.438e-05/0.3477, allocations: 5.812 kB / 0.5486 GB, free: 9.883 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002978/0.348, allocations: 66.47 kB / 0.5487 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.918e-05/0.348, allocations: 21.09 kB / 0.5487 GB, free: 9.832 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.000288/0.3483, allocations: 220.7 kB / 0.5489 GB, free: 9.648 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.3484, allocations: 41.42 kB / 0.5489 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001012/0.3485, allocations: 51.02 kB / 0.549 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.3485, allocations: 4.219 kB / 0.549 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.601e-05/0.3485, allocations: 13.98 kB / 0.549 GB, free: 9.562 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.952e-06/0.3485, allocations: 0 / 0.549 GB, free: 9.562 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001606/0.3501, allocations: 1.068 MB / 0.5501 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.3501, allocations: 6.125 kB / 0.5501 GB, free: 8.723 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002281/0.3504, allocations: 47.91 kB / 0.5501 GB, free: 8.711 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.022e-06/0.3504, allocations: 3.906 kB / 0.5501 GB, free: 8.711 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.845e-05/0.3504, allocations: 17.06 kB / 0.5501 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.3504, allocations: 3.344 kB / 0.5501 GB, free: 8.699 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.3504, allocations: 6.188 kB / 0.5501 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007845/0.3512, allocations: 0.5827 MB / 0.5507 GB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001391/0.3513, allocations: 64.52 kB / 0.5508 GB, free: 8.238 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.938e-05/0.3514, allocations: 14.42 kB / 0.5508 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001894/0.3516, allocations: 10.69 kB / 0.5508 GB, free: 8.227 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.806e-05/0.3517, allocations: 45.19 kB / 0.5508 GB, free: 8.195 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.986e-05/0.3517, allocations: 13.06 kB / 0.5508 GB, free: 8.191 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002292/0.3519, allocations: 206.4 kB / 0.551 GB, free: 8.055 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3519, allocations: 3.938 kB / 0.551 GB, free: 8.051 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004862/0.3524, allocations: 138.5 kB / 0.5512 GB, free: 8.004 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.000147/0.3526, allocations: 128.7 kB / 0.5513 GB, free: 7.891 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006586/0.3532, allocations: 344.7 kB / 0.5516 GB, free: 7.746 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.3532, allocations: 4.062 kB / 0.5516 GB, free: 7.742 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002482/0.3535, allocations: 152.5 kB / 0.5518 GB, free: 7.676 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006501/0.3541, allocations: 119.7 kB / 0.5519 GB, free: 7.613 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001679/0.3558, allocations: 0.9916 MB / 0.5529 GB, free: 6.906 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002866/0.3561, allocations: 264.2 kB / 0.5531 GB, free: 6.738 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002259/0.3563, allocations: 60.23 kB / 0.5532 GB, free: 6.711 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001024/0.3564, allocations: 41.42 kB / 0.5532 GB, free: 6.699 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3564, allocations: 0 / 0.5532 GB, free: 6.699 MB / 398.1 MB Notification: Performance of Templates: time 0.01156/0.368, allocations: 5.562 MB / 0.5586 GB, free: 2.27 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: 4.880376780405641] Failed to read output from testmodel.py, exit status != 0: 0.37623879685997963 0.39000484900000004 0.052931210000000006 Calling exit ...