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.001757/0.001757, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001873/0.001873, allocations: 217.5 kB / 22.26 MB, free: 5.078 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.523/1.523, allocations: 230.6 MB / 256 MB, free: 8.031 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.1811/0.1811, allocations: 31.56 MB / 344 MB, free: 3.957 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: "" <> buildModelFMU(BusinessSimulation.Examples.SIR,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SIR,fileNamePrefix="BusinessSimulation_dev_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.002335/0.002335, allocations: 71.84 kB / 480.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3683/0.3706, allocations: 60.7 MB / 0.5289 GB, free: 7.625 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.007559/0.3782, allocations: 7.381 MB / 0.5361 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002605/0.3808, allocations: 1.105 MB / 0.5372 GB, free: 1.578 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008191/0.3816, allocations: 31.28 kB / 0.5372 GB, free: 1.562 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005214/0.3821, allocations: 144.3 kB / 0.5373 GB, free: 1.477 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003338/0.3824, allocations: 89.41 kB / 0.5374 GB, free: 1.406 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008925/0.3833, allocations: 306.6 kB / 0.5377 GB, free: 1.219 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007123/0.384, allocations: 0.7208 MB / 0.5384 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005055/0.3846, allocations: 326.6 kB / 0.5387 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002917/0.3848, allocations: 305.8 kB / 0.539 GB, free: 484 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003106/0.3852, allocations: 304.4 kB / 0.5393 GB, free: 276 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001014/0.3853, allocations: 91.25 kB / 0.5394 GB, free: 268 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001399/0.3854, allocations: 95.81 kB / 0.5395 GB, free: 264 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001101/0.3855, allocations: 183 kB / 0.5397 GB, free: 104 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002901/0.3858, allocations: 337.4 kB / 0.54 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009947/0.3868, allocations: 0.7945 MB / 0.5408 GB, free: 15.21 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.3868, allocations: 4 kB / 0.5408 GB, free: 15.2 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.3868, allocations: 0 / 0.5408 GB, free: 15.2 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.295e-05/0.3868, allocations: 0 / 0.5408 GB, free: 15.2 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.00151/0.3883, allocations: 0.8409 MB / 0.5416 GB, free: 14.53 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.3884, allocations: 10.34 kB / 0.5416 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001295/0.3885, allocations: 112.7 kB / 0.5417 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003558/0.3888, allocations: 99.14 kB / 0.5418 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006492/0.3895, allocations: 389 kB / 0.5422 GB, free: 14.05 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.844e-05/0.3896, allocations: 61.5 kB / 0.5422 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.502e-05/0.3897, allocations: 73.25 kB / 0.5423 GB, free: 14 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001038/0.3907, allocations: 0.6463 MB / 0.5429 GB, free: 13.58 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.3907, allocations: 0 / 0.5429 GB, free: 13.58 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.636e-05/0.3908, allocations: 34.83 kB / 0.543 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.693e-05/0.3908, allocations: 16.69 kB / 0.543 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007046/0.3915, allocations: 379.2 kB / 0.5433 GB, free: 13.38 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003315/0.3948, allocations: 2.208 MB / 0.5455 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006229/0.3954, allocations: 303.8 kB / 0.5458 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004217/0.3958, allocations: 217.2 kB / 0.546 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.249e-05/0.3959, allocations: 3.25 kB / 0.546 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.296e-05/0.3959, allocations: 54.64 kB / 0.546 GB, free: 11.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 1.874e-06/0.3959, allocations: 0 / 0.546 GB, free: 11.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007675/0.3967, allocations: 399.5 kB / 0.5464 GB, free: 10.98 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001363/0.3968, allocations: 209.8 kB / 0.5466 GB, free: 10.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004356/0.3973, allocations: 367.2 kB / 0.547 GB, free: 10.48 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.357e-05/0.3973, allocations: 44.7 kB / 0.547 GB, free: 10.44 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002414/0.3975, allocations: 316.2 kB / 0.5473 GB, free: 10.16 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/0.3977, allocations: 130.3 kB / 0.5474 GB, free: 10.05 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001741/0.3978, allocations: 120.4 kB / 0.5476 GB, free: 9.977 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.398, allocations: 356.4 kB / 0.5479 GB, free: 9.629 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003033/0.3983, allocations: 151 kB / 0.548 GB, free: 9.559 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004187/0.3987, allocations: 302.7 kB / 0.5483 GB, free: 9.301 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000578/0.3993, allocations: 404.8 kB / 0.5487 GB, free: 9.004 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.3993, allocations: 0 / 0.5487 GB, free: 9.004 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0009674/0.4003, allocations: 0.5156 MB / 0.5492 GB, free: 8.738 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.086e-05/0.4003, allocations: 10.62 kB / 0.5492 GB, free: 8.734 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.4003, allocations: 7.281 kB / 0.5492 GB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.166e-05/0.4003, allocations: 10.92 kB / 0.5492 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003208/0.4006, allocations: 76.97 kB / 0.5493 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.481e-05/0.4006, allocations: 13.27 kB / 0.5493 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003023/0.401, allocations: 69.28 kB / 0.5494 GB, free: 8.652 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.598e-05/0.401, allocations: 20.25 kB / 0.5494 GB, free: 8.648 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.00026/0.4012, allocations: 225.3 kB / 0.5496 GB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.4014, allocations: 41.67 kB / 0.5497 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001024/0.4015, allocations: 49.7 kB / 0.5497 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.4015, allocations: 5.156 kB / 0.5497 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.4015, allocations: 0 / 0.5497 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.4015, allocations: 5.344 kB / 0.5497 GB, free: 8.395 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00171/0.4032, allocations: 1.213 MB / 0.5509 GB, free: 7.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.4032, allocations: 1.406 kB / 0.5509 GB, free: 7.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000248/0.4034, allocations: 56.53 kB / 0.551 GB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.391e-06/0.4034, allocations: 3.562 kB / 0.551 GB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.973e-05/0.4035, allocations: 13.22 kB / 0.551 GB, free: 7.402 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.613e-06/0.4035, allocations: 8.344 kB / 0.551 GB, free: 7.398 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.4035, allocations: 5.891 kB / 0.551 GB, free: 7.395 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000806/0.4043, allocations: 0.5791 MB / 0.5516 GB, free: 6.984 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001691/0.4045, allocations: 71.45 kB / 0.5516 GB, free: 6.934 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.596e-05/0.4045, allocations: 17.78 kB / 0.5516 GB, free: 6.922 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000209/0.4047, allocations: 19.08 kB / 0.5517 GB, free: 6.91 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.098e-05/0.4048, allocations: 32.38 kB / 0.5517 GB, free: 6.891 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.17e-05/0.4048, allocations: 16.25 kB / 0.5517 GB, free: 6.883 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002774/0.4051, allocations: 242.6 kB / 0.5519 GB, free: 6.727 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4051, allocations: 0 / 0.5519 GB, free: 6.727 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004929/0.4056, allocations: 138.5 kB / 0.5521 GB, free: 6.68 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.001133/0.4067, allocations: 1.147 MB / 0.5532 GB, free: 5.719 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007186/0.4074, allocations: 352 kB / 0.5535 GB, free: 5.566 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.4074, allocations: 1.25 kB / 0.5535 GB, free: 5.566 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002514/0.4077, allocations: 161.1 kB / 0.5537 GB, free: 5.492 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006927/0.4084, allocations: 113.3 kB / 0.5538 GB, free: 5.434 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005646/0.414, allocations: 3.981 MB / 0.5577 GB, free: 2.508 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005348/0.4146, allocations: 0.8583 MB / 0.5585 GB, free: 1.738 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002508/0.4148, allocations: 71.64 kB / 0.5586 GB, free: 1.699 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002832/0.4151, allocations: 198.2 kB / 0.5588 GB, free: 1.535 MB / 398.1 MB Notification: Performance of SimCode: time 5.62e-07/0.4151, allocations: 0 / 0.5588 GB, free: 1.535 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04164/0.4567, allocations: 9.002 MB / 0.5676 GB, free: 8.902 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.89, allocations: 6.75 kB / 0.5676 GB, free: 8.898 MB / 414.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_dev_BusinessSimulation_Examples_SIR_fmu --startTime=0 --stopTime=100 --stepSize=0.2 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_SIR.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.704782650107518] Failed to read output from testmodel.py, exit status != 0: 12.002475846093148 12.025636099 11.635550809 Calling exit ...