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.001794/0.001794, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001599/0.001599, allocations: 212.1 kB / 22.25 MB, free: 5.258 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.466/1.466, allocations: 230.6 MB / 256 MB, free: 7.777 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.1727/0.1727, allocations: 31.54 MB / 344 MB, free: 3.785 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: "" <> buildModelFMU(BusinessSimulation.Examples.SIR,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SIR,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SIR",fmuType="me",version="2.0",platforms={"static"}) [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.002407/0.002407, allocations: 71.83 kB / 480.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4178/0.4202, allocations: 60.71 MB / 0.5288 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.008694/0.4289, allocations: 6.704 MB / 0.5354 GB, free: 2.961 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002969/0.4319, allocations: 1.098 MB / 0.5364 GB, free: 2.176 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005032/0.4324, allocations: 29.91 kB / 0.5365 GB, free: 2.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004539/0.4328, allocations: 141.5 kB / 0.5366 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002656/0.4331, allocations: 90.22 kB / 0.5367 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008608/0.434, allocations: 298.4 kB / 0.537 GB, free: 1.828 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008234/0.4348, allocations: 0.7207 MB / 0.5377 GB, free: 1.449 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006117/0.4354, allocations: 310.3 kB / 0.538 GB, free: 1.266 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003794/0.4358, allocations: 302.2 kB / 0.5382 GB, free: 1.102 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002872/0.4361, allocations: 268.6 kB / 0.5385 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001095/0.4362, allocations: 81.19 kB / 0.5386 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001512/0.4363, allocations: 88.44 kB / 0.5387 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001568/0.4365, allocations: 172.6 kB / 0.5388 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002387/0.4367, allocations: 279.8 kB / 0.5391 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007827/0.4375, allocations: 0.8047 MB / 0.5399 GB, free: 15.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.4375, allocations: 4 kB / 0.5399 GB, free: 15.91 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4375, allocations: 1.375 kB / 0.5399 GB, free: 15.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.073e-05/0.4375, allocations: 0 / 0.5399 GB, free: 15.91 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.001601/0.4391, allocations: 0.8358 MB / 0.5407 GB, free: 15.24 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/0.4392, allocations: 11.03 kB / 0.5407 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000148/0.4393, allocations: 120.5 kB / 0.5408 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003843/0.4397, allocations: 104.1 kB / 0.5409 GB, free: 15.08 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007141/0.4404, allocations: 380.7 kB / 0.5413 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.899e-05/0.4405, allocations: 57.84 kB / 0.5413 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001199/0.4406, allocations: 76.94 kB / 0.5414 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001253/0.4419, allocations: 0.7735 MB / 0.5422 GB, free: 14.13 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.102e-05/0.4419, allocations: 1.375 kB / 0.5422 GB, free: 14.13 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.704e-05/0.442, allocations: 30.88 kB / 0.5422 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.046e-05/0.442, allocations: 16.5 kB / 0.5422 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008077/0.4428, allocations: 386.2 kB / 0.5426 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003687/0.4465, allocations: 1.933 MB / 0.5445 GB, free: 12.38 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007312/0.4472, allocations: 304.2 kB / 0.5448 GB, free: 12.19 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004744/0.4477, allocations: 209.1 kB / 0.545 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.67e-05/0.4477, allocations: 4.438 kB / 0.545 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.208e-05/0.4478, allocations: 51.69 kB / 0.545 GB, free: 12.03 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 1.713e-06/0.4478, allocations: 0 / 0.545 GB, free: 12.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.0009028/0.4487, allocations: 402.7 kB / 0.5454 GB, free: 11.82 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001692/0.4488, allocations: 214.9 kB / 0.5456 GB, free: 11.57 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005021/0.4493, allocations: 364.8 kB / 0.546 GB, free: 11.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.994e-05/0.4494, allocations: 47.31 kB / 0.546 GB, free: 11.28 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002867/0.4497, allocations: 321 kB / 0.5463 GB, free: 11 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001333/0.4498, allocations: 126.9 kB / 0.5464 GB, free: 10.89 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000197/0.45, allocations: 124.5 kB / 0.5465 GB, free: 10.81 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000198/0.4502, allocations: 352.1 kB / 0.5469 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003335/0.4505, allocations: 154.9 kB / 0.547 GB, free: 10.39 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005294/0.4511, allocations: 410.5 kB / 0.5474 GB, free: 10.01 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006593/0.4517, allocations: 393.6 kB / 0.5478 GB, free: 9.723 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.4517, allocations: 2.219 kB / 0.5478 GB, free: 9.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0009729/0.4527, allocations: 0.5143 MB / 0.5483 GB, free: 9.457 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.237e-05/0.4527, allocations: 10.75 kB / 0.5483 GB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.4527, allocations: 3.094 kB / 0.5483 GB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.009e-05/0.4528, allocations: 8.125 kB / 0.5483 GB, free: 9.453 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003388/0.4531, allocations: 84.48 kB / 0.5484 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.62e-05/0.4531, allocations: 6.5 kB / 0.5484 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003333/0.4535, allocations: 63.19 kB / 0.5485 GB, free: 9.383 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.165e-05/0.4535, allocations: 24.72 kB / 0.5485 GB, free: 9.375 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.0003338/0.4538, allocations: 220.6 kB / 0.5487 GB, free: 9.191 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.454, allocations: 46.84 kB / 0.5487 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001128/0.4541, allocations: 53.53 kB / 0.5488 GB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.848e-06/0.4541, allocations: 4.406 kB / 0.5488 GB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.4541, allocations: 5.438 kB / 0.5488 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.4541, allocations: 1.219 kB / 0.5488 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00185/0.456, allocations: 1.155 MB / 0.5499 GB, free: 8.211 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.844e-06/0.456, allocations: 6.375 kB / 0.5499 GB, free: 8.207 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002537/0.4562, allocations: 48.2 kB / 0.55 GB, free: 8.195 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.175e-05/0.4562, allocations: 11.34 kB / 0.55 GB, free: 8.188 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.007e-05/0.4563, allocations: 18.06 kB / 0.55 GB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.89e-06/0.4563, allocations: 3.594 kB / 0.55 GB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.4563, allocations: 2.375 kB / 0.55 GB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008387/0.4571, allocations: 0.5796 MB / 0.5506 GB, free: 7.766 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001581/0.4573, allocations: 70.03 kB / 0.5507 GB, free: 7.715 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.037e-05/0.4573, allocations: 21.58 kB / 0.5507 GB, free: 7.699 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001931/0.4575, allocations: 15.58 kB / 0.5507 GB, free: 7.691 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.4576, allocations: 33.11 kB / 0.5507 GB, free: 7.672 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.339e-05/0.4577, allocations: 13.12 kB / 0.5507 GB, free: 7.668 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002929/0.4579, allocations: 242.5 kB / 0.551 GB, free: 7.508 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4579, allocations: 0 / 0.551 GB, free: 7.508 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000528/0.4585, allocations: 142.5 kB / 0.5511 GB, free: 7.457 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.001206/0.4597, allocations: 1.14 MB / 0.5522 GB, free: 6.508 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007197/0.4604, allocations: 348.2 kB / 0.5525 GB, free: 6.359 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4604, allocations: 0 / 0.5525 GB, free: 6.359 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002782/0.4607, allocations: 157.6 kB / 0.5527 GB, free: 6.289 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006904/0.4614, allocations: 129.5 kB / 0.5528 GB, free: 6.219 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005721/0.4671, allocations: 3.985 MB / 0.5567 GB, free: 3.312 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003265/0.4674, allocations: 269.1 kB / 0.557 GB, free: 3.141 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002617/0.4677, allocations: 58.52 kB / 0.557 GB, free: 3.113 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002986/0.468, allocations: 198.7 kB / 0.5572 GB, free: 2.949 MB / 398.1 MB Notification: Performance of SimCode: time 6.71e-07/0.468, allocations: 0 / 0.5572 GB, free: 2.949 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04108/0.5091, allocations: 9.609 MB / 0.5666 GB, free: 9.562 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.92, allocations: 14.38 kB / 0.5666 GB, free: 9.555 MB / 414.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_BusinessSimulation_Examples_SIR_fmu --startTime=0 --stopTime=100 --stepSize=0.2 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_SIR.fmu > BusinessSimulation_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.724147413857281] Failed to read output from testmodel.py, exit status != 0: 12.042042035143822 12.072297655 11.629184963 Calling exit ...