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.001231/0.001231, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001367/0.001367, allocations: 219.5 kB / 23.01 MB, free: 4.609 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.483/1.483, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.174/0.174, allocations: 31.56 MB / 344.8 MB, free: 4.062 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.002335/0.002335, allocations: 71.89 kB / 482.1 MB, free: 15.22 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4151/0.4174, allocations: 60.71 MB / 0.5301 GB, free: 7.863 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.0101/0.4275, allocations: 7.374 MB / 0.5373 GB, free: 2.625 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003377/0.4309, allocations: 1.103 MB / 0.5384 GB, free: 1.824 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001275/0.4322, allocations: 30.75 kB / 0.5384 GB, free: 1.809 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007694/0.433, allocations: 140.5 kB / 0.5386 GB, free: 1.727 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000687/0.4336, allocations: 86.69 kB / 0.5386 GB, free: 1.66 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001288/0.4349, allocations: 313.1 kB / 0.5389 GB, free: 1.465 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001337/0.4363, allocations: 0.7205 MB / 0.5396 GB, free: 1.082 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00074/0.437, allocations: 313.7 kB / 0.5399 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005263/0.4375, allocations: 313.1 kB / 0.5402 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005008/0.438, allocations: 312 kB / 0.5405 GB, free: 408 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001988/0.4382, allocations: 83.44 kB / 0.5406 GB, free: 408 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002282/0.4385, allocations: 88.12 kB / 0.5407 GB, free: 408 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001745/0.4386, allocations: 176.3 kB / 0.5409 GB, free: 256 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003891/0.439, allocations: 347.1 kB / 0.5412 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001241/0.4403, allocations: 0.7981 MB / 0.542 GB, free: 15.35 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.4403, allocations: 0 / 0.542 GB, free: 15.35 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.4403, allocations: 3.938 kB / 0.542 GB, free: 15.34 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.476e-05/0.4403, allocations: 3.938 kB / 0.542 GB, free: 15.34 MB / 398.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.002241/0.4426, allocations: 0.8395 MB / 0.5428 GB, free: 14.67 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.4426, allocations: 10.25 kB / 0.5428 GB, free: 14.67 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004592/0.4431, allocations: 104.1 kB / 0.5429 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007916/0.4439, allocations: 380.7 kB / 0.5433 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.82e-05/0.4439, allocations: 61.02 kB / 0.5433 GB, free: 14.26 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001273/0.4441, allocations: 81.11 kB / 0.5434 GB, free: 14.23 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001187/0.4453, allocations: 0.6457 MB / 0.544 GB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.4453, allocations: 5.375 kB / 0.544 GB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.922e-05/0.4453, allocations: 30.62 kB / 0.5441 GB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.323e-05/0.4454, allocations: 20.5 kB / 0.5441 GB, free: 13.78 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007282/0.4461, allocations: 379 kB / 0.5445 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003545/0.4496, allocations: 2.197 MB / 0.5466 GB, free: 11.78 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006775/0.4503, allocations: 312.6 kB / 0.5469 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004486/0.4508, allocations: 217.3 kB / 0.5471 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.992e-05/0.4508, allocations: 11.92 kB / 0.5471 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.597e-05/0.4508, allocations: 38.03 kB / 0.5472 GB, free: 11.42 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 1.954e-06/0.4508, allocations: 0 / 0.5472 GB, free: 11.42 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.0008375/0.4517, allocations: 403.5 kB / 0.5475 GB, free: 11.21 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001742/0.4518, allocations: 218.6 kB / 0.5478 GB, free: 10.96 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004884/0.4523, allocations: 362.5 kB / 0.5481 GB, free: 10.71 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.687e-05/0.4524, allocations: 43.73 kB / 0.5481 GB, free: 10.67 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002751/0.4527, allocations: 324.8 kB / 0.5484 GB, free: 10.39 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.4528, allocations: 123 kB / 0.5486 GB, free: 10.28 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000189/0.453, allocations: 124.5 kB / 0.5487 GB, free: 10.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000209/0.4532, allocations: 352.2 kB / 0.549 GB, free: 9.859 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003095/0.4535, allocations: 149.8 kB / 0.5492 GB, free: 9.789 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004532/0.454, allocations: 299.8 kB / 0.5494 GB, free: 9.535 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006111/0.4546, allocations: 404.5 kB / 0.5498 GB, free: 9.238 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.4546, allocations: 1.531 kB / 0.5498 GB, free: 9.238 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0009204/0.4555, allocations: 0.5108 MB / 0.5503 GB, free: 8.977 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.4555, allocations: 9.406 kB / 0.5503 GB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.4555, allocations: 4.281 kB / 0.5503 GB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.385e-05/0.4556, allocations: 6.906 kB / 0.5504 GB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003197/0.4559, allocations: 84.95 kB / 0.5504 GB, free: 8.945 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.867e-05/0.4559, allocations: 10.75 kB / 0.5504 GB, free: 8.941 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003204/0.4562, allocations: 70.22 kB / 0.5505 GB, free: 8.891 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.545e-05/0.4563, allocations: 25.45 kB / 0.5505 GB, free: 8.883 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.000318/0.4566, allocations: 224.8 kB / 0.5508 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001377/0.4567, allocations: 42.3 kB / 0.5508 GB, free: 8.672 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001054/0.4568, allocations: 49.7 kB / 0.5508 GB, free: 8.633 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.224e-06/0.4568, allocations: 4.406 kB / 0.5508 GB, free: 8.633 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/0.4568, allocations: 5.062 kB / 0.5508 GB, free: 8.629 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.298e-06/0.4568, allocations: 5.172 kB / 0.5509 GB, free: 8.625 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001881/0.4587, allocations: 1.213 MB / 0.552 GB, free: 7.664 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.928e-06/0.4587, allocations: 6.391 kB / 0.552 GB, free: 7.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002551/0.459, allocations: 47.83 kB / 0.5521 GB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.459, allocations: 3.594 kB / 0.5521 GB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.437e-05/0.459, allocations: 16.89 kB / 0.5521 GB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/0.459, allocations: 3.938 kB / 0.5521 GB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.459, allocations: 6.438 kB / 0.5521 GB, free: 7.633 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008829/0.4599, allocations: 0.576 MB / 0.5527 GB, free: 7.227 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001547/0.4601, allocations: 78.14 kB / 0.5528 GB, free: 7.168 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.835e-05/0.4601, allocations: 17.89 kB / 0.5528 GB, free: 7.156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001964/0.4603, allocations: 11.06 kB / 0.5528 GB, free: 7.152 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/0.4605, allocations: 40.41 kB / 0.5528 GB, free: 7.125 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.62e-05/0.4605, allocations: 17.53 kB / 0.5528 GB, free: 7.117 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003192/0.4608, allocations: 238.4 kB / 0.5531 GB, free: 6.965 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4608, allocations: 0 / 0.5531 GB, free: 6.965 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005594/0.4614, allocations: 138.7 kB / 0.5532 GB, free: 6.918 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.0001721/0.4615, allocations: 124.6 kB / 0.5533 GB, free: 6.812 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000761/0.4623, allocations: 355.5 kB / 0.5537 GB, free: 6.656 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4623, allocations: 0 / 0.5537 GB, free: 6.656 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002599/0.4626, allocations: 150.9 kB / 0.5538 GB, free: 6.59 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007287/0.4633, allocations: 124 kB / 0.5539 GB, free: 6.52 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001977/0.4653, allocations: 1.013 MB / 0.5549 GB, free: 5.793 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006105/0.4659, allocations: 0.8635 MB / 0.5558 GB, free: 5.016 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001273/0.466, allocations: 44.23 kB / 0.5558 GB, free: 5.008 MB / 398.1 MB Notification: Performance of SimCode: time 4.51e-07/0.466, allocations: 0 / 0.5558 GB, free: 5.008 MB / 398.1 MB Notification: Performance of Templates: time 0.01154/0.4775, allocations: 6.244 MB / 0.5619 GB, free: 15.98 MB / 414.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: 7.920423879986629] Failed to read output from testmodel.py, exit status != 0: 0.48765553906559944 0.5026684370000001 0.059190360000000004 Calling exit ...