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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007776/0.0007776, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007815/0.0007815, allocations: 177.9 kB / 23.21 MB, free: 1.348 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8719/0.8719, allocations: 177.1 MB / 203.5 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo): time 0.09711/0.09711, allocations: 24.12 MB / 284.1 MB, free: 5.445 MB / 266.7 MB " [Timeout remaining time 180] Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SIR") translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SIR") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 421.3 MB, free: 8 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.763e-05/1.915e-05, allocations: 2.281 kB / 421.3 MB, free: 7.996 MB / 394.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.005326/0.005345, allocations: 6.726 MB / 428.1 MB, free: 1.238 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001257/0.006602, allocations: 1.099 MB / 429.2 MB, free: 140 kB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002613/0.006864, allocations: 27.81 kB / 429.2 MB, free: 112 kB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00028/0.007144, allocations: 138.7 kB / 429.3 MB, free: 15.97 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001748/0.007318, allocations: 91.11 kB / 429.4 MB, free: 15.88 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004848/0.007803, allocations: 303.3 kB / 429.7 MB, free: 15.59 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004784/0.008282, allocations: 0.7343 MB / 430.5 MB, free: 14.85 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003629/0.008645, allocations: 299.1 kB / 430.7 MB, free: 14.54 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002917/0.008936, allocations: 459 kB / 431.2 MB, free: 14.09 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001959/0.009132, allocations: 211.2 kB / 431.4 MB, free: 13.88 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.582e-05/0.009198, allocations: 84 kB / 431.5 MB, free: 13.8 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.675e-05/0.009285, allocations: 95.94 kB / 431.6 MB, free: 13.7 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001033/0.009388, allocations: 183.4 kB / 431.8 MB, free: 13.52 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001209/0.009509, allocations: 223.5 kB / 432 MB, free: 13.3 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000529/0.01004, allocations: 0.8177 MB / 432.8 MB, free: 12.48 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.854e-06/0.01004, allocations: 3.938 kB / 432.8 MB, free: 12.48 MB / 410.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.01004, allocations: 0 / 432.8 MB, free: 12.48 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.053e-06/0.01005, allocations: 0 / 432.8 MB, free: 12.48 MB / 410.7 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.0008617/0.01091, allocations: 0.8332 MB / 433.6 MB, free: 11.62 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.995e-05/0.01094, allocations: 16.75 kB / 433.6 MB, free: 11.6 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002068/0.01115, allocations: 96.42 kB / 433.7 MB, free: 11.51 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003999/0.01155, allocations: 376.1 kB / 434.1 MB, free: 11.12 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.943e-05/0.01159, allocations: 66.36 kB / 434.2 MB, free: 11.05 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.459e-05/0.01165, allocations: 84.02 kB / 434.2 MB, free: 10.97 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009085/0.01256, allocations: 0.7716 MB / 435 MB, free: 10.14 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.01257, allocations: 4 kB / 435 MB, free: 10.13 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.358e-05/0.01261, allocations: 28 kB / 435.1 MB, free: 10.11 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.01262, allocations: 16 kB / 435.1 MB, free: 10.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004342/0.01305, allocations: 381 kB / 435.4 MB, free: 9.719 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00167/0.01472, allocations: 1.822 MB / 437.3 MB, free: 7.84 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003921/0.01511, allocations: 316 kB / 437.6 MB, free: 7.508 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002453/0.01536, allocations: 215 kB / 437.8 MB, free: 7.289 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.261e-05/0.01537, allocations: 4.281 kB / 437.8 MB, free: 7.285 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.999e-05/0.01539, allocations: 38.84 kB / 437.8 MB, free: 7.238 MB / 410.7 MB Notification: Performance of pre-optimization done (n=38): time 1.523e-06/0.01539, allocations: 0 / 437.8 MB, free: 7.238 MB / 410.7 MB Notification: Performance of matching and sorting (n=38): time 0.0005681/0.01596, allocations: 398.8 kB / 438.2 MB, free: 6.844 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.569e-05/0.01605, allocations: 217.6 kB / 438.4 MB, free: 6.582 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002866/0.01633, allocations: 320.3 kB / 438.7 MB, free: 6.262 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.922e-05/0.01637, allocations: 41.94 kB / 438.8 MB, free: 6.215 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001882/0.01656, allocations: 328.5 kB / 439.1 MB, free: 5.887 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.907e-05/0.01665, allocations: 127 kB / 439.2 MB, free: 5.762 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001513/0.0168, allocations: 126.3 kB / 439.3 MB, free: 5.633 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.01692, allocations: 346.8 kB / 439.7 MB, free: 5.285 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002224/0.01714, allocations: 149.2 kB / 439.8 MB, free: 5.141 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000271/0.01741, allocations: 406 kB / 440.2 MB, free: 4.66 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003603/0.01777, allocations: 409.2 kB / 440.6 MB, free: 4.211 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.01778, allocations: 0 / 440.6 MB, free: 4.211 MB / 410.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0005139/0.01829, allocations: 0.501 MB / 441.1 MB, free: 3.703 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.01831, allocations: 10.97 kB / 441.1 MB, free: 3.695 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.01831, allocations: 0 / 441.1 MB, free: 3.695 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.01833, allocations: 8.469 kB / 441.1 MB, free: 3.688 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001629/0.01849, allocations: 87.77 kB / 441.2 MB, free: 3.602 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.0185, allocations: 15.88 kB / 441.2 MB, free: 3.586 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001368/0.01863, allocations: 63.61 kB / 441.3 MB, free: 3.523 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.15e-05/0.01866, allocations: 23.98 kB / 441.3 MB, free: 3.5 MB / 410.7 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.0001664/0.01882, allocations: 217.7 kB / 441.5 MB, free: 3.277 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.409e-05/0.01888, allocations: 35.81 kB / 441.6 MB, free: 3.242 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002964/0.01917, allocations: 47.84 kB / 441.6 MB, free: 3.195 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.01918, allocations: 4 kB / 441.6 MB, free: 3.191 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.01918, allocations: 4 kB / 441.6 MB, free: 3.188 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.01919, allocations: 11.92 kB / 441.6 MB, free: 3.176 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009225/0.02011, allocations: 1.073 MB / 442.7 MB, free: 2.035 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.02011, allocations: 4 kB / 442.7 MB, free: 2.031 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001263/0.02024, allocations: 51.91 kB / 442.8 MB, free: 1.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.02024, allocations: 4 kB / 442.8 MB, free: 1.977 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.661e-05/0.02026, allocations: 12.25 kB / 442.8 MB, free: 1.965 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.02026, allocations: 11.92 kB / 442.8 MB, free: 1.953 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.02027, allocations: 0 / 442.8 MB, free: 1.953 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004686/0.02073, allocations: 0.5765 MB / 443.4 MB, free: 1.336 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.944e-05/0.02081, allocations: 67.67 kB / 443.4 MB, free: 1.27 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.216e-05/0.02085, allocations: 12 kB / 443.5 MB, free: 1.258 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.705e-05/0.02094, allocations: 11.98 kB / 443.5 MB, free: 1.246 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.529e-05/0.02101, allocations: 43.88 kB / 443.5 MB, free: 1.203 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.081e-05/0.02102, allocations: 8 kB / 443.5 MB, free: 1.195 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001311/0.02115, allocations: 207.1 kB / 443.7 MB, free: 0.9922 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02115, allocations: 0 / 443.7 MB, free: 0.9922 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002702/0.02142, allocations: 139.5 kB / 443.9 MB, free: 0.8555 MB / 410.7 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.149e-05/0.02151, allocations: 123.1 kB / 444 MB, free: 0.7305 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004042/0.02192, allocations: 350.9 kB / 444.3 MB, free: 400 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.02192, allocations: 320 / 444.3 MB, free: 400 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001445/0.02206, allocations: 159.8 kB / 444.5 MB, free: 240 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003789/0.02244, allocations: 116.7 kB / 444.6 MB, free: 128 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1273/0.1497, allocations: 0.9715 MB / 445.6 MB, free: 63.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001511/0.1499, allocations: 260.2 kB / 445.8 MB, free: 63.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.15, allocations: 42.66 kB / 445.9 MB, free: 63.8 MB / 410.7 MB Notification: Performance of SimCode: time 1.012e-06/0.15, allocations: 2.312 kB / 445.9 MB, free: 63.8 MB / 410.7 MB Notification: Performance of Templates: time 0.004834/0.1548, allocations: 6.289 MB / 452.2 MB, free: 63.23 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SIR.makefile [Timeout 660] (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) [Timeout 480] [Calling os._exit(0), Time elapsed: 8.109535122290254] Failed to read output from testmodel.py, exit status != 0: 0.15968273486942053 0.168585916 0.157169474 Calling exit ...