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.001223/0.001223, allocations: 105.5 kB / 19.73 MB, free: 2.223 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.001464/0.001464, allocations: 215.5 kB / 23.04 MB, free: 5.059 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.501/1.501, allocations: 230.6 MB / 256.8 MB, free: 8.008 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.1785/0.1785, allocations: 31.56 MB / 344.8 MB, free: 3.977 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SIR,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SIR",fmuType="cs",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.001942/0.001942, allocations: 63.89 kB / 481.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.333/0.3349, allocations: 60.71 MB / 0.5297 GB, free: 7.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.007816/0.3427, allocations: 7.372 MB / 0.5369 GB, free: 2.359 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002937/0.3457, allocations: 1.109 MB / 0.5379 GB, free: 1.555 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00068/0.3464, allocations: 27.44 kB / 0.538 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005219/0.3469, allocations: 144 kB / 0.5381 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002923/0.3472, allocations: 87.03 kB / 0.5382 GB, free: 1.391 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008813/0.3481, allocations: 316.5 kB / 0.5385 GB, free: 1.191 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007043/0.3488, allocations: 0.7183 MB / 0.5392 GB, free: 0.8164 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005433/0.3493, allocations: 322.2 kB / 0.5395 GB, free: 0.6211 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003171/0.3496, allocations: 301 kB / 0.5398 GB, free: 468 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003166/0.3499, allocations: 310.2 kB / 0.5401 GB, free: 248 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.633e-05/0.35, allocations: 82.97 kB / 0.5402 GB, free: 248 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001461/0.3502, allocations: 92.91 kB / 0.5402 GB, free: 244 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000126/0.3503, allocations: 176 kB / 0.5404 GB, free: 92 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002886/0.3506, allocations: 346.1 kB / 0.5407 GB, free: 15.82 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009926/0.3516, allocations: 0.8022 MB / 0.5415 GB, free: 15.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3516, allocations: 1.125 kB / 0.5415 GB, free: 15.18 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.3516, allocations: 0 / 0.5415 GB, free: 15.18 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.161e-05/0.3516, allocations: 0 / 0.5415 GB, free: 15.18 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.00172/0.3533, allocations: 0.8438 MB / 0.5423 GB, free: 14.5 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.3534, allocations: 11.19 kB / 0.5424 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.062e-05/0.3534, allocations: 22.5 kB / 0.5424 GB, free: 14.5 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001415/0.3535, allocations: 113 kB / 0.5425 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003838/0.3539, allocations: 100.3 kB / 0.5426 GB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006361/0.3546, allocations: 380 kB / 0.5429 GB, free: 14.03 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.897e-05/0.3546, allocations: 65.61 kB / 0.543 GB, free: 14 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.528e-05/0.3547, allocations: 73.5 kB / 0.5431 GB, free: 13.97 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001015/0.3557, allocations: 0.6487 MB / 0.5437 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.917e-05/0.3558, allocations: 5.312 kB / 0.5437 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.342e-05/0.3558, allocations: 30.88 kB / 0.5437 GB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.669e-05/0.3558, allocations: 16.5 kB / 0.5438 GB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007072/0.3565, allocations: 379.2 kB / 0.5441 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003259/0.3598, allocations: 2.212 MB / 0.5463 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006083/0.3604, allocations: 301.2 kB / 0.5466 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004128/0.3608, allocations: 215.3 kB / 0.5468 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.085e-05/0.3608, allocations: 8.328 kB / 0.5468 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.259e-05/0.3609, allocations: 46.47 kB / 0.5468 GB, free: 11.15 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 2.004e-06/0.3609, allocations: 0 / 0.5468 GB, free: 11.15 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007918/0.3617, allocations: 407.2 kB / 0.5472 GB, free: 10.94 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001413/0.3618, allocations: 214.2 kB / 0.5474 GB, free: 10.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004573/0.3623, allocations: 367.6 kB / 0.5478 GB, free: 10.44 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.625e-05/0.3623, allocations: 43.05 kB / 0.5478 GB, free: 10.4 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002528/0.3626, allocations: 314.5 kB / 0.5481 GB, free: 10.12 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/0.3627, allocations: 134 kB / 0.5482 GB, free: 10 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001799/0.3629, allocations: 120.4 kB / 0.5484 GB, free: 9.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.3631, allocations: 348.5 kB / 0.5487 GB, free: 9.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003126/0.3634, allocations: 154.1 kB / 0.5488 GB, free: 9.516 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004317/0.3638, allocations: 304.2 kB / 0.5491 GB, free: 9.258 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005795/0.3644, allocations: 407.5 kB / 0.5495 GB, free: 8.957 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.3644, allocations: 1.531 kB / 0.5495 GB, free: 8.957 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.000862/0.3653, allocations: 0.5099 MB / 0.55 GB, free: 8.695 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.3653, allocations: 7.562 kB / 0.55 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.3653, allocations: 2.656 kB / 0.55 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.002e-05/0.3653, allocations: 8.062 kB / 0.55 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000302/0.3656, allocations: 79.77 kB / 0.5501 GB, free: 8.672 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.495e-05/0.3656, allocations: 10.81 kB / 0.5501 GB, free: 8.668 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003309/0.366, allocations: 74.77 kB / 0.5502 GB, free: 8.613 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.942e-05/0.366, allocations: 20.94 kB / 0.5502 GB, free: 8.609 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.0002753/0.3663, allocations: 217.6 kB / 0.5504 GB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/0.3664, allocations: 42.58 kB / 0.5505 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.965e-05/0.3665, allocations: 48.84 kB / 0.5505 GB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.3665, allocations: 8.312 kB / 0.5505 GB, free: 8.363 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.3665, allocations: 1.469 kB / 0.5505 GB, free: 8.363 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.3665, allocations: 5.406 kB / 0.5505 GB, free: 8.359 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001755/0.3683, allocations: 1.217 MB / 0.5517 GB, free: 7.391 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.3683, allocations: 1.531 kB / 0.5517 GB, free: 7.391 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002393/0.3685, allocations: 52 kB / 0.5518 GB, free: 7.375 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.887e-06/0.3685, allocations: 8.375 kB / 0.5518 GB, free: 7.371 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.079e-05/0.3685, allocations: 12.44 kB / 0.5518 GB, free: 7.363 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.3685, allocations: 4.562 kB / 0.5518 GB, free: 7.363 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/0.3685, allocations: 6.531 kB / 0.5518 GB, free: 7.359 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007997/0.3693, allocations: 0.5789 MB / 0.5524 GB, free: 6.949 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001473/0.3695, allocations: 75.14 kB / 0.5524 GB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.713e-05/0.3696, allocations: 13.38 kB / 0.5524 GB, free: 6.887 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002013/0.3698, allocations: 22.55 kB / 0.5525 GB, free: 6.871 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.943e-05/0.3699, allocations: 36.91 kB / 0.5525 GB, free: 6.848 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-05/0.3699, allocations: 13.72 kB / 0.5525 GB, free: 6.844 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002807/0.3702, allocations: 238.2 kB / 0.5527 GB, free: 6.691 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3702, allocations: 0 / 0.5527 GB, free: 6.691 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000495/0.3707, allocations: 134.3 kB / 0.5529 GB, free: 6.648 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.001114/0.3718, allocations: 1.147 MB / 0.554 GB, free: 5.688 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006807/0.3724, allocations: 346.8 kB / 0.5543 GB, free: 5.539 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.3725, allocations: 2.219 kB / 0.5543 GB, free: 5.539 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002591/0.3727, allocations: 161 kB / 0.5545 GB, free: 5.465 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006834/0.3734, allocations: 133.7 kB / 0.5546 GB, free: 5.391 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005667/0.3791, allocations: 3.971 MB / 0.5585 GB, free: 2.477 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005998/0.3797, allocations: 0.8624 MB / 0.5593 GB, free: 1.703 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003002/0.38, allocations: 71.27 kB / 0.5594 GB, free: 1.668 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003171/0.3803, allocations: 193.5 kB / 0.5596 GB, free: 1.508 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3803, allocations: 1.312 kB / 0.5596 GB, free: 1.508 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03852/0.4188, allocations: 9.03 MB / 0.5684 GB, free: 8.816 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.04/12.46, allocations: 6.656 kB / 0.5684 GB, free: 8.812 MB / 414.1 MB " [Timeout remaining time 647] (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: 15.30902852397412] Failed to read output from testmodel.py, exit status != 0: 12.628777261008509 12.657066911 12.299951076 Calling exit ...