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.00172/0.00172, 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.002184/0.002184, allocations: 208.8 kB / 22.24 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.568/1.568, allocations: 230.6 MB / 256 MB, free: 8.012 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.1764/0.1764, allocations: 31.53 MB / 344 MB, free: 3.82 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.002337/0.002337, allocations: 63.84 kB / 480.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.344/0.3464, allocations: 60.72 MB / 0.5288 GB, free: 7.594 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.008133/0.3545, allocations: 6.705 MB / 0.5353 GB, free: 3.074 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00256/0.3571, allocations: 1.102 MB / 0.5364 GB, free: 2.285 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006964/0.3578, allocations: 30.69 kB / 0.5364 GB, free: 2.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004628/0.3582, allocations: 140.1 kB / 0.5366 GB, free: 2.188 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002921/0.3585, allocations: 85.73 kB / 0.5367 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008221/0.3593, allocations: 303.5 kB / 0.537 GB, free: 1.938 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007672/0.3601, allocations: 0.7206 MB / 0.5377 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005307/0.3606, allocations: 307.6 kB / 0.5379 GB, free: 1.379 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003457/0.361, allocations: 308.8 kB / 0.5382 GB, free: 1.207 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002738/0.3613, allocations: 264.1 kB / 0.5385 GB, free: 1.016 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.695e-05/0.3614, allocations: 82.88 kB / 0.5386 GB, free: 1.016 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001467/0.3615, allocations: 92.12 kB / 0.5387 GB, free: 1.012 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001233/0.3616, allocations: 172.9 kB / 0.5388 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001939/0.3618, allocations: 274.8 kB / 0.5391 GB, free: 0.668 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006932/0.3625, allocations: 0.8087 MB / 0.5399 GB, free: 28 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.3625, allocations: 1.25 kB / 0.5399 GB, free: 28 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3625, allocations: 0 / 0.5399 GB, free: 28 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.162e-05/0.3625, allocations: 0 / 0.5399 GB, free: 28 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.001569/0.3641, allocations: 0.8334 MB / 0.5407 GB, free: 15.36 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.208e-05/0.3641, allocations: 12.97 kB / 0.5407 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001383/0.3643, allocations: 118 kB / 0.5408 GB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003317/0.3646, allocations: 99.14 kB / 0.5409 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006768/0.3653, allocations: 393.3 kB / 0.5413 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.045e-05/0.3654, allocations: 57.62 kB / 0.5413 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001003/0.3655, allocations: 73.5 kB / 0.5414 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/0.3667, allocations: 0.7768 MB / 0.5422 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/0.3667, allocations: 1.312 kB / 0.5422 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.876e-05/0.3667, allocations: 30.06 kB / 0.5422 GB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.007e-05/0.3668, allocations: 17.31 kB / 0.5422 GB, free: 14.22 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007513/0.3675, allocations: 377.8 kB / 0.5426 GB, free: 14.05 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003278/0.3708, allocations: 1.938 MB / 0.5445 GB, free: 12.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006774/0.3715, allocations: 300.4 kB / 0.5448 GB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004346/0.3719, allocations: 212.6 kB / 0.545 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.99e-05/0.3719, allocations: 4.562 kB / 0.545 GB, free: 12.2 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.397e-05/0.372, allocations: 51.23 kB / 0.545 GB, free: 12.14 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 2.906e-06/0.372, allocations: 0 / 0.545 GB, free: 12.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.0008002/0.3728, allocations: 403.3 kB / 0.5454 GB, free: 11.94 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001326/0.3729, allocations: 210.9 kB / 0.5456 GB, free: 11.69 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004435/0.3734, allocations: 372 kB / 0.546 GB, free: 11.44 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.533e-05/0.3734, allocations: 48.42 kB / 0.546 GB, free: 11.39 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002691/0.3737, allocations: 317.1 kB / 0.5463 GB, free: 11.11 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001197/0.3738, allocations: 122 kB / 0.5464 GB, free: 11.01 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002107/0.374, allocations: 123.9 kB / 0.5465 GB, free: 10.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002367/0.3742, allocations: 357 kB / 0.5469 GB, free: 10.58 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003102/0.3746, allocations: 155.6 kB / 0.547 GB, free: 10.51 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005079/0.3751, allocations: 410.6 kB / 0.5474 GB, free: 10.12 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006221/0.3757, allocations: 395.2 kB / 0.5478 GB, free: 9.84 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.3757, allocations: 5.594 kB / 0.5478 GB, free: 9.836 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0009013/0.3766, allocations: 0.5065 MB / 0.5483 GB, free: 9.578 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.3766, allocations: 10.47 kB / 0.5483 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.3766, allocations: 4.594 kB / 0.5483 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.348e-05/0.3766, allocations: 10.78 kB / 0.5483 GB, free: 9.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003345/0.377, allocations: 80.02 kB / 0.5484 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.415e-05/0.377, allocations: 6.656 kB / 0.5484 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003256/0.3773, allocations: 62.56 kB / 0.5485 GB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.11e-05/0.3774, allocations: 21.41 kB / 0.5485 GB, free: 9.5 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.000314/0.3777, allocations: 225 kB / 0.5487 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.3778, allocations: 47.34 kB / 0.5487 GB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001057/0.3779, allocations: 53.47 kB / 0.5488 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-06/0.3779, allocations: 7.906 kB / 0.5488 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.642e-05/0.3779, allocations: 5.438 kB / 0.5488 GB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.3779, allocations: 0.875 kB / 0.5488 GB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001861/0.3798, allocations: 1.155 MB / 0.5499 GB, free: 8.328 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.3798, allocations: 2.406 kB / 0.5499 GB, free: 8.328 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002495/0.38, allocations: 47.7 kB / 0.55 GB, free: 8.316 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.051e-05/0.3801, allocations: 11.89 kB / 0.55 GB, free: 8.309 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.417e-05/0.3801, allocations: 17.78 kB / 0.55 GB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.3801, allocations: 3.281 kB / 0.55 GB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.3801, allocations: 2.188 kB / 0.55 GB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008919/0.381, allocations: 0.5798 MB / 0.5506 GB, free: 7.887 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001663/0.3812, allocations: 70.5 kB / 0.5506 GB, free: 7.836 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.943e-05/0.3812, allocations: 17.8 kB / 0.5507 GB, free: 7.824 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002152/0.3814, allocations: 19.42 kB / 0.5507 GB, free: 7.812 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.72e-05/0.3815, allocations: 29.73 kB / 0.5507 GB, free: 7.797 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.417e-05/0.3816, allocations: 20.19 kB / 0.5507 GB, free: 7.785 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002973/0.3818, allocations: 238.4 kB / 0.551 GB, free: 7.629 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3818, allocations: 0 / 0.551 GB, free: 7.629 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005186/0.3824, allocations: 143 kB / 0.5511 GB, free: 7.578 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.001205/0.3836, allocations: 1.14 MB / 0.5522 GB, free: 6.629 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007741/0.3843, allocations: 350.7 kB / 0.5525 GB, free: 6.477 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3843, allocations: 1.25 kB / 0.5525 GB, free: 6.477 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003461/0.3847, allocations: 157 kB / 0.5527 GB, free: 6.406 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007106/0.3854, allocations: 132.8 kB / 0.5528 GB, free: 6.332 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006228/0.3916, allocations: 3.977 MB / 0.5567 GB, free: 3.434 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003905/0.392, allocations: 269.7 kB / 0.557 GB, free: 3.234 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003126/0.3923, allocations: 64.34 kB / 0.557 GB, free: 3.168 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002989/0.3926, allocations: 199.4 kB / 0.5572 GB, free: 2.973 MB / 398.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3926, allocations: 0 / 0.5572 GB, free: 2.973 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04141/0.4341, allocations: 9.606 MB / 0.5666 GB, free: 9.586 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.82, allocations: 11.33 kB / 0.5666 GB, free: 9.578 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.706599962897599] Failed to read output from testmodel.py, exit status != 0: 11.936340149957687 11.953012256 11.58713562 Calling exit ...