Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_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.001648/0.001648, 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.001584/0.001584, allocations: 212.3 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.415/1.415, 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 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.1726/0.1726, allocations: 31.55 MB / 344 MB, free: 3.812 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/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_BusinessSimulation.Examples.SIR") translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_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.002171/0.002171, allocations: 63.91 kB / 481.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3815/0.3837, allocations: 60.72 MB / 0.5293 GB, free: 7.957 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.008838/0.3925, allocations: 6.714 MB / 0.5358 GB, free: 3.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002425/0.395, allocations: 1.094 MB / 0.5369 GB, free: 2.648 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004067/0.3954, allocations: 26.28 kB / 0.5369 GB, free: 2.637 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004237/0.3958, allocations: 149.2 kB / 0.5371 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002493/0.396, allocations: 86.88 kB / 0.5372 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000766/0.3968, allocations: 294 kB / 0.5374 GB, free: 2.305 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006581/0.3975, allocations: 0.7265 MB / 0.5381 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004941/0.398, allocations: 302.2 kB / 0.5384 GB, free: 1.645 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002746/0.3982, allocations: 309.6 kB / 0.5387 GB, free: 1.441 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002351/0.3985, allocations: 259.9 kB / 0.539 GB, free: 1.242 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001026/0.3986, allocations: 82.91 kB / 0.5391 GB, free: 1.242 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001504/0.3987, allocations: 92.62 kB / 0.5391 GB, free: 1.238 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001249/0.3988, allocations: 175.9 kB / 0.5393 GB, free: 1.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001939/0.399, allocations: 270.6 kB / 0.5396 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006824/0.3997, allocations: 0.8125 MB / 0.5404 GB, free: 260 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.3997, allocations: 0 / 0.5404 GB, free: 260 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3997, allocations: 5.219 kB / 0.5404 GB, free: 256 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.683e-05/0.3997, allocations: 0 / 0.5404 GB, free: 256 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.001481/0.4012, allocations: 0.8325 MB / 0.5412 GB, free: 15.58 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.4013, allocations: 10.34 kB / 0.5412 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003384/0.4016, allocations: 99.14 kB / 0.5413 GB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000674/0.4023, allocations: 393.5 kB / 0.5417 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.894e-05/0.4023, allocations: 57.62 kB / 0.5417 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001111/0.4024, allocations: 77.5 kB / 0.5418 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001218/0.4037, allocations: 0.7765 MB / 0.5426 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.908e-05/0.4037, allocations: 0.7812 kB / 0.5426 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.021e-05/0.4037, allocations: 31.44 kB / 0.5426 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.049e-05/0.4038, allocations: 16 kB / 0.5426 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007816/0.4045, allocations: 379.1 kB / 0.543 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003099/0.4076, allocations: 1.839 MB / 0.5448 GB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006133/0.4083, allocations: 298 kB / 0.545 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004973/0.4088, allocations: 207.9 kB / 0.5452 GB, free: 12.6 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.49e-05/0.4088, allocations: 9.344 kB / 0.5452 GB, free: 12.6 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.285e-05/0.4088, allocations: 43.53 kB / 0.5453 GB, free: 12.55 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 2.014e-06/0.4088, allocations: 0 / 0.5453 GB, free: 12.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.0008152/0.4096, allocations: 401.3 kB / 0.5457 GB, free: 12.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001427/0.4098, allocations: 211.7 kB / 0.5459 GB, free: 12.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004029/0.4102, allocations: 317.1 kB / 0.5462 GB, free: 11.88 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.536e-05/0.4102, allocations: 43.33 kB / 0.5462 GB, free: 11.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002673/0.4105, allocations: 325.7 kB / 0.5465 GB, free: 11.55 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001213/0.4106, allocations: 126.5 kB / 0.5466 GB, free: 11.44 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001746/0.4108, allocations: 120.8 kB / 0.5468 GB, free: 11.36 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.411, allocations: 347.4 kB / 0.5471 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003194/0.4113, allocations: 159.6 kB / 0.5472 GB, free: 10.94 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005015/0.4118, allocations: 417 kB / 0.5476 GB, free: 10.56 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006723/0.4125, allocations: 393.4 kB / 0.548 GB, free: 10.27 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.4125, allocations: 1.219 kB / 0.548 GB, free: 10.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.000919/0.4134, allocations: 0.5022 MB / 0.5485 GB, free: 10.02 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.4134, allocations: 5.812 kB / 0.5485 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.4134, allocations: 8.406 kB / 0.5485 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.41e-05/0.4135, allocations: 10.41 kB / 0.5485 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003004/0.4138, allocations: 84.64 kB / 0.5486 GB, free: 9.984 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.958e-05/0.4138, allocations: 11.05 kB / 0.5486 GB, free: 9.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002827/0.4141, allocations: 61.42 kB / 0.5487 GB, free: 9.938 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.337e-05/0.4141, allocations: 21.47 kB / 0.5487 GB, free: 9.934 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.0003029/0.4144, allocations: 232.7 kB / 0.5489 GB, free: 9.738 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/0.4145, allocations: 37.2 kB / 0.549 GB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.762e-05/0.4146, allocations: 48.11 kB / 0.549 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.4146, allocations: 3.562 kB / 0.549 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.4146, allocations: 1.219 kB / 0.549 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.4146, allocations: 1.219 kB / 0.549 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001771/0.4164, allocations: 1.075 MB / 0.5501 GB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.4164, allocations: 2.125 kB / 0.5501 GB, free: 8.828 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002317/0.4166, allocations: 56.38 kB / 0.5501 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.4166, allocations: 4.281 kB / 0.5501 GB, free: 8.809 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.737e-05/0.4167, allocations: 8.531 kB / 0.5501 GB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.4167, allocations: 3.469 kB / 0.5501 GB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.075e-05/0.4167, allocations: 19.48 kB / 0.5502 GB, free: 8.789 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008358/0.4175, allocations: 0.5775 MB / 0.5507 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001457/0.4177, allocations: 69.09 kB / 0.5508 GB, free: 8.332 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.065e-05/0.4177, allocations: 9.281 kB / 0.5508 GB, free: 8.328 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002098/0.4179, allocations: 19.55 kB / 0.5508 GB, free: 8.316 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.801e-05/0.418, allocations: 37.27 kB / 0.5508 GB, free: 8.293 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.728e-05/0.4181, allocations: 13.31 kB / 0.5509 GB, free: 8.289 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002481/0.4183, allocations: 201.9 kB / 0.5511 GB, free: 8.156 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4183, allocations: 0 / 0.5511 GB, free: 8.156 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000495/0.4188, allocations: 146.5 kB / 0.5512 GB, free: 8.102 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.0001518/0.4189, allocations: 128.7 kB / 0.5513 GB, free: 7.988 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006719/0.4196, allocations: 347.2 kB / 0.5516 GB, free: 7.84 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.4196, allocations: 2.062 kB / 0.5516 GB, free: 7.84 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002591/0.4199, allocations: 152.9 kB / 0.5518 GB, free: 7.773 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006679/0.4205, allocations: 117.1 kB / 0.5519 GB, free: 7.711 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001663/0.4222, allocations: 0.9794 MB / 0.5529 GB, free: 7.016 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003127/0.4225, allocations: 264.6 kB / 0.5531 GB, free: 6.848 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002256/0.4228, allocations: 64.53 kB / 0.5532 GB, free: 6.816 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001076/0.4229, allocations: 36.88 kB / 0.5532 GB, free: 6.809 MB / 398.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4229, allocations: 0 / 0.5532 GB, free: 6.809 MB / 398.1 MB Notification: Performance of Templates: time 0.01182/0.4347, allocations: 5.571 MB / 0.5587 GB, free: 2.449 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SIR.makefile [Timeout 660] (rm -f BusinessSimulation_BusinessSimulation.Examples.SIR.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SIR.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SIR.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SIR.sim & ./BusinessSimulation_BusinessSimulation.Examples.SIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.950071815401316] Failed to read output from testmodel.py, exit status != 0: 0.44307168014347553 0.457520835 0.054746295 Calling exit ...