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.001437/0.001437, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001601/0.001601, allocations: 217.8 kB / 23.03 MB, free: 4.922 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.491/1.491, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.54 MB / 344.7 MB, free: 3.879 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SIR,fileNamePrefix="BusinessSimulation_dev_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.002261/0.002261, allocations: 71.89 kB / 481.6 MB, free: 15.54 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3624/0.3646, allocations: 60.7 MB / 0.5296 GB, free: 7.535 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.00792/0.3725, allocations: 6.695 MB / 0.5361 GB, free: 3.016 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00315/0.3757, allocations: 1.091 MB / 0.5372 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006732/0.3764, allocations: 30.38 kB / 0.5372 GB, free: 2.215 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00052/0.3769, allocations: 140.7 kB / 0.5373 GB, free: 2.133 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000321/0.3772, allocations: 89.8 kB / 0.5374 GB, free: 2.062 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009087/0.3781, allocations: 297.3 kB / 0.5377 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006843/0.3788, allocations: 0.7215 MB / 0.5384 GB, free: 1.504 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005207/0.3793, allocations: 321.9 kB / 0.5387 GB, free: 1.309 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003036/0.3796, allocations: 310.7 kB / 0.539 GB, free: 1.133 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002682/0.3799, allocations: 311.2 kB / 0.5393 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.38, allocations: 87.03 kB / 0.5394 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001318/0.3801, allocations: 93.56 kB / 0.5395 GB, free: 0.875 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000119/0.3803, allocations: 172.5 kB / 0.5396 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001796/0.3804, allocations: 274 kB / 0.5399 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008583/0.3813, allocations: 0.8058 MB / 0.5407 GB, free: 15.89 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.3813, allocations: 0 / 0.5407 GB, free: 15.89 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.336e-06/0.3813, allocations: 5.344 kB / 0.5407 GB, free: 15.89 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.802e-05/0.3813, allocations: 0 / 0.5407 GB, free: 15.89 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.001785/0.3831, allocations: 0.8356 MB / 0.5415 GB, free: 15.22 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.3831, allocations: 11.41 kB / 0.5415 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.982e-05/0.3832, allocations: 18.47 kB / 0.5415 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001266/0.3833, allocations: 116.7 kB / 0.5416 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003702/0.3837, allocations: 104.5 kB / 0.5417 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000714/0.3844, allocations: 389.2 kB / 0.5421 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.75e-05/0.3844, allocations: 56.25 kB / 0.5422 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001118/0.3846, allocations: 73.5 kB / 0.5422 GB, free: 14.69 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001317/0.3859, allocations: 0.7785 MB / 0.543 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.251e-05/0.3859, allocations: 0 / 0.543 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.132e-05/0.386, allocations: 30.81 kB / 0.543 GB, free: 14.08 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.35e-05/0.386, allocations: 17.16 kB / 0.543 GB, free: 14.08 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007712/0.3868, allocations: 386.5 kB / 0.5434 GB, free: 13.9 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003258/0.39, allocations: 1.933 MB / 0.5453 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006379/0.3907, allocations: 297.7 kB / 0.5456 GB, free: 12.17 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004139/0.3911, allocations: 217.6 kB / 0.5458 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.202e-05/0.3911, allocations: 4.781 kB / 0.5458 GB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.839e-05/0.3911, allocations: 46.19 kB / 0.5458 GB, free: 12 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 2.264e-06/0.3911, allocations: 0 / 0.5458 GB, free: 12 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007769/0.3919, allocations: 407.8 kB / 0.5462 GB, free: 11.79 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001312/0.392, allocations: 210.5 kB / 0.5464 GB, free: 11.54 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004187/0.3925, allocations: 367.3 kB / 0.5468 GB, free: 11.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.631e-05/0.3925, allocations: 47.38 kB / 0.5468 GB, free: 11.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002663/0.3928, allocations: 312.8 kB / 0.5471 GB, free: 10.98 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/0.3929, allocations: 130.7 kB / 0.5472 GB, free: 10.86 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001838/0.3931, allocations: 124.3 kB / 0.5474 GB, free: 10.79 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.3933, allocations: 348.7 kB / 0.5477 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003059/0.3936, allocations: 154.7 kB / 0.5478 GB, free: 10.37 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000502/0.3941, allocations: 412 kB / 0.5482 GB, free: 9.988 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005904/0.3947, allocations: 399.3 kB / 0.5486 GB, free: 9.699 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.3947, allocations: 1.406 kB / 0.5486 GB, free: 9.699 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0009316/0.3956, allocations: 0.5119 MB / 0.5491 GB, free: 9.438 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.3956, allocations: 8.531 kB / 0.5491 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.3956, allocations: 2.906 kB / 0.5491 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.225e-05/0.3957, allocations: 7.281 kB / 0.5491 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003356/0.396, allocations: 80.58 kB / 0.5492 GB, free: 9.414 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.036e-05/0.396, allocations: 14.52 kB / 0.5492 GB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000329/0.3963, allocations: 71.17 kB / 0.5493 GB, free: 9.355 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.447e-05/0.3964, allocations: 20.25 kB / 0.5493 GB, free: 9.352 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.0003196/0.3967, allocations: 225.7 kB / 0.5495 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/0.3968, allocations: 42.77 kB / 0.5496 GB, free: 9.141 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001081/0.3969, allocations: 49.56 kB / 0.5496 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.201e-06/0.3969, allocations: 4.5 kB / 0.5496 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.969e-06/0.3969, allocations: 1.125 kB / 0.5496 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.3969, allocations: 1.094 kB / 0.5496 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001902/0.3988, allocations: 1.167 MB / 0.5508 GB, free: 8.184 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.323e-06/0.3989, allocations: 6.297 kB / 0.5508 GB, free: 8.18 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002681/0.3991, allocations: 47.69 kB / 0.5508 GB, free: 8.168 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.195e-05/0.3991, allocations: 8.594 kB / 0.5508 GB, free: 8.164 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.815e-05/0.3992, allocations: 16.86 kB / 0.5508 GB, free: 8.152 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.931e-06/0.3992, allocations: 3.719 kB / 0.5508 GB, free: 8.152 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.09e-06/0.3992, allocations: 2.281 kB / 0.5508 GB, free: 8.152 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008288/0.4, allocations: 0.5786 MB / 0.5514 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001516/0.4002, allocations: 75.05 kB / 0.5515 GB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.022e-05/0.4002, allocations: 17.52 kB / 0.5515 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002168/0.4004, allocations: 15.19 kB / 0.5515 GB, free: 7.668 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.4005, allocations: 41.44 kB / 0.5515 GB, free: 7.641 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.391e-05/0.4006, allocations: 14.09 kB / 0.5516 GB, free: 7.637 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000302/0.4009, allocations: 238.4 kB / 0.5518 GB, free: 7.484 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4009, allocations: 0 / 0.5518 GB, free: 7.484 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000537/0.4014, allocations: 134.1 kB / 0.5519 GB, free: 7.441 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.001214/0.4026, allocations: 1.152 MB / 0.553 GB, free: 6.48 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007433/0.4034, allocations: 342.9 kB / 0.5534 GB, free: 6.336 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.4034, allocations: 1.812 kB / 0.5534 GB, free: 6.336 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002728/0.4036, allocations: 160.6 kB / 0.5535 GB, free: 6.262 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007549/0.4044, allocations: 122.1 kB / 0.5536 GB, free: 6.199 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00601/0.4104, allocations: 3.979 MB / 0.5575 GB, free: 3.301 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003233/0.4107, allocations: 265.2 kB / 0.5578 GB, free: 3.133 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002761/0.411, allocations: 68.55 kB / 0.5578 GB, free: 3.09 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003034/0.4113, allocations: 199.4 kB / 0.558 GB, free: 2.895 MB / 398.1 MB Notification: Performance of SimCode: time 1.193e-06/0.4113, allocations: 4 kB / 0.558 GB, free: 2.891 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03443/0.4457, allocations: 9.335 MB / 0.5672 GB, free: 9.793 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.14/12.58, allocations: 4.062 kB / 0.5672 GB, free: 9.789 MB / 414.1 MB " [Timeout remaining time 647] (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: 15.423076490988024] Failed to read output from testmodel.py, exit status != 0: 12.754866941017099 12.776830693 12.391139236999999 Calling exit ...