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: translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SIR") translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00136/0.00136, allocations: 196.1 kB / 16.79 MB, free: 6.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.346/1.346, allocations: 222.9 MB / 240.5 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2716/0.2716, allocations: 31.17 MB / 321.8 MB, free: 4.781 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 71.89 kB / 388.9 MB, free: 3.195 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2227/0.2241, allocations: 56.35 MB / 445.3 MB, free: 34.47 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.006089/0.2302, allocations: 7.762 MB / 453 MB, free: 28.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001624/0.2319, allocations: 1.174 MB / 454.2 MB, free: 28.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003396/0.2322, allocations: 26.25 kB / 454.2 MB, free: 28.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002746/0.2325, allocations: 115.9 kB / 454.3 MB, free: 27.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00018/0.2327, allocations: 53.8 kB / 454.4 MB, free: 27.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005288/0.2332, allocations: 254.4 kB / 454.6 MB, free: 27.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004402/0.2337, allocations: 0.6717 MB / 455.3 MB, free: 27.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004704/0.2342, allocations: 455.7 kB / 455.8 MB, free: 27.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001758/0.2344, allocations: 249.3 kB / 456 MB, free: 27.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002215/0.2346, allocations: 284.4 kB / 456.3 MB, free: 26.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.494e-05/0.2347, allocations: 47.91 kB / 456.3 MB, free: 26.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.503e-05/0.2348, allocations: 66.31 kB / 456.4 MB, free: 26.9 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.727e-05/0.2348, allocations: 142 kB / 456.5 MB, free: 26.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001565/0.235, allocations: 315.9 kB / 456.8 MB, free: 26.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003695/0.2354, allocations: 0.5921 MB / 457.4 MB, free: 26.37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.2354, allocations: 4 kB / 457.4 MB, free: 26.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.81e-07/0.2354, allocations: 3.062 kB / 457.4 MB, free: 26.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.925e-06/0.2354, allocations: 0 / 457.4 MB, free: 26.36 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.001159/0.2366, allocations: 0.8938 MB / 458.3 MB, free: 25.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.819e-05/0.2366, allocations: 13.44 kB / 458.3 MB, free: 25.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003351/0.237, allocations: 95.64 kB / 458.4 MB, free: 25.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004611/0.2374, allocations: 432.5 kB / 458.9 MB, free: 25.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.254e-05/0.2375, allocations: 56.62 kB / 458.9 MB, free: 25.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.064e-05/0.2376, allocations: 77.31 kB / 459 MB, free: 25.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008899/0.2385, allocations: 0.6484 MB / 459.6 MB, free: 24.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.338e-05/0.2385, allocations: 3.938 kB / 459.6 MB, free: 24.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.499e-05/0.2386, allocations: 26.91 kB / 459.7 MB, free: 24.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.509e-05/0.2386, allocations: 16.22 kB / 459.7 MB, free: 24.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000654/0.2393, allocations: 380.9 kB / 460.1 MB, free: 24.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002568/0.2419, allocations: 2.275 MB / 462.3 MB, free: 23.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005417/0.2424, allocations: 328.2 kB / 462.7 MB, free: 23.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003851/0.2428, allocations: 226.3 kB / 462.9 MB, free: 23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.078e-05/0.2428, allocations: 8.031 kB / 462.9 MB, free: 23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.673e-05/0.2429, allocations: 39.08 kB / 462.9 MB, free: 22.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.583e-06/0.2429, allocations: 0 / 462.9 MB, free: 22.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.0006971/0.2436, allocations: 405.2 kB / 463.3 MB, free: 22.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.488e-05/0.2436, allocations: 215.2 kB / 463.5 MB, free: 22.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003508/0.244, allocations: 365 kB / 463.9 MB, free: 22.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.79e-05/0.2441, allocations: 45.62 kB / 463.9 MB, free: 22.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.2442, allocations: 316.5 kB / 464.2 MB, free: 22.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.348e-05/0.2443, allocations: 109.5 kB / 464.3 MB, free: 21.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001473/0.2444, allocations: 121.3 kB / 464.5 MB, free: 21.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.284e-05/0.2445, allocations: 353.5 kB / 464.8 MB, free: 21.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003308/0.2448, allocations: 151.8 kB / 465 MB, free: 21.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003722/0.2452, allocations: 302.9 kB / 465.3 MB, free: 21.26 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004752/0.2457, allocations: 401.5 kB / 465.6 MB, free: 20.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.2457, allocations: 1.25 kB / 465.6 MB, free: 20.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008192/0.2465, allocations: 0.5133 MB / 466.2 MB, free: 20.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.2466, allocations: 10.59 kB / 466.2 MB, free: 20.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.2466, allocations: 4.453 kB / 466.2 MB, free: 20.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.2466, allocations: 11.05 kB / 466.2 MB, free: 20.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003191/0.2469, allocations: 83.12 kB / 466.3 MB, free: 20.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.2469, allocations: 11.86 kB / 466.3 MB, free: 20.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000291/0.2472, allocations: 67.47 kB / 466.3 MB, free: 20.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.605e-05/0.2473, allocations: 21.53 kB / 466.4 MB, free: 20.67 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.000195/0.2475, allocations: 217.9 kB / 466.6 MB, free: 20.49 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.628e-05/0.2476, allocations: 44.27 kB / 466.6 MB, free: 20.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.095e-05/0.2477, allocations: 45.67 kB / 466.7 MB, free: 20.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.022e-06/0.2477, allocations: 12.55 kB / 466.7 MB, free: 20.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.2477, allocations: 9.891 kB / 466.7 MB, free: 20.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.2477, allocations: 2.953 kB / 466.7 MB, free: 20.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00145/0.2492, allocations: 1.238 MB / 467.9 MB, free: 19.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.2492, allocations: 2.172 kB / 467.9 MB, free: 19.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002426/0.2494, allocations: 50.8 kB / 468 MB, free: 19.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.2494, allocations: 4.344 kB / 468 MB, free: 19.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.601e-05/0.2495, allocations: 13.33 kB / 468 MB, free: 19.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.2495, allocations: 7.766 kB / 468 MB, free: 19.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.2495, allocations: 7.766 kB / 468 MB, free: 19.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006883/0.2502, allocations: 0.5835 MB / 468.6 MB, free: 19.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000113/0.2503, allocations: 144.8 kB / 468.7 MB, free: 19.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.229e-05/0.2504, allocations: 14.86 kB / 468.8 MB, free: 19.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002312/0.2506, allocations: 14.78 kB / 468.8 MB, free: 19.03 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.885e-05/0.2507, allocations: 37.44 kB / 468.8 MB, free: 19.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.098e-05/0.2507, allocations: 15 kB / 468.8 MB, free: 19.01 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002192/0.2509, allocations: 236.6 kB / 469 MB, free: 18.89 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2509, allocations: 0 / 469 MB, free: 18.89 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004705/0.2514, allocations: 139.3 kB / 469.2 MB, free: 18.84 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 8.125e-05/0.2515, allocations: 124.5 kB / 469.3 MB, free: 18.74 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000592/0.2521, allocations: 375.3 kB / 469.7 MB, free: 18.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.2521, allocations: 0 / 469.7 MB, free: 18.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002472/0.2524, allocations: 159.9 kB / 469.8 MB, free: 18.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000668/0.2531, allocations: 124.2 kB / 469.9 MB, free: 18.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001425/0.2545, allocations: 1.245 MB / 471.2 MB, free: 17.61 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002937/0.2548, allocations: 0.8642 MB / 472.1 MB, free: 16.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001244/0.2549, allocations: 41.69 kB / 472.1 MB, free: 16.9 MB / 350.1 MB Notification: Performance of SimCode: time 7.31e-07/0.255, allocations: 0 / 472.1 MB, free: 16.9 MB / 350.1 MB Notification: Performance of Templates: time 0.008578/0.2636, allocations: 6.161 MB / 478.3 MB, free: 15.47 MB / 350.1 MB make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SIR.makefile (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 & ./BusinessSimulation_dev_BusinessSimulation.Examples.SIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe 2>&1)