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.00127/0.00127, allocations: 117.4 kB / 17.17 MB, free: 5.977 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.001513/0.001513, allocations: 214.3 kB / 20.13 MB, free: 3.035 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.5/1.5, allocations: 230.6 MB / 253.5 MB, free: 15.08 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.1906/0.1906, allocations: 31.56 MB / 341.1 MB, free: 9.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 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.001999/0.001999, allocations: 64.34 kB / 476.4 MB, free: 27.89 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1179, allocations: 60.68 MB / 0.5245 GB, free: 4.059 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.009147/0.1271, allocations: 7.341 MB / 0.5316 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002524/0.1296, allocations: 1.102 MB / 0.5327 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005327/0.1301, allocations: 27.81 kB / 0.5327 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004337/0.1306, allocations: 142.7 kB / 0.5329 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002562/0.1308, allocations: 87.17 kB / 0.533 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007712/0.1316, allocations: 299.3 kB / 0.5332 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007693/0.1324, allocations: 0.7189 MB / 0.5339 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005798/0.1329, allocations: 326.7 kB / 0.5343 GB, free: 9.973 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003317/0.1333, allocations: 306.9 kB / 0.5345 GB, free: 9.672 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003402/0.1336, allocations: 306.5 kB / 0.5348 GB, free: 9.371 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001087/0.1337, allocations: 84 kB / 0.5349 GB, free: 9.289 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001322/0.1339, allocations: 92 kB / 0.535 GB, free: 9.199 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001648/0.134, allocations: 179.4 kB / 0.5352 GB, free: 9.023 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002899/0.1343, allocations: 346.2 kB / 0.5355 GB, free: 8.684 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009071/0.1352, allocations: 0.7976 MB / 0.5363 GB, free: 7.883 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1352, allocations: 0 / 0.5363 GB, free: 7.883 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1352, allocations: 4 kB / 0.5363 GB, free: 7.879 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.1352, allocations: 0 / 0.5363 GB, free: 7.879 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.001532/0.1368, allocations: 0.9124 MB / 0.5372 GB, free: 6.918 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.843e-05/0.1368, allocations: 12.03 kB / 0.5372 GB, free: 6.906 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.697e-05/0.1368, allocations: 18.19 kB / 0.5372 GB, free: 6.887 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001355/0.137, allocations: 110.7 kB / 0.5373 GB, free: 6.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003518/0.1373, allocations: 108.4 kB / 0.5374 GB, free: 6.664 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006207/0.1379, allocations: 450.5 kB / 0.5378 GB, free: 6.188 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.103e-05/0.138, allocations: 61.94 kB / 0.5379 GB, free: 6.129 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.1381, allocations: 76 kB / 0.538 GB, free: 6.055 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001048/0.1392, allocations: 0.6461 MB / 0.5386 GB, free: 5.375 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/0.1392, allocations: 0 / 0.5386 GB, free: 5.375 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.834e-05/0.1392, allocations: 32 kB / 0.5386 GB, free: 5.344 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.706e-05/0.1392, allocations: 16 kB / 0.5387 GB, free: 5.328 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007121/0.14, allocations: 381 kB / 0.539 GB, free: 4.957 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003105/0.1431, allocations: 2.255 MB / 0.5412 GB, free: 2.602 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006196/0.1437, allocations: 308.7 kB / 0.5415 GB, free: 2.273 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000413/0.1441, allocations: 211 kB / 0.5417 GB, free: 2.059 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.227e-05/0.1441, allocations: 8.281 kB / 0.5417 GB, free: 2.051 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.038e-05/0.1442, allocations: 46.77 kB / 0.5418 GB, free: 1.996 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 1.764e-06/0.1442, allocations: 0 / 0.5418 GB, free: 1.996 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007851/0.1449, allocations: 402.9 kB / 0.5422 GB, free: 1.598 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001475/0.1451, allocations: 213.6 kB / 0.5424 GB, free: 1.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004168/0.1455, allocations: 365.5 kB / 0.5427 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.266e-05/0.1456, allocations: 41.7 kB / 0.5427 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002538/0.1458, allocations: 321.1 kB / 0.5431 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000108/0.1459, allocations: 127 kB / 0.5432 GB, free: 496 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001867/0.1461, allocations: 122.3 kB / 0.5433 GB, free: 368 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001764/0.1463, allocations: 354.7 kB / 0.5436 GB, free: 4 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000389/0.1467, allocations: 157.2 kB / 0.5438 GB, free: 15.85 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004625/0.1471, allocations: 303.3 kB / 0.5441 GB, free: 15.5 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005984/0.1477, allocations: 398.5 kB / 0.5444 GB, free: 15.06 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.725e-06/0.1477, allocations: 4 kB / 0.5445 GB, free: 15.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008916/0.1486, allocations: 0.5102 MB / 0.5449 GB, free: 14.54 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.1487, allocations: 15.92 kB / 0.545 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.1487, allocations: 4 kB / 0.545 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.1487, allocations: 4 kB / 0.545 GB, free: 14.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003078/0.149, allocations: 79.84 kB / 0.545 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.325e-05/0.149, allocations: 7.984 kB / 0.5451 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002947/0.1493, allocations: 75.97 kB / 0.5451 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.908e-05/0.1493, allocations: 20 kB / 0.5451 GB, free: 14.33 MB / 414.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.0002693/0.1496, allocations: 222.3 kB / 0.5454 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.1497, allocations: 43.7 kB / 0.5454 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001041/0.1498, allocations: 44.14 kB / 0.5454 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.1498, allocations: 4 kB / 0.5454 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.1498, allocations: 4 kB / 0.5455 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.1498, allocations: 3.984 kB / 0.5455 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001683/0.1515, allocations: 1.241 MB / 0.5467 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.1515, allocations: 4.25 kB / 0.5467 GB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002474/0.1518, allocations: 55.91 kB / 0.5467 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.035e-06/0.1518, allocations: 7.938 kB / 0.5467 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.965e-05/0.1518, allocations: 12 kB / 0.5467 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.723e-06/0.1518, allocations: 7.938 kB / 0.5468 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.1518, allocations: 0 / 0.5468 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000832/0.1526, allocations: 0.5804 MB / 0.5473 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001817/0.1528, allocations: 152.8 kB / 0.5475 GB, free: 11.81 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.353e-05/0.1529, allocations: 15.92 kB / 0.5475 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001938/0.1531, allocations: 16 kB / 0.5475 GB, free: 11.78 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001081/0.1532, allocations: 35.95 kB / 0.5475 GB, free: 11.74 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.1532, allocations: 8 kB / 0.5475 GB, free: 11.73 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000295/0.1535, allocations: 239.2 kB / 0.5478 GB, free: 11.5 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1535, allocations: 0 / 0.5478 GB, free: 11.5 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005016/0.154, allocations: 147.5 kB / 0.5479 GB, free: 11.36 MB / 414.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.1552, allocations: 1.144 MB / 0.549 GB, free: 10.17 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006736/0.1559, allocations: 351 kB / 0.5494 GB, free: 9.828 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1559, allocations: 0.9375 kB / 0.5494 GB, free: 9.828 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002612/0.1562, allocations: 159.8 kB / 0.5495 GB, free: 9.672 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006631/0.1568, allocations: 133.5 kB / 0.5496 GB, free: 9.555 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005515/0.1623, allocations: 3.964 MB / 0.5535 GB, free: 5.355 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000565/0.1629, allocations: 0.8702 MB / 0.5544 GB, free: 4.457 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002545/0.1632, allocations: 72.33 kB / 0.5544 GB, free: 4.387 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002904/0.1635, allocations: 195.4 kB / 0.5546 GB, free: 4.195 MB / 414.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1635, allocations: 0 / 0.5546 GB, free: 4.195 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02945/0.1929, allocations: 8.604 MB / 0.563 GB, free: 11.75 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.716/8.909, allocations: 18.53 kB / 0.563 GB, free: 11.73 MB / 430.1 MB " [Timeout remaining time 651] (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: 11.819089732016437] Failed to read output from testmodel.py, exit status != 0: 9.040169591025915 9.061445027 8.922096202 Calling exit ...