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.001407/0.001407, allocations: 114.5 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.001531/0.001531, allocations: 217 kB / 22.25 MB, free: 5.082 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.475/1.475, allocations: 230.6 MB / 256 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.179/0.179, 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 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.00296/0.00296, allocations: 79.88 kB / 480.9 MB, free: 15.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3285/0.3314, allocations: 60.71 MB / 0.5289 GB, free: 7.496 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.00762/0.3391, allocations: 7.371 MB / 0.5361 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002387/0.3414, allocations: 1.107 MB / 0.5372 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005183/0.342, allocations: 30.75 kB / 0.5372 GB, free: 1.441 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004147/0.3424, allocations: 141.8 kB / 0.5373 GB, free: 1.359 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002505/0.3426, allocations: 94.2 kB / 0.5374 GB, free: 1.285 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007851/0.3434, allocations: 305.1 kB / 0.5377 GB, free: 1.098 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000797/0.3442, allocations: 0.7216 MB / 0.5384 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005333/0.3447, allocations: 327.1 kB / 0.5387 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003683/0.3451, allocations: 304.1 kB / 0.539 GB, free: 360 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003103/0.3454, allocations: 308.9 kB / 0.5393 GB, free: 148 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001054/0.3455, allocations: 87.19 kB / 0.5394 GB, free: 144 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001266/0.3457, allocations: 95.55 kB / 0.5395 GB, free: 140 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001361/0.3458, allocations: 173.5 kB / 0.5396 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003036/0.3461, allocations: 347.2 kB / 0.54 GB, free: 15.72 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008886/0.347, allocations: 0.7946 MB / 0.5408 GB, free: 15.09 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.347, allocations: 0 / 0.5408 GB, free: 15.09 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.347, allocations: 0 / 0.5408 GB, free: 15.09 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.172e-05/0.347, allocations: 0 / 0.5408 GB, free: 15.09 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.001454/0.3485, allocations: 0.845 MB / 0.5416 GB, free: 14.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.3485, allocations: 10.34 kB / 0.5416 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001395/0.3486, allocations: 112.7 kB / 0.5417 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000334/0.349, allocations: 99.14 kB / 0.5418 GB, free: 14.26 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006529/0.3496, allocations: 393.3 kB / 0.5422 GB, free: 13.93 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.236e-05/0.3497, allocations: 57.62 kB / 0.5422 GB, free: 13.9 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/0.3498, allocations: 77.5 kB / 0.5423 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.3509, allocations: 0.6483 MB / 0.5429 GB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.028e-05/0.3509, allocations: 1.188 kB / 0.5429 GB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.677e-05/0.3509, allocations: 30.31 kB / 0.543 GB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.647e-05/0.351, allocations: 17.66 kB / 0.543 GB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000729/0.3517, allocations: 379.1 kB / 0.5433 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003442/0.3551, allocations: 2.204 MB / 0.5455 GB, free: 11.42 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006937/0.3558, allocations: 306.1 kB / 0.5458 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004501/0.3563, allocations: 212.5 kB / 0.546 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.548e-05/0.3563, allocations: 4.594 kB / 0.546 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.114e-05/0.3564, allocations: 50.02 kB / 0.546 GB, free: 11.07 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 2.776e-06/0.3564, allocations: 0.9375 kB / 0.546 GB, free: 11.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.0008521/0.3572, allocations: 402.5 kB / 0.5464 GB, free: 10.86 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001892/0.3574, allocations: 211.2 kB / 0.5466 GB, free: 10.61 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005195/0.3579, allocations: 366.4 kB / 0.547 GB, free: 10.36 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.838e-05/0.358, allocations: 43.95 kB / 0.547 GB, free: 10.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000301/0.3583, allocations: 316.9 kB / 0.5473 GB, free: 10.04 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001258/0.3584, allocations: 127.6 kB / 0.5474 GB, free: 9.934 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002049/0.3586, allocations: 124.3 kB / 0.5476 GB, free: 9.855 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002483/0.3589, allocations: 355.5 kB / 0.5479 GB, free: 9.508 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003567/0.3592, allocations: 150.3 kB / 0.548 GB, free: 9.438 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005322/0.3598, allocations: 304.2 kB / 0.5483 GB, free: 9.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006345/0.3604, allocations: 407.8 kB / 0.5487 GB, free: 8.879 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.3604, allocations: 1.625 kB / 0.5487 GB, free: 8.879 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0009831/0.3614, allocations: 0.5063 MB / 0.5492 GB, free: 8.621 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.891e-05/0.3614, allocations: 10.5 kB / 0.5492 GB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.3614, allocations: 7.812 kB / 0.5492 GB, free: 8.613 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.118e-05/0.3615, allocations: 10.98 kB / 0.5492 GB, free: 8.609 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003605/0.3618, allocations: 80.84 kB / 0.5493 GB, free: 8.586 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.54e-05/0.3618, allocations: 18.62 kB / 0.5493 GB, free: 8.574 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000332/0.3622, allocations: 66.38 kB / 0.5494 GB, free: 8.527 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.359e-05/0.3622, allocations: 21.44 kB / 0.5494 GB, free: 8.523 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.0003268/0.3625, allocations: 224.4 kB / 0.5496 GB, free: 8.336 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/0.3627, allocations: 45.77 kB / 0.5497 GB, free: 8.312 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001178/0.3628, allocations: 44.98 kB / 0.5497 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.3628, allocations: 3.812 kB / 0.5497 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/0.3628, allocations: 4 kB / 0.5497 GB, free: 8.273 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.3628, allocations: 1.875 kB / 0.5497 GB, free: 8.273 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001919/0.3647, allocations: 1.215 MB / 0.5509 GB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.3647, allocations: 2.656 kB / 0.5509 GB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002629/0.365, allocations: 56.14 kB / 0.551 GB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.792e-06/0.365, allocations: 3.531 kB / 0.551 GB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.068e-05/0.365, allocations: 12.66 kB / 0.551 GB, free: 7.277 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.043e-05/0.365, allocations: 13.33 kB / 0.551 GB, free: 7.27 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.365, allocations: 2.562 kB / 0.551 GB, free: 7.27 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008463/0.3659, allocations: 0.5785 MB / 0.5516 GB, free: 6.859 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001578/0.366, allocations: 78.77 kB / 0.5516 GB, free: 6.801 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.812e-05/0.3661, allocations: 14.03 kB / 0.5517 GB, free: 6.793 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002036/0.3663, allocations: 14.48 kB / 0.5517 GB, free: 6.785 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.529e-05/0.3664, allocations: 36 kB / 0.5517 GB, free: 6.762 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.253e-05/0.3664, allocations: 13.91 kB / 0.5517 GB, free: 6.758 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003209/0.3667, allocations: 237.9 kB / 0.5519 GB, free: 6.605 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3667, allocations: 0 / 0.5519 GB, free: 6.605 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005782/0.3673, allocations: 143.7 kB / 0.5521 GB, free: 6.555 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.001207/0.3685, allocations: 1.142 MB / 0.5532 GB, free: 5.598 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007369/0.3693, allocations: 352.6 kB / 0.5535 GB, free: 5.445 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.3693, allocations: 4.062 kB / 0.5535 GB, free: 5.441 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002601/0.3695, allocations: 158.2 kB / 0.5537 GB, free: 5.371 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000687/0.3702, allocations: 114.7 kB / 0.5538 GB, free: 5.312 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006034/0.3763, allocations: 3.978 MB / 0.5577 GB, free: 2.391 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000608/0.3769, allocations: 0.8666 MB / 0.5585 GB, free: 1.613 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002887/0.3772, allocations: 66.55 kB / 0.5586 GB, free: 1.578 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003095/0.3775, allocations: 198.2 kB / 0.5588 GB, free: 1.414 MB / 398.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3775, allocations: 0 / 0.5588 GB, free: 1.414 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04254/0.42, allocations: 9.004 MB / 0.5676 GB, free: 8.719 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.81/12.23, allocations: 4 kB / 0.5676 GB, free: 8.715 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.930502498988062] Failed to read output from testmodel.py, exit status != 0: 12.346130296820775 12.364873086 12.014159022 Calling exit ...