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: translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SIR") translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004719/0.00472, allocations: 100.9 kB / 15.87 MB, free: 5.867 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.001146/0.001146, allocations: 195.1 kB / 16.79 MB, free: 5.809 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.295/1.295, allocations: 222.9 MB / 240.5 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.2666/0.2666, allocations: 31.12 MB / 321.7 MB, free: 4.621 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 63.89 kB / 388.9 MB, free: 3.023 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2181/0.2194, allocations: 56.36 MB / 445.2 MB, free: 34.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.005804/0.2252, allocations: 7.756 MB / 453 MB, free: 28.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00168/0.2269, allocations: 1.171 MB / 454.2 MB, free: 28.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003274/0.2273, allocations: 26.25 kB / 454.2 MB, free: 28.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002949/0.2276, allocations: 115.6 kB / 454.3 MB, free: 27.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001849/0.2278, allocations: 57.36 kB / 454.4 MB, free: 27.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004931/0.2283, allocations: 247.2 kB / 454.6 MB, free: 27.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004381/0.2287, allocations: 0.6842 MB / 455.3 MB, free: 27.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004624/0.2292, allocations: 445.8 kB / 455.7 MB, free: 27.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001844/0.2294, allocations: 252.4 kB / 456 MB, free: 27.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001981/0.2296, allocations: 290.9 kB / 456.2 MB, free: 26.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.702e-05/0.2297, allocations: 49.91 kB / 456.3 MB, free: 26.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.756e-05/0.2298, allocations: 61.03 kB / 456.4 MB, free: 26.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.085e-05/0.2299, allocations: 142.3 kB / 456.5 MB, free: 26.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001657/0.23, allocations: 306.6 kB / 456.8 MB, free: 26.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003556/0.2304, allocations: 0.5983 MB / 457.4 MB, free: 26.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.257e-06/0.2304, allocations: 4 kB / 457.4 MB, free: 26.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.52e-07/0.2304, allocations: 0 / 457.4 MB, free: 26.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.216e-05/0.2304, allocations: 0 / 457.4 MB, free: 26.33 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.00113/0.2316, allocations: 0.8947 MB / 458.3 MB, free: 25.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.981e-05/0.2316, allocations: 16.5 kB / 458.3 MB, free: 25.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000332/0.2319, allocations: 94.64 kB / 458.4 MB, free: 25.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004244/0.2324, allocations: 429.6 kB / 458.8 MB, free: 25.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.135e-05/0.2324, allocations: 60.88 kB / 458.9 MB, free: 25.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.475e-05/0.2325, allocations: 73.25 kB / 458.9 MB, free: 25.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008827/0.2334, allocations: 0.6505 MB / 459.6 MB, free: 24.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.2334, allocations: 0 / 459.6 MB, free: 24.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.596e-05/0.2335, allocations: 26.84 kB / 459.6 MB, free: 24.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/0.2335, allocations: 16.94 kB / 459.6 MB, free: 24.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006397/0.2341, allocations: 383.9 kB / 460 MB, free: 24.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002424/0.2366, allocations: 2.277 MB / 462.3 MB, free: 23.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000527/0.2371, allocations: 328.7 kB / 462.6 MB, free: 23.06 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003652/0.2375, allocations: 224.1 kB / 462.8 MB, free: 22.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.651e-05/0.2375, allocations: 9.609 kB / 462.8 MB, free: 22.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.771e-05/0.2376, allocations: 42.7 kB / 462.9 MB, free: 22.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.674e-06/0.2376, allocations: 0 / 462.9 MB, free: 22.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.0006791/0.2382, allocations: 400.6 kB / 463.3 MB, free: 22.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.385e-05/0.2383, allocations: 210.6 kB / 463.5 MB, free: 22.49 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003448/0.2386, allocations: 371.5 kB / 463.8 MB, free: 22.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.719e-05/0.2387, allocations: 43.86 kB / 463.9 MB, free: 22.24 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001403/0.2388, allocations: 312.3 kB / 464.2 MB, free: 21.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.036e-05/0.2389, allocations: 119.4 kB / 464.3 MB, free: 21.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001497/0.2391, allocations: 121.4 kB / 464.4 MB, free: 21.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.53e-05/0.2392, allocations: 354.7 kB / 464.8 MB, free: 21.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002943/0.2395, allocations: 148.7 kB / 464.9 MB, free: 21.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003422/0.2398, allocations: 303.9 kB / 465.2 MB, free: 21.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004799/0.2403, allocations: 404.7 kB / 465.6 MB, free: 20.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.187e-06/0.2403, allocations: 1.812 kB / 465.6 MB, free: 20.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0007734/0.2411, allocations: 0.5085 MB / 466.1 MB, free: 20.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.2411, allocations: 11.22 kB / 466.1 MB, free: 20.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.2411, allocations: 7.672 kB / 466.1 MB, free: 20.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.2411, allocations: 7.75 kB / 466.1 MB, free: 20.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002976/0.2415, allocations: 87.2 kB / 466.2 MB, free: 20.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.506e-05/0.2415, allocations: 11.69 kB / 466.2 MB, free: 20.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002757/0.2418, allocations: 64.66 kB / 466.3 MB, free: 20.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.85e-05/0.2418, allocations: 21.05 kB / 466.3 MB, free: 20.64 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.0002005/0.242, allocations: 226.2 kB / 466.5 MB, free: 20.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.672e-05/0.2421, allocations: 43.77 kB / 466.6 MB, free: 20.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.163e-05/0.2422, allocations: 48.7 kB / 466.6 MB, free: 20.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.2422, allocations: 9.953 kB / 466.6 MB, free: 20.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.2422, allocations: 1.375 kB / 466.6 MB, free: 20.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.2422, allocations: 1.969 kB / 466.7 MB, free: 20.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00137/0.2436, allocations: 1.234 MB / 467.9 MB, free: 19.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/0.2436, allocations: 2.719 kB / 467.9 MB, free: 19.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002491/0.2439, allocations: 50.53 kB / 467.9 MB, free: 19.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.2439, allocations: 4.188 kB / 467.9 MB, free: 19.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.763e-05/0.2439, allocations: 14.09 kB / 468 MB, free: 19.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.609e-06/0.2439, allocations: 3.906 kB / 468 MB, free: 19.53 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.2439, allocations: 3.75 kB / 468 MB, free: 19.53 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006344/0.2446, allocations: 0.5789 MB / 468.5 MB, free: 19.15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000117/0.2447, allocations: 144.7 kB / 468.7 MB, free: 19.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.412e-05/0.2448, allocations: 18.67 kB / 468.7 MB, free: 19.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002099/0.245, allocations: 15.67 kB / 468.7 MB, free: 19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.871e-05/0.2451, allocations: 41.53 kB / 468.8 MB, free: 18.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.2451, allocations: 13.81 kB / 468.8 MB, free: 18.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002274/0.2453, allocations: 242.1 kB / 469 MB, free: 18.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2453, allocations: 0 / 469 MB, free: 18.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000439/0.2458, allocations: 138.4 kB / 469.1 MB, free: 18.81 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 9.294e-05/0.2459, allocations: 120.4 kB / 469.3 MB, free: 18.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006021/0.2465, allocations: 382.2 kB / 469.6 MB, free: 18.58 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2465, allocations: 1.375 kB / 469.6 MB, free: 18.58 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000226/0.2467, allocations: 159.6 kB / 469.8 MB, free: 18.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006666/0.2474, allocations: 115.1 kB / 469.9 MB, free: 18.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.2488, allocations: 1.249 MB / 471.2 MB, free: 17.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002977/0.2491, allocations: 0.8646 MB / 472 MB, free: 16.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001234/0.2493, allocations: 42.09 kB / 472.1 MB, free: 16.87 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2493, allocations: 0 / 472.1 MB, free: 16.87 MB / 350.1 MB Notification: Performance of Templates: time 0.008483/0.2577, allocations: 6.15 MB / 478.2 MB, free: 15.37 MB / 350.1 MB make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SIR.makefile (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 & ./BusinessSimulation_BusinessSimulation.Examples.SIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SIR.pipe 2>&1)