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.00112/0.00112, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001099/0.001099, allocations: 193 kB / 16.25 MB, free: 6.633 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.302/1.302, allocations: 222.9 MB / 239.9 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2561/0.2561, allocations: 31.12 MB / 321.2 MB, free: 4.586 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 71.88 kB / 388.5 MB, free: 2.812 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2176/0.2189, allocations: 56.35 MB / 444.9 MB, free: 34.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.006345/0.2253, allocations: 7.757 MB / 452.6 MB, free: 28.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00183/0.2271, allocations: 1.169 MB / 453.8 MB, free: 28.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003346/0.2275, allocations: 26.31 kB / 453.8 MB, free: 28.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003092/0.2278, allocations: 113.8 kB / 453.9 MB, free: 28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002012/0.228, allocations: 56.41 kB / 454 MB, free: 27.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00052/0.2285, allocations: 253.6 kB / 454.2 MB, free: 27.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004613/0.229, allocations: 0.722 MB / 454.9 MB, free: 27.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004751/0.2295, allocations: 478.4 kB / 455.4 MB, free: 27.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001948/0.2297, allocations: 295.4 kB / 455.7 MB, free: 26.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002134/0.2299, allocations: 311.6 kB / 456 MB, free: 26.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.477e-05/0.23, allocations: 84.66 kB / 456.1 MB, free: 26.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000102/0.2301, allocations: 88.88 kB / 456.2 MB, free: 26.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.718e-05/0.2302, allocations: 169.1 kB / 456.3 MB, free: 26.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001631/0.2304, allocations: 351 kB / 456.7 MB, free: 26.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004598/0.2309, allocations: 0.7707 MB / 457.5 MB, free: 26.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.2309, allocations: 5.469 kB / 457.5 MB, free: 26.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2309, allocations: 0 / 457.5 MB, free: 26.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.829e-06/0.2309, allocations: 0 / 457.5 MB, free: 26.07 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.001134/0.232, allocations: 0.8978 MB / 458.4 MB, free: 25.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.2321, allocations: 13.38 kB / 458.4 MB, free: 25.39 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.031e-05/0.2322, allocations: 114.9 kB / 458.5 MB, free: 25.31 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003101/0.2325, allocations: 92.34 kB / 458.6 MB, free: 25.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004255/0.2329, allocations: 431.9 kB / 459 MB, free: 24.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.379e-05/0.233, allocations: 61.56 kB / 459.1 MB, free: 24.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.461e-05/0.2331, allocations: 73.84 kB / 459.1 MB, free: 24.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009094/0.234, allocations: 0.6454 MB / 459.8 MB, free: 24.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.234, allocations: 0 / 459.8 MB, free: 24.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.562e-05/0.2341, allocations: 32.09 kB / 459.8 MB, free: 24.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/0.2341, allocations: 16.55 kB / 459.8 MB, free: 24.53 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006095/0.2347, allocations: 381.1 kB / 460.2 MB, free: 24.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002425/0.2371, allocations: 2.286 MB / 462.5 MB, free: 22.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005115/0.2376, allocations: 325.3 kB / 462.8 MB, free: 22.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003583/0.238, allocations: 229.6 kB / 463 MB, free: 22.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.832e-05/0.2381, allocations: 4.844 kB / 463 MB, free: 22.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.857e-05/0.2381, allocations: 46.47 kB / 463.1 MB, free: 22.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.644e-06/0.2381, allocations: 0 / 463.1 MB, free: 22.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.000667/0.2388, allocations: 396.9 kB / 463.5 MB, free: 22.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.432e-05/0.2388, allocations: 211.1 kB / 463.7 MB, free: 22.13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003484/0.2392, allocations: 369.6 kB / 464 MB, free: 21.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.978e-05/0.2392, allocations: 40.92 kB / 464.1 MB, free: 21.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001602/0.2394, allocations: 317.4 kB / 464.4 MB, free: 21.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.15e-05/0.2395, allocations: 111.8 kB / 464.5 MB, free: 21.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000168/0.2396, allocations: 125 kB / 464.6 MB, free: 21.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.005e-05/0.2397, allocations: 350.7 kB / 465 MB, free: 21.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002887/0.24, allocations: 157.4 kB / 465.1 MB, free: 21.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000353/0.2404, allocations: 298.1 kB / 465.4 MB, free: 20.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004737/0.2408, allocations: 406 kB / 465.8 MB, free: 20.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.2409, allocations: 5.781 kB / 465.8 MB, free: 20.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.000785/0.2416, allocations: 0.5004 MB / 466.3 MB, free: 20.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.2417, allocations: 11.88 kB / 466.3 MB, free: 20.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.2417, allocations: 3.312 kB / 466.3 MB, free: 20.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.2417, allocations: 10.12 kB / 466.3 MB, free: 20.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002998/0.242, allocations: 84.83 kB / 466.4 MB, free: 20.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/0.242, allocations: 10.52 kB / 466.4 MB, free: 20.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002719/0.2423, allocations: 65.23 kB / 466.5 MB, free: 20.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.814e-05/0.2424, allocations: 21.53 kB / 466.5 MB, free: 20.29 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.0002047/0.2426, allocations: 223.6 kB / 466.7 MB, free: 20.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.235e-05/0.2427, allocations: 42.69 kB / 466.8 MB, free: 20.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.78e-05/0.2428, allocations: 51.05 kB / 466.8 MB, free: 20.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.2428, allocations: 4 kB / 466.8 MB, free: 20.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.2428, allocations: 1.031 kB / 466.8 MB, free: 20.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.2428, allocations: 2.672 kB / 466.8 MB, free: 20.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001385/0.2442, allocations: 1.242 MB / 468.1 MB, free: 19.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.2442, allocations: 5.984 kB / 468.1 MB, free: 19.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002427/0.2444, allocations: 47.33 kB / 468.1 MB, free: 19.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.2445, allocations: 7.625 kB / 468.1 MB, free: 19.19 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.723e-05/0.2445, allocations: 17.88 kB / 468.1 MB, free: 19.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.019e-06/0.2445, allocations: 8.078 kB / 468.1 MB, free: 19.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.2445, allocations: 3.516 kB / 468.1 MB, free: 19.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006297/0.2451, allocations: 0.5796 MB / 468.7 MB, free: 18.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001186/0.2453, allocations: 144.4 kB / 468.9 MB, free: 18.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.307e-05/0.2453, allocations: 19.12 kB / 468.9 MB, free: 18.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002086/0.2455, allocations: 18.95 kB / 468.9 MB, free: 18.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.937e-05/0.2456, allocations: 36.83 kB / 468.9 MB, free: 18.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.016e-05/0.2457, allocations: 18.12 kB / 469 MB, free: 18.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002307/0.2459, allocations: 237.2 kB / 469.2 MB, free: 18.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2459, allocations: 1.281 kB / 469.2 MB, free: 18.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004337/0.2464, allocations: 133.3 kB / 469.3 MB, free: 18.46 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.0007707/0.2471, allocations: 1.14 MB / 470.5 MB, free: 17.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006739/0.2478, allocations: 404.1 kB / 470.9 MB, free: 17.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.2478, allocations: 1.125 kB / 470.9 MB, free: 17.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002298/0.2481, allocations: 164.3 kB / 471 MB, free: 17.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006571/0.2487, allocations: 127.9 kB / 471.1 MB, free: 17.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00443/0.2532, allocations: 4.233 MB / 475.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003036/0.2535, allocations: 0.8644 MB / 476.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002563/0.2538, allocations: 62.27 kB / 476.3 MB, free: 13.63 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002244/0.254, allocations: 197 kB / 476.5 MB, free: 13.49 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.254, allocations: 3.938 kB / 476.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.314/0.568, allocations: 8.268 MB / 484.8 MB, free: 11.04 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001893/0.5683, allocations: 192.8 kB / 485 MB, free: 10.78 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.031/2.6, allocations: 1.188 kB / 485 MB, free: 10.78 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)