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.001083/0.001083, 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.001137/0.001137, allocations: 190.9 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.337/1.337, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2517/0.2517, allocations: 31.18 MB / 321.3 MB, free: 4.598 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 59.89 kB / 388.5 MB, free: 2.871 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2078/0.209, allocations: 56.37 MB / 444.9 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.005523/0.2146, allocations: 7.756 MB / 452.7 MB, free: 29.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001693/0.2163, allocations: 1.167 MB / 453.8 MB, free: 28.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003331/0.2166, allocations: 26.25 kB / 453.9 MB, free: 28.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002923/0.2169, allocations: 112.6 kB / 454 MB, free: 28.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001934/0.2172, allocations: 52.38 kB / 454 MB, free: 28.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004968/0.2177, allocations: 251.3 kB / 454.3 MB, free: 27.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004461/0.2181, allocations: 0.727 MB / 455 MB, free: 27.54 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000461/0.2186, allocations: 477.2 kB / 455.5 MB, free: 27.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001895/0.2188, allocations: 298.4 kB / 455.7 MB, free: 27.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001942/0.219, allocations: 308.2 kB / 456 MB, free: 26.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.111e-05/0.2191, allocations: 83.06 kB / 456.1 MB, free: 26.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.827e-05/0.2192, allocations: 91.75 kB / 456.2 MB, free: 26.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.608e-05/0.2193, allocations: 175 kB / 456.4 MB, free: 26.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001628/0.2194, allocations: 342.6 kB / 456.7 MB, free: 26.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004589/0.2199, allocations: 0.7737 MB / 457.5 MB, free: 26.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2199, allocations: 4 kB / 457.5 MB, free: 26.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2199, allocations: 1.469 kB / 457.5 MB, free: 26.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.357e-06/0.2199, allocations: 0 / 457.5 MB, free: 26.2 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.001048/0.221, allocations: 0.8941 MB / 458.4 MB, free: 25.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.221, allocations: 13.69 kB / 458.4 MB, free: 25.53 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.489e-05/0.2211, allocations: 113 kB / 458.5 MB, free: 25.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002831/0.2214, allocations: 94.86 kB / 458.6 MB, free: 25.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003812/0.2218, allocations: 431 kB / 459 MB, free: 25.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.876e-05/0.2218, allocations: 61.41 kB / 459.1 MB, free: 25.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.769e-05/0.2219, allocations: 73.22 kB / 459.2 MB, free: 25.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008197/0.2227, allocations: 0.6483 MB / 459.8 MB, free: 24.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.2228, allocations: 0.5625 kB / 459.8 MB, free: 24.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.093e-05/0.2228, allocations: 31.72 kB / 459.8 MB, free: 24.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.2228, allocations: 15.62 kB / 459.9 MB, free: 24.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000587/0.2234, allocations: 383.1 kB / 460.2 MB, free: 24.53 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002332/0.2258, allocations: 2.279 MB / 462.5 MB, free: 23.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000484/0.2263, allocations: 319.5 kB / 462.8 MB, free: 22.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003393/0.2266, allocations: 236.3 kB / 463.1 MB, free: 22.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.144e-05/0.2266, allocations: 4.891 kB / 463.1 MB, free: 22.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.718e-05/0.2267, allocations: 46.89 kB / 463.1 MB, free: 22.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.753e-06/0.2267, allocations: 0 / 463.1 MB, free: 22.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.0006243/0.2273, allocations: 396.6 kB / 463.5 MB, free: 22.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.585e-05/0.2274, allocations: 212.4 kB / 463.7 MB, free: 22.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000319/0.2277, allocations: 368.6 kB / 464.1 MB, free: 22.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.983e-05/0.2277, allocations: 40.92 kB / 464.1 MB, free: 22.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001417/0.2279, allocations: 316.5 kB / 464.4 MB, free: 21.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.824e-05/0.228, allocations: 108.2 kB / 464.5 MB, free: 21.69 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001504/0.2281, allocations: 124.9 kB / 464.6 MB, free: 21.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.611e-05/0.2282, allocations: 351 kB / 465 MB, free: 21.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002688/0.2285, allocations: 152.2 kB / 465.1 MB, free: 21.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003184/0.2288, allocations: 306.8 kB / 465.4 MB, free: 21.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004257/0.2292, allocations: 405.2 kB / 465.8 MB, free: 20.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.2292, allocations: 5.25 kB / 465.8 MB, free: 20.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0007167/0.2299, allocations: 0.5096 MB / 466.3 MB, free: 20.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.23, allocations: 11 kB / 466.4 MB, free: 20.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.23, allocations: 3.562 kB / 466.4 MB, free: 20.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.23, allocations: 11.34 kB / 466.4 MB, free: 20.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002769/0.2303, allocations: 79.62 kB / 466.4 MB, free: 20.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.2303, allocations: 7.391 kB / 466.5 MB, free: 20.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002583/0.2306, allocations: 64.17 kB / 466.5 MB, free: 20.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.403e-05/0.2306, allocations: 22.2 kB / 466.5 MB, free: 20.43 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.0001917/0.2308, allocations: 230.9 kB / 466.8 MB, free: 20.24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.491e-05/0.2309, allocations: 43.88 kB / 466.8 MB, free: 20.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.09e-05/0.231, allocations: 49.53 kB / 466.9 MB, free: 20.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.231, allocations: 9.125 kB / 466.9 MB, free: 20.17 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.231, allocations: 1.031 kB / 466.9 MB, free: 20.17 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.231, allocations: 3.094 kB / 466.9 MB, free: 20.17 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001279/0.2323, allocations: 1.242 MB / 468.1 MB, free: 19.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.2323, allocations: 2.219 kB / 468.1 MB, free: 19.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002277/0.2325, allocations: 47.5 kB / 468.2 MB, free: 19.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.2326, allocations: 7.25 kB / 468.2 MB, free: 19.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.527e-05/0.2326, allocations: 18.19 kB / 468.2 MB, free: 19.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.2326, allocations: 8.609 kB / 468.2 MB, free: 19.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2326, allocations: 2.031 kB / 468.2 MB, free: 19.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000573/0.2332, allocations: 0.5803 MB / 468.8 MB, free: 18.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.2333, allocations: 144.6 kB / 468.9 MB, free: 18.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.905e-05/0.2334, allocations: 14.69 kB / 468.9 MB, free: 18.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001929/0.2336, allocations: 18.33 kB / 468.9 MB, free: 18.78 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.065e-05/0.2336, allocations: 38.27 kB / 469 MB, free: 18.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.847e-05/0.2337, allocations: 16.86 kB / 469 MB, free: 18.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002095/0.2339, allocations: 239.3 kB / 469.2 MB, free: 18.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2339, allocations: 0 / 469.2 MB, free: 18.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004074/0.2343, allocations: 138.4 kB / 469.4 MB, free: 18.59 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.0007054/0.235, allocations: 1.139 MB / 470.5 MB, free: 17.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008844/0.2359, allocations: 404.2 kB / 470.9 MB, free: 17.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.2359, allocations: 1.375 kB / 470.9 MB, free: 17.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002686/0.2362, allocations: 163.5 kB / 471.1 MB, free: 17.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006336/0.2368, allocations: 124.5 kB / 471.2 MB, free: 17.42 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004283/0.2411, allocations: 4.229 MB / 475.4 MB, free: 14.48 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003089/0.2415, allocations: 0.8681 MB / 476.3 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002638/0.2417, allocations: 65.77 kB / 476.3 MB, free: 13.76 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002195/0.242, allocations: 197 kB / 476.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.242, allocations: 1.438 kB / 476.5 MB, free: 13.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3682/0.6101, allocations: 8.278 MB / 484.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002108/0.6104, allocations: 189.3 kB / 485 MB, free: 10.85 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.156/2.767, allocations: 0 / 485 MB, free: 10.85 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)