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.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-main/package.mo", uses=false) Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007138/0.007138, allocations: 102.8 kB / 15.74 MB, free: 6.043 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.001747/0.001747, allocations: 202.6 kB / 16.68 MB, free: 5.965 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2765/0.2765, allocations: 31.16 MB / 321.7 MB, free: 4.363 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 61.34 kB / 446.3 MB, free: 30.48 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1059, allocations: 56.37 MB / 0.4909 GB, free: 7.695 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.008395/0.1144, allocations: 7.234 MB / 0.4979 GB, free: 440 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002274/0.1167, allocations: 1.102 MB / 0.499 GB, free: 15.32 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000448/0.1171, allocations: 23.88 kB / 0.499 GB, free: 15.3 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003795/0.1176, allocations: 130.7 kB / 0.4991 GB, free: 15.17 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002686/0.1178, allocations: 87.17 kB / 0.4992 GB, free: 15.09 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000741/0.1186, allocations: 302.8 kB / 0.4995 GB, free: 14.79 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008049/0.1194, allocations: 0.7189 MB / 0.5002 GB, free: 14.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007106/0.1201, allocations: 478.4 kB / 0.5007 GB, free: 13.58 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000357/0.1205, allocations: 294.9 kB / 0.501 GB, free: 13.29 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003536/0.1209, allocations: 306.5 kB / 0.5013 GB, free: 12.99 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001318/0.121, allocations: 87.94 kB / 0.5013 GB, free: 12.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001459/0.1212, allocations: 88 kB / 0.5014 GB, free: 12.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001711/0.1213, allocations: 183.4 kB / 0.5016 GB, free: 12.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003087/0.1216, allocations: 342.3 kB / 0.5019 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008871/0.1225, allocations: 0.8016 MB / 0.5027 GB, free: 11.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.1226, allocations: 0 / 0.5027 GB, free: 11.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1226, allocations: 0 / 0.5027 GB, free: 11.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.537e-05/0.1226, allocations: 4 kB / 0.5027 GB, free: 11.5 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.001494/0.1241, allocations: 0.9125 MB / 0.5036 GB, free: 10.54 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/0.1241, allocations: 8.031 kB / 0.5036 GB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001318/0.1243, allocations: 114.7 kB / 0.5037 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003398/0.1246, allocations: 100.4 kB / 0.5038 GB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006462/0.1253, allocations: 454.5 kB / 0.5042 GB, free: 9.824 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.053e-05/0.1253, allocations: 62 kB / 0.5043 GB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001013/0.1255, allocations: 76 kB / 0.5044 GB, free: 9.688 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.1265, allocations: 0.6461 MB / 0.505 GB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.1266, allocations: 4 kB / 0.505 GB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.34e-05/0.1266, allocations: 28 kB / 0.505 GB, free: 8.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.751e-05/0.1266, allocations: 16 kB / 0.5051 GB, free: 8.965 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007175/0.1274, allocations: 385 kB / 0.5054 GB, free: 8.586 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003166/0.1305, allocations: 2.258 MB / 0.5076 GB, free: 6.227 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000621/0.1312, allocations: 330.9 kB / 0.5079 GB, free: 5.875 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004241/0.1316, allocations: 235.2 kB / 0.5082 GB, free: 5.637 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.555e-05/0.1317, allocations: 4.281 kB / 0.5082 GB, free: 5.633 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.62e-05/0.1317, allocations: 42.78 kB / 0.5082 GB, free: 5.582 MB / 382.1 MB Notification: Performance of pre-optimization done (n=38): time 2.224e-06/0.1317, allocations: 0 / 0.5082 GB, free: 5.582 MB / 382.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007705/0.1325, allocations: 399 kB / 0.5086 GB, free: 5.188 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001292/0.1326, allocations: 213.9 kB / 0.5088 GB, free: 4.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004433/0.1331, allocations: 369.5 kB / 0.5091 GB, free: 4.562 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.54e-05/0.1332, allocations: 41.7 kB / 0.5092 GB, free: 4.516 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002505/0.1334, allocations: 320.7 kB / 0.5095 GB, free: 4.199 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001112/0.1335, allocations: 119 kB / 0.5096 GB, free: 4.082 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001761/0.1337, allocations: 118.3 kB / 0.5097 GB, free: 3.961 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.1339, allocations: 354.8 kB / 0.5101 GB, free: 3.605 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003084/0.1342, allocations: 149.2 kB / 0.5102 GB, free: 3.461 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004329/0.1347, allocations: 307.2 kB / 0.5105 GB, free: 3.105 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006119/0.1353, allocations: 402.3 kB / 0.5109 GB, free: 2.664 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.1353, allocations: 4 kB / 0.5109 GB, free: 2.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0009/0.1362, allocations: 0.5141 MB / 0.5114 GB, free: 2.141 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.1362, allocations: 8.406 kB / 0.5114 GB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.1362, allocations: 7.938 kB / 0.5114 GB, free: 2.125 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.1e-05/0.1363, allocations: 12 kB / 0.5114 GB, free: 2.113 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003233/0.1366, allocations: 79.83 kB / 0.5115 GB, free: 2.035 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.285e-05/0.1366, allocations: 8 kB / 0.5115 GB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003063/0.1369, allocations: 67.55 kB / 0.5116 GB, free: 1.961 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.774e-05/0.137, allocations: 20 kB / 0.5116 GB, free: 1.941 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.0002844/0.1373, allocations: 222.2 kB / 0.5118 GB, free: 1.715 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.1374, allocations: 51.66 kB / 0.5118 GB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.921e-05/0.1375, allocations: 48.14 kB / 0.5119 GB, free: 1.617 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.1375, allocations: 4 kB / 0.5119 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.1375, allocations: 0 / 0.5119 GB, free: 1.613 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.332e-05/0.1375, allocations: 15.92 kB / 0.5119 GB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001696/0.1392, allocations: 1.238 MB / 0.5131 GB, free: 284 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.115e-06/0.1393, allocations: 0 / 0.5131 GB, free: 284 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002512/0.1395, allocations: 51.91 kB / 0.5132 GB, free: 232 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.281e-06/0.1395, allocations: 7.938 kB / 0.5132 GB, free: 224 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.912e-05/0.1396, allocations: 15.94 kB / 0.5132 GB, free: 208 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.99e-06/0.1396, allocations: 3.984 kB / 0.5132 GB, free: 204 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.175e-06/0.1396, allocations: 4.25 kB / 0.5132 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008215/0.1404, allocations: 0.5884 MB / 0.5138 GB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001679/0.1406, allocations: 148.7 kB / 0.5139 GB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.715e-05/0.1407, allocations: 23.92 kB / 0.5139 GB, free: 15.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002247/0.1409, allocations: 12 kB / 0.5139 GB, free: 15.37 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/0.141, allocations: 31.95 kB / 0.514 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.953e-05/0.1411, allocations: 12 kB / 0.514 GB, free: 15.32 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003265/0.1414, allocations: 243.2 kB / 0.5142 GB, free: 15.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1414, allocations: 0 / 0.5142 GB, free: 15.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004876/0.1419, allocations: 135.6 kB / 0.5143 GB, free: 14.95 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.001129/0.143, allocations: 1.137 MB / 0.5155 GB, free: 13.77 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000716/0.1438, allocations: 382.8 kB / 0.5158 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.1438, allocations: 0 / 0.5158 GB, free: 13.39 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002579/0.144, allocations: 164.5 kB / 0.516 GB, free: 13.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006743/0.1447, allocations: 126.2 kB / 0.5161 GB, free: 13.12 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005529/0.1503, allocations: 3.966 MB / 0.52 GB, free: 8.922 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005714/0.1509, allocations: 0.8702 MB / 0.5208 GB, free: 8.027 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002735/0.1512, allocations: 72.31 kB / 0.5209 GB, free: 7.953 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002884/0.1515, allocations: 195.4 kB / 0.5211 GB, free: 7.762 MB / 398.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1515, allocations: 0 / 0.5211 GB, free: 7.762 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03526/0.1867, allocations: 8.54 MB / 0.5294 GB, free: 15.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.516/8.703, allocations: 0 / 0.5294 GB, free: 15.34 MB / 414.1 MB (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 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_SIR.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe 2>&1)