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: translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SIR") translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001635/0.001635, allocations: 104.8 kB / 16.27 MB, free: 5.977 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.001753/0.001754, allocations: 189.9 kB / 17.2 MB, free: 5.602 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.572/1.572, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.1683/0.1683, allocations: 31.18 MB / 322.2 MB, free: 304 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 62.09 kB / 389.6 MB, free: 38.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08766/0.08892, allocations: 56.39 MB / 446 MB, free: 3.156 MB / 318.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.007853/0.09681, allocations: 7.225 MB / 453.2 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002278/0.09913, allocations: 1.095 MB / 454.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000514/0.09967, allocations: 23.88 kB / 454.3 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003899/0.1001, allocations: 142.7 kB / 454.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002355/0.1004, allocations: 83.16 kB / 454.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007225/0.1011, allocations: 295.4 kB / 454.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006507/0.1018, allocations: 0.7111 MB / 455.5 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006438/0.1024, allocations: 494.4 kB / 456 MB, free: 9.051 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002921/0.1027, allocations: 286.9 kB / 456.3 MB, free: 8.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003348/0.1031, allocations: 314.5 kB / 456.6 MB, free: 8.461 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001095/0.1032, allocations: 80 kB / 456.7 MB, free: 8.383 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001434/0.1033, allocations: 92 kB / 456.8 MB, free: 8.293 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001528/0.1035, allocations: 167.5 kB / 456.9 MB, free: 8.129 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002651/0.1038, allocations: 354.2 kB / 457.3 MB, free: 7.781 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007519/0.1045, allocations: 0.7635 MB / 458 MB, free: 7.016 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.1045, allocations: 0 / 458 MB, free: 7.016 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1046, allocations: 0 / 458 MB, free: 7.016 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.1046, allocations: 0 / 458 MB, free: 7.016 MB / 334.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.001401/0.106, allocations: 0.9015 MB / 458.9 MB, free: 6.062 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.106, allocations: 8.031 kB / 459 MB, free: 6.055 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003455/0.1064, allocations: 96.06 kB / 459 MB, free: 5.961 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005427/0.1069, allocations: 438.5 kB / 459.5 MB, free: 5.496 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.056e-05/0.107, allocations: 54 kB / 459.5 MB, free: 5.445 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001128/0.1071, allocations: 80 kB / 459.6 MB, free: 5.367 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009996/0.1081, allocations: 0.6461 MB / 460.3 MB, free: 4.688 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/0.1081, allocations: 0 / 460.3 MB, free: 4.688 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.204e-05/0.1082, allocations: 28 kB / 460.3 MB, free: 4.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.915e-05/0.1082, allocations: 20 kB / 460.3 MB, free: 4.641 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006629/0.1089, allocations: 377 kB / 460.7 MB, free: 4.273 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002925/0.1118, allocations: 2.289 MB / 463 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005783/0.1124, allocations: 322.2 kB / 463.3 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000406/0.1128, allocations: 233.2 kB / 463.5 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.966e-05/0.1129, allocations: 8.219 kB / 463.5 MB, free: 1.301 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.802e-05/0.1129, allocations: 47.16 kB / 463.6 MB, free: 1.246 MB / 334.1 MB Notification: Performance of pre-optimization done (n=38): time 2.184e-06/0.1129, allocations: 0 / 463.6 MB, free: 1.246 MB / 334.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007286/0.1137, allocations: 402.5 kB / 463.9 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/0.1138, allocations: 213.9 kB / 464.2 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003915/0.1142, allocations: 365.3 kB / 464.5 MB, free: 236 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.812e-05/0.1142, allocations: 45.7 kB / 464.6 MB, free: 184 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002483/0.1145, allocations: 312.2 kB / 464.9 MB, free: 15.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.198e-05/0.1146, allocations: 118.3 kB / 465 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001738/0.1148, allocations: 114.3 kB / 465.1 MB, free: 15.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.1149, allocations: 358.8 kB / 465.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003/0.1153, allocations: 149.2 kB / 465.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004009/0.1157, allocations: 303.3 kB / 465.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005472/0.1162, allocations: 402.5 kB / 466.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.1162, allocations: 0 / 466.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008448/0.1171, allocations: 0.5099 MB / 466.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.1171, allocations: 12.41 kB / 466.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.1171, allocations: 8 kB / 466.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-05/0.1172, allocations: 8 kB / 466.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003072/0.1175, allocations: 75.84 kB / 466.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.362e-05/0.1175, allocations: 7.984 kB / 466.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002865/0.1178, allocations: 67.36 kB / 467 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.792e-05/0.1178, allocations: 24 kB / 467 MB, free: 13.62 MB / 350.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.0002667/0.1181, allocations: 222.2 kB / 467.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.1182, allocations: 47.47 kB / 467.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.101e-05/0.1183, allocations: 44.14 kB / 467.3 MB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.1183, allocations: 12 kB / 467.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.1183, allocations: 0 / 467.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.1184, allocations: 3.984 kB / 467.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001561/0.1199, allocations: 1.241 MB / 468.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1199, allocations: 0 / 468.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002388/0.1202, allocations: 55.84 kB / 468.6 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.542e-06/0.1202, allocations: 4 kB / 468.6 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.906e-05/0.1202, allocations: 16.19 kB / 468.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.629e-06/0.1203, allocations: 7.938 kB / 468.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.1203, allocations: 4 kB / 468.6 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007056/0.121, allocations: 0.5836 MB / 469.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001373/0.1211, allocations: 144.5 kB / 469.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.298e-05/0.1212, allocations: 15.94 kB / 469.4 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001998/0.1214, allocations: 15.98 kB / 469.4 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.113e-05/0.1215, allocations: 35.95 kB / 469.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.185e-05/0.1215, allocations: 19.94 kB / 469.4 MB, free: 11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002395/0.1217, allocations: 235.2 kB / 469.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1218, allocations: 0 / 469.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004607/0.1222, allocations: 131.4 kB / 469.8 MB, free: 10.64 MB / 350.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.0001387/0.1224, allocations: 130.6 kB / 469.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007427/0.1231, allocations: 402.7 kB / 470.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.1231, allocations: 0 / 470.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002359/0.1234, allocations: 155.8 kB / 470.5 MB, free: 9.973 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006845/0.1241, allocations: 126.2 kB / 470.6 MB, free: 9.852 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001588/0.1257, allocations: 0.9881 MB / 471.6 MB, free: 8.801 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004414/0.1261, allocations: 0.8664 MB / 472.5 MB, free: 7.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001206/0.1263, allocations: 43.44 kB / 472.5 MB, free: 7.867 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1263, allocations: 4 kB / 472.5 MB, free: 7.863 MB / 350.1 MB Notification: Performance of Templates: time 0.00945/0.1357, allocations: 6.161 MB / 478.7 MB, free: 1.727 MB / 350.1 MB make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SIR.makefile (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 & ./BusinessSimulation_dev_BusinessSimulation.Examples.SIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe 2>&1)