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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009165/0.009172, allocations: 103.9 kB / 15.73 MB, free: 6.473 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00189/0.00189, allocations: 196.9 kB / 16.67 MB, free: 6.379 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2738/0.2738, allocations: 31.12 MB / 321.7 MB, free: 4.219 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002195/0.002195, allocations: 61.09 kB / 446.2 MB, free: 30.44 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1172, allocations: 56.38 MB / 0.4908 GB, free: 7.645 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.01162/0.1289, allocations: 7.236 MB / 0.4979 GB, free: 384 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003507/0.1324, allocations: 1.095 MB / 0.4989 GB, free: 15.27 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001219/0.1337, allocations: 19.94 kB / 0.499 GB, free: 15.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008832/0.1346, allocations: 142.6 kB / 0.4991 GB, free: 15.11 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007433/0.1354, allocations: 83.19 kB / 0.4992 GB, free: 15.03 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001384/0.1368, allocations: 299.4 kB / 0.4995 GB, free: 14.74 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001387/0.1382, allocations: 0.7344 MB / 0.5002 GB, free: 14 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001242/0.1395, allocations: 474.5 kB / 0.5006 GB, free: 13.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007626/0.1403, allocations: 302.9 kB / 0.5009 GB, free: 13.22 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007968/0.1411, allocations: 302.5 kB / 0.5012 GB, free: 12.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003448/0.1415, allocations: 84 kB / 0.5013 GB, free: 12.84 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003798/0.1419, allocations: 95.98 kB / 0.5014 GB, free: 12.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003435/0.1422, allocations: 171.5 kB / 0.5016 GB, free: 12.58 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006383/0.1429, allocations: 342.3 kB / 0.5019 GB, free: 12.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001406/0.1443, allocations: 0.7977 MB / 0.5027 GB, free: 11.45 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.1443, allocations: 4 kB / 0.5027 GB, free: 11.45 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1443, allocations: 0 / 0.5027 GB, free: 11.45 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.937e-05/0.1444, allocations: 0 / 0.5027 GB, free: 11.45 MB / 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.002467/0.1469, allocations: 0.9015 MB / 0.5035 GB, free: 10.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.339e-05/0.1469, allocations: 12.03 kB / 0.5036 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002787/0.1472, allocations: 110.7 kB / 0.5037 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006757/0.1479, allocations: 92.06 kB / 0.5037 GB, free: 10.28 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001002/0.1489, allocations: 454.4 kB / 0.5042 GB, free: 9.793 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.938e-05/0.149, allocations: 61.98 kB / 0.5042 GB, free: 9.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000171/0.1492, allocations: 75.98 kB / 0.5043 GB, free: 9.656 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001571/0.1508, allocations: 0.65 MB / 0.5049 GB, free: 8.977 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.937e-05/0.1508, allocations: 0 / 0.5049 GB, free: 8.977 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001021/0.151, allocations: 31.94 kB / 0.505 GB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.751e-05/0.151, allocations: 19.94 kB / 0.505 GB, free: 8.926 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008725/0.1519, allocations: 381 kB / 0.5054 GB, free: 8.551 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003887/0.1558, allocations: 2.246 MB / 0.5076 GB, free: 6.203 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006141/0.1564, allocations: 320.6 kB / 0.5079 GB, free: 5.859 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004245/0.1568, allocations: 231.6 kB / 0.5081 GB, free: 5.625 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.743e-05/0.1569, allocations: 8.219 kB / 0.5081 GB, free: 5.617 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.817e-05/0.1569, allocations: 42.78 kB / 0.5081 GB, free: 5.566 MB / 382.1 MB Notification: Performance of pre-optimization done (n=38): time 3.165e-06/0.1569, allocations: 7.984 kB / 0.5081 GB, free: 5.559 MB / 382.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007786/0.1577, allocations: 398.6 kB / 0.5085 GB, free: 5.164 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001355/0.1579, allocations: 209.6 kB / 0.5087 GB, free: 4.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005441/0.1584, allocations: 365.4 kB / 0.5091 GB, free: 4.547 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.308e-05/0.1585, allocations: 49.69 kB / 0.5091 GB, free: 4.492 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002993/0.1588, allocations: 311.8 kB / 0.5094 GB, free: 4.184 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/0.159, allocations: 110.5 kB / 0.5095 GB, free: 4.074 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002529/0.1592, allocations: 126.5 kB / 0.5096 GB, free: 3.945 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.1594, allocations: 354.8 kB / 0.51 GB, free: 3.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004554/0.1599, allocations: 153.2 kB / 0.5101 GB, free: 3.441 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000673/0.1606, allocations: 295.4 kB / 0.5104 GB, free: 3.098 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008883/0.1615, allocations: 414.1 kB / 0.5108 GB, free: 2.645 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.289e-06/0.1615, allocations: 0 / 0.5108 GB, free: 2.645 MB / 382.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001375/0.1629, allocations: 0.5024 MB / 0.5113 GB, free: 2.137 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.969e-05/0.1629, allocations: 11.94 kB / 0.5113 GB, free: 2.125 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.594e-05/0.1629, allocations: 4 kB / 0.5113 GB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.029e-05/0.163, allocations: 12 kB / 0.5113 GB, free: 2.109 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004503/0.1634, allocations: 79.83 kB / 0.5114 GB, free: 2.031 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.847e-05/0.1635, allocations: 11.94 kB / 0.5114 GB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004833/0.164, allocations: 67.5 kB / 0.5115 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.168e-05/0.1641, allocations: 28 kB / 0.5115 GB, free: 1.926 MB / 382.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.0004601/0.1645, allocations: 218.1 kB / 0.5117 GB, free: 1.703 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001735/0.1647, allocations: 47.5 kB / 0.5117 GB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001373/0.1649, allocations: 52.14 kB / 0.5118 GB, free: 1.605 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.703e-05/0.1649, allocations: 4 kB / 0.5118 GB, free: 1.602 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.367e-05/0.1649, allocations: 3.984 kB / 0.5118 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.1649, allocations: 0 / 0.5118 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003043/0.168, allocations: 1.241 MB / 0.513 GB, free: 280 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.938e-06/0.168, allocations: 4 kB / 0.513 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003615/0.1684, allocations: 48.17 kB / 0.5131 GB, free: 228 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.764e-05/0.1684, allocations: 11.98 kB / 0.5131 GB, free: 216 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.875e-05/0.1685, allocations: 11.94 kB / 0.5131 GB, free: 204 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.161e-05/0.1685, allocations: 4 kB / 0.5131 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-05/0.1685, allocations: 7.938 kB / 0.5131 GB, free: 192 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001182/0.1697, allocations: 0.5766 MB / 0.5137 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003044/0.17, allocations: 152.5 kB / 0.5138 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.531e-05/0.1701, allocations: 11.94 kB / 0.5138 GB, free: 15.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003172/0.1705, allocations: 19.98 kB / 0.5138 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/0.1706, allocations: 35.91 kB / 0.5139 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.209e-05/0.1707, allocations: 12 kB / 0.5139 GB, free: 15.32 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004354/0.1711, allocations: 239.2 kB / 0.5141 GB, free: 15.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1711, allocations: 0 / 0.5141 GB, free: 15.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000792/0.1719, allocations: 135.4 kB / 0.5142 GB, free: 14.96 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.001611/0.1735, allocations: 1.129 MB / 0.5153 GB, free: 13.78 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001229/0.1748, allocations: 382.8 kB / 0.5157 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/0.1748, allocations: 0 / 0.5157 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004025/0.1752, allocations: 165.8 kB / 0.5159 GB, free: 13.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001017/0.1763, allocations: 128.4 kB / 0.516 GB, free: 13.13 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00779/0.1841, allocations: 3.947 MB / 0.5198 GB, free: 8.957 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007489/0.1848, allocations: 0.8664 MB / 0.5207 GB, free: 8.066 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003532/0.1852, allocations: 64.36 kB / 0.5207 GB, free: 8 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003819/0.1856, allocations: 195.4 kB / 0.5209 GB, free: 7.809 MB / 398.1 MB Notification: Performance of SimCode: time 6.82e-07/0.1856, allocations: 0 / 0.5209 GB, free: 7.809 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03156/0.2172, allocations: 8.55 MB / 0.5293 GB, free: 15.37 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.286/8.503, allocations: 8.109 kB / 0.5293 GB, free: 15.37 MB / 414.1 MB (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 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_SIR.fmu > BusinessSimulation_BusinessSimulation.Examples.SIR.pipe 2>&1)