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.001145/0.001145, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001112/0.001112, allocations: 193.3 kB / 16.14 MB, free: 6.711 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.158/1.158, allocations: 222.9 MB / 239.8 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 2.927/2.927, allocations: 31.12 MB / 321.1 MB, free: 4.602 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 67.89 kB / 388.3 MB, free: 2.906 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.23/0.2313, allocations: 56.35 MB / 444.7 MB, free: 34.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.005592/0.2369, allocations: 7.767 MB / 452.4 MB, free: 28.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001655/0.2386, allocations: 1.175 MB / 453.6 MB, free: 28.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003049/0.2389, allocations: 26.25 kB / 453.6 MB, free: 28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002393/0.2392, allocations: 106.2 kB / 453.7 MB, free: 27.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001535/0.2393, allocations: 51.12 kB / 453.8 MB, free: 27.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003861/0.2397, allocations: 260.4 kB / 454.1 MB, free: 27.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003692/0.2401, allocations: 0.6728 MB / 454.7 MB, free: 27.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003964/0.2405, allocations: 453 kB / 455.2 MB, free: 27.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001583/0.2407, allocations: 251.6 kB / 455.4 MB, free: 27.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001594/0.2408, allocations: 292.3 kB / 455.7 MB, free: 26.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.931e-05/0.2409, allocations: 53.31 kB / 455.7 MB, free: 26.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.829e-05/0.241, allocations: 61.27 kB / 455.8 MB, free: 26.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.062e-05/0.2411, allocations: 140.7 kB / 455.9 MB, free: 26.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001462/0.2412, allocations: 304.6 kB / 456.2 MB, free: 26.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003595/0.2416, allocations: 0.7436 MB / 457 MB, free: 26.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.2416, allocations: 3.938 kB / 457 MB, free: 26.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.01e-07/0.2416, allocations: 0 / 457 MB, free: 26.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.197e-06/0.2416, allocations: 0 / 457 MB, free: 26.22 MB / 350.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.0009654/0.2426, allocations: 0.8937 MB / 457.9 MB, free: 25.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.433e-05/0.2426, allocations: 8.375 kB / 457.9 MB, free: 25.56 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.334e-05/0.2427, allocations: 115.1 kB / 458 MB, free: 25.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000283/0.243, allocations: 96.84 kB / 458.1 MB, free: 25.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003829/0.2434, allocations: 439.5 kB / 458.5 MB, free: 25.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.99e-05/0.2434, allocations: 61.69 kB / 458.6 MB, free: 25.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.348e-05/0.2435, allocations: 72.34 kB / 458.7 MB, free: 25.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008128/0.2443, allocations: 0.6461 MB / 459.3 MB, free: 24.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.2444, allocations: 1.469 kB / 459.3 MB, free: 24.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.902e-05/0.2444, allocations: 29.97 kB / 459.3 MB, free: 24.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/0.2444, allocations: 16.81 kB / 459.4 MB, free: 24.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005709/0.245, allocations: 380.1 kB / 459.7 MB, free: 24.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002273/0.2473, allocations: 2.277 MB / 462 MB, free: 23.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004682/0.2478, allocations: 316.4 kB / 462.3 MB, free: 22.87 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003373/0.2481, allocations: 229.9 kB / 462.5 MB, free: 22.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.055e-05/0.2481, allocations: 5 kB / 462.5 MB, free: 22.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.47e-05/0.2482, allocations: 46.47 kB / 462.6 MB, free: 22.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.383e-06/0.2482, allocations: 288 / 462.6 MB, free: 22.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.0006025/0.2488, allocations: 398.9 kB / 463 MB, free: 22.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.646e-05/0.2488, allocations: 215.2 kB / 463.2 MB, free: 22.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003243/0.2492, allocations: 365.6 kB / 463.5 MB, free: 22.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.012e-05/0.2492, allocations: 45.64 kB / 463.6 MB, free: 22.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/0.2494, allocations: 312.8 kB / 463.9 MB, free: 21.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7e-05/0.2494, allocations: 116.5 kB / 464 MB, free: 21.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001507/0.2496, allocations: 125.1 kB / 464.1 MB, free: 21.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.256e-05/0.2497, allocations: 354.1 kB / 464.5 MB, free: 21.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002786/0.25, allocations: 152.9 kB / 464.6 MB, free: 21.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003384/0.2503, allocations: 306.9 kB / 464.9 MB, free: 21.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004587/0.2508, allocations: 402.5 kB / 465.3 MB, free: 20.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.2508, allocations: 1.406 kB / 465.3 MB, free: 20.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0007314/0.2515, allocations: 0.5113 MB / 465.8 MB, free: 20.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.2515, allocations: 10.56 kB / 465.8 MB, free: 20.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.2515, allocations: 5.188 kB / 465.8 MB, free: 20.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.2516, allocations: 6.422 kB / 465.9 MB, free: 20.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002763/0.2518, allocations: 87.58 kB / 465.9 MB, free: 20.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.058e-05/0.2519, allocations: 7.844 kB / 465.9 MB, free: 20.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002599/0.2521, allocations: 71.98 kB / 466 MB, free: 20.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.375e-05/0.2522, allocations: 21.81 kB / 466 MB, free: 20.44 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.0001889/0.2524, allocations: 219.9 kB / 466.3 MB, free: 20.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.998e-05/0.2525, allocations: 43.09 kB / 466.3 MB, free: 20.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.488e-05/0.2525, allocations: 50.03 kB / 466.3 MB, free: 20.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.2525, allocations: 5.625 kB / 466.3 MB, free: 20.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.2526, allocations: 3.938 kB / 466.4 MB, free: 20.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.2526, allocations: 7.391 kB / 466.4 MB, free: 20.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001326/0.2539, allocations: 1.238 MB / 467.6 MB, free: 19.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.2539, allocations: 1.844 kB / 467.6 MB, free: 19.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002216/0.2541, allocations: 55.36 kB / 467.7 MB, free: 19.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.2542, allocations: 4.125 kB / 467.7 MB, free: 19.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.34e-05/0.2542, allocations: 13.12 kB / 467.7 MB, free: 19.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.132e-06/0.2542, allocations: 9.078 kB / 467.7 MB, free: 19.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.2542, allocations: 2.125 kB / 467.7 MB, free: 19.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005904/0.2548, allocations: 0.5796 MB / 468.3 MB, free: 18.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.2549, allocations: 148.4 kB / 468.4 MB, free: 18.81 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.65e-05/0.255, allocations: 20.09 kB / 468.4 MB, free: 18.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001968/0.2552, allocations: 18.17 kB / 468.4 MB, free: 18.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.226e-05/0.2553, allocations: 38.61 kB / 468.5 MB, free: 18.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.007e-05/0.2553, allocations: 9.578 kB / 468.5 MB, free: 18.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002173/0.2555, allocations: 237.4 kB / 468.7 MB, free: 18.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.2555, allocations: 0 / 468.7 MB, free: 18.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004128/0.2559, allocations: 142.7 kB / 468.9 MB, free: 18.61 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.0007701/0.2567, allocations: 1.142 MB / 470 MB, free: 17.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005507/0.2573, allocations: 378.8 kB / 470.4 MB, free: 17.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.2573, allocations: 1.312 kB / 470.4 MB, free: 17.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002286/0.2575, allocations: 166.7 kB / 470.5 MB, free: 17.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006145/0.2581, allocations: 116.8 kB / 470.6 MB, free: 17.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004172/0.2623, allocations: 4.227 MB / 474.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002862/0.2626, allocations: 0.8634 MB / 475.7 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002442/0.2629, allocations: 69.45 kB / 475.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002106/0.2631, allocations: 202.2 kB / 476 MB, free: 13.65 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2631, allocations: 4 kB / 476 MB, free: 13.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.873/2.136, allocations: 8.047 MB / 484.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001833/2.137, allocations: 192.3 kB / 484.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.747/3.884, allocations: 0 / 484.2 MB, free: 11.09 MB / 350.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)