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.001182/0.001182, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001241/0.001241, allocations: 194.7 kB / 16.14 MB, free: 6.648 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.187/1.187, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2381/0.2381, allocations: 31.17 MB / 321.1 MB, free: 4.793 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 55.91 kB / 388.4 MB, free: 3.062 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2001/0.2013, allocations: 56.36 MB / 444.7 MB, free: 34.49 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.005393/0.2067, allocations: 7.76 MB / 452.5 MB, free: 28.92 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001935/0.2086, allocations: 1.185 MB / 453.7 MB, free: 28.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003676/0.209, allocations: 30.28 kB / 453.7 MB, free: 28.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003319/0.2094, allocations: 109.1 kB / 453.8 MB, free: 27.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001803/0.2096, allocations: 56.66 kB / 453.9 MB, free: 27.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004565/0.21, allocations: 245 kB / 454.1 MB, free: 27.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004045/0.2104, allocations: 0.6768 MB / 454.8 MB, free: 27.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004216/0.2109, allocations: 449.7 kB / 455.2 MB, free: 27.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001703/0.211, allocations: 255.6 kB / 455.5 MB, free: 27.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001815/0.2112, allocations: 284.8 kB / 455.7 MB, free: 26.92 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.169e-05/0.2113, allocations: 49.19 kB / 455.8 MB, free: 26.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.231e-05/0.2114, allocations: 58.83 kB / 455.9 MB, free: 26.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.914e-05/0.2115, allocations: 149.3 kB / 456 MB, free: 26.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00015/0.2117, allocations: 308.4 kB / 456.3 MB, free: 26.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003987/0.2121, allocations: 0.7381 MB / 457 MB, free: 26.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2121, allocations: 0 / 457 MB, free: 26.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2121, allocations: 0 / 457 MB, free: 26.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.749e-06/0.2121, allocations: 0 / 457 MB, free: 26.27 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.00105/0.2131, allocations: 0.9075 MB / 457.9 MB, free: 25.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.2132, allocations: 9.906 kB / 458 MB, free: 25.6 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.855e-05/0.2133, allocations: 112.7 kB / 458.1 MB, free: 25.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002943/0.2136, allocations: 95.86 kB / 458.2 MB, free: 25.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003978/0.214, allocations: 431.8 kB / 458.6 MB, free: 25.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.204e-05/0.214, allocations: 56.5 kB / 458.6 MB, free: 25.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.067e-05/0.2141, allocations: 78.16 kB / 458.7 MB, free: 25.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008219/0.215, allocations: 0.6444 MB / 459.4 MB, free: 24.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.215, allocations: 0 / 459.4 MB, free: 24.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.418e-05/0.215, allocations: 31.84 kB / 459.4 MB, free: 24.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.2151, allocations: 16.25 kB / 459.4 MB, free: 24.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006051/0.2157, allocations: 382.9 kB / 459.8 MB, free: 24.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00229/0.218, allocations: 2.274 MB / 462.1 MB, free: 23.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004952/0.2185, allocations: 327.5 kB / 462.4 MB, free: 22.92 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003466/0.2188, allocations: 226 kB / 462.6 MB, free: 22.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.094e-05/0.2189, allocations: 5.531 kB / 462.6 MB, free: 22.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.833e-05/0.2189, allocations: 46.31 kB / 462.6 MB, free: 22.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.483e-06/0.2189, allocations: 0 / 462.6 MB, free: 22.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.0006337/0.2195, allocations: 400.8 kB / 463 MB, free: 22.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.831e-05/0.2196, allocations: 216 kB / 463.2 MB, free: 22.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000324/0.2199, allocations: 360.6 kB / 463.6 MB, free: 22.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.864e-05/0.22, allocations: 46.47 kB / 463.6 MB, free: 22.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001378/0.2201, allocations: 315.8 kB / 464 MB, free: 21.85 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.454e-05/0.2202, allocations: 112.7 kB / 464.1 MB, free: 21.76 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001464/0.2203, allocations: 124.1 kB / 464.2 MB, free: 21.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.032e-05/0.2204, allocations: 353.9 kB / 464.5 MB, free: 21.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002741/0.2207, allocations: 157.4 kB / 464.7 MB, free: 21.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003238/0.221, allocations: 303.6 kB / 465 MB, free: 21.08 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004561/0.2215, allocations: 401.6 kB / 465.4 MB, free: 20.8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.2215, allocations: 1.219 kB / 465.4 MB, free: 20.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0007201/0.2222, allocations: 0.5094 MB / 465.9 MB, free: 20.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.2222, allocations: 15.16 kB / 465.9 MB, free: 20.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.2223, allocations: 2.688 kB / 465.9 MB, free: 20.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.2223, allocations: 7.703 kB / 465.9 MB, free: 20.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000278/0.2226, allocations: 78.66 kB / 466 MB, free: 20.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.2226, allocations: 7.422 kB / 466 MB, free: 20.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002593/0.2228, allocations: 70.17 kB / 466.1 MB, free: 20.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.428e-05/0.2229, allocations: 24.47 kB / 466.1 MB, free: 20.5 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.0001901/0.2231, allocations: 236.1 kB / 466.3 MB, free: 20.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.755e-05/0.2232, allocations: 41.75 kB / 466.4 MB, free: 20.28 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.983e-05/0.2233, allocations: 47.53 kB / 466.4 MB, free: 20.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.2233, allocations: 3.656 kB / 466.4 MB, free: 20.24 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/0.2233, allocations: 1.844 kB / 466.4 MB, free: 20.24 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.2233, allocations: 3.516 kB / 466.4 MB, free: 20.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001286/0.2246, allocations: 1.241 MB / 467.6 MB, free: 19.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.2246, allocations: 3.641 kB / 467.7 MB, free: 19.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002258/0.2248, allocations: 49.69 kB / 467.7 MB, free: 19.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.2248, allocations: 8.438 kB / 467.7 MB, free: 19.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.492e-05/0.2249, allocations: 14.09 kB / 467.7 MB, free: 19.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.2249, allocations: 4.125 kB / 467.7 MB, free: 19.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.2249, allocations: 2.312 kB / 467.7 MB, free: 19.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006107/0.2255, allocations: 0.5841 MB / 468.3 MB, free: 19 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001092/0.2256, allocations: 145 kB / 468.5 MB, free: 18.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.929e-05/0.2257, allocations: 14.66 kB / 468.5 MB, free: 18.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001925/0.2259, allocations: 13.47 kB / 468.5 MB, free: 18.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.38e-05/0.226, allocations: 51.78 kB / 468.5 MB, free: 18.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.967e-05/0.226, allocations: 13.06 kB / 468.5 MB, free: 18.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002182/0.2262, allocations: 241.1 kB / 468.8 MB, free: 18.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2262, allocations: 0.9688 kB / 468.8 MB, free: 18.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004167/0.2266, allocations: 134.4 kB / 468.9 MB, free: 18.66 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.0007358/0.2274, allocations: 1.148 MB / 470.1 MB, free: 17.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005541/0.2279, allocations: 377.5 kB / 470.4 MB, free: 17.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.228, allocations: 1.125 kB / 470.4 MB, free: 17.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002202/0.2282, allocations: 164.1 kB / 470.6 MB, free: 17.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000611/0.2288, allocations: 116.3 kB / 470.7 MB, free: 17.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004166/0.233, allocations: 4.229 MB / 474.9 MB, free: 14.56 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002865/0.2333, allocations: 0.8654 MB / 475.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002468/0.2335, allocations: 60.53 kB / 475.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002118/0.2338, allocations: 198.5 kB / 476.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of SimCode: time 1.092e-06/0.2338, allocations: 0 / 476.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01943/0.2532, allocations: 8.07 MB / 484.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001422/0.2534, allocations: 186.2 kB / 484.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.746/1.999, allocations: 0 / 484.3 MB, free: 11.15 MB / 350.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)