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.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.001489/0.001489, allocations: 80.14 kB / 19.18 MB, free: 2.516 MB / 14.72 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.001616/0.001616, allocations: 159.3 kB / 22.46 MB, free: 5.375 MB / 14.72 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 1.374/1.374, allocations: 177.1 MB / 202.8 MB, free: 9.164 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.1653/0.1653, allocations: 24.14 MB / 283.3 MB, free: 8.996 MB / 270.1 MB " [Timeout remaining time 180] 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.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_BusinessSimulation.Examples.SIR") translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SIR") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 5.701e-06/5.701e-06, allocations: 3.984 kB / 420.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.294e-05/2.864e-05, allocations: 8.188 kB / 420.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.007847/0.007875, allocations: 6.713 MB / 427.3 MB, free: 5.879 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002284/0.01016, allocations: 1.095 MB / 428.4 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004946/0.01065, allocations: 27.81 kB / 428.4 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004513/0.0111, allocations: 134.8 kB / 428.6 MB, free: 4.621 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003296/0.01143, allocations: 95.11 kB / 428.7 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008193/0.01225, allocations: 307.1 kB / 429 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008214/0.01308, allocations: 0.7305 MB / 429.7 MB, free: 3.492 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005506/0.01363, allocations: 303.1 kB / 430 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005213/0.01415, allocations: 459 kB / 430.4 MB, free: 2.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000294/0.01444, allocations: 207.3 kB / 430.6 MB, free: 2.527 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000109/0.01455, allocations: 84 kB / 430.7 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001403/0.01469, allocations: 91.94 kB / 430.8 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001754/0.01487, allocations: 187.5 kB / 431 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002297/0.0151, allocations: 227.3 kB / 431.2 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008704/0.01597, allocations: 0.8139 MB / 432 MB, free: 1.133 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.01597, allocations: 0 / 432 MB, free: 1.133 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.01597, allocations: 0 / 432 MB, free: 1.133 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.386e-05/0.01598, allocations: 0 / 432 MB, free: 1.133 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.001407/0.01739, allocations: 0.8371 MB / 432.9 MB, free: 268 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.01743, allocations: 12.75 kB / 432.9 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003682/0.0178, allocations: 96.42 kB / 433 MB, free: 160 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006482/0.01844, allocations: 384.1 kB / 433.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.815e-05/0.0185, allocations: 58.38 kB / 433.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001165/0.01862, allocations: 80.08 kB / 433.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001123/0.01974, allocations: 0.7755 MB / 434.3 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.01976, allocations: 4 kB / 434.3 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.439e-05/0.01981, allocations: 27.94 kB / 434.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.811e-05/0.01983, allocations: 16 kB / 434.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007115/0.02054, allocations: 389 kB / 434.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0028/0.02334, allocations: 1.826 MB / 436.5 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006036/0.02395, allocations: 301.3 kB / 436.8 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004049/0.02435, allocations: 211.7 kB / 437 MB, free: 11.94 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.129e-05/0.02437, allocations: 4.656 kB / 437 MB, free: 11.94 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.859e-05/0.02441, allocations: 42.78 kB / 437.1 MB, free: 11.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=38): time 2.104e-06/0.02441, allocations: 0 / 437.1 MB, free: 11.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007795/0.02519, allocations: 394.8 kB / 437.4 MB, free: 11.5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/0.02531, allocations: 213.6 kB / 437.7 MB, free: 11.24 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003798/0.02569, allocations: 324.5 kB / 438 MB, free: 10.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.664e-05/0.02575, allocations: 45.69 kB / 438 MB, free: 10.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002367/0.02598, allocations: 324.5 kB / 438.3 MB, free: 10.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001136/0.0261, allocations: 130.9 kB / 438.5 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000189/0.02629, allocations: 126.3 kB / 438.6 MB, free: 10.29 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.02644, allocations: 346.8 kB / 438.9 MB, free: 9.938 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003223/0.02677, allocations: 153.2 kB / 439.1 MB, free: 9.789 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004855/0.02725, allocations: 398.1 kB / 439.5 MB, free: 9.316 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006096/0.02786, allocations: 417.4 kB / 439.9 MB, free: 8.859 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.02786, allocations: 0 / 439.9 MB, free: 8.859 MB / 366.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008985/0.02876, allocations: 0.4971 MB / 440.4 MB, free: 8.355 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.02878, allocations: 8.469 kB / 440.4 MB, free: 8.348 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.02879, allocations: 4 kB / 440.4 MB, free: 8.344 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.96e-05/0.02881, allocations: 8 kB / 440.4 MB, free: 8.336 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003171/0.02913, allocations: 79.83 kB / 440.5 MB, free: 8.258 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.537e-05/0.02914, allocations: 15.88 kB / 440.5 MB, free: 8.242 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003041/0.02945, allocations: 59.61 kB / 440.5 MB, free: 8.184 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.275e-05/0.02949, allocations: 23.98 kB / 440.6 MB, free: 8.16 MB / 366.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.0002789/0.02977, allocations: 222.4 kB / 440.8 MB, free: 7.934 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.02987, allocations: 35.77 kB / 440.8 MB, free: 7.898 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.586e-05/0.02997, allocations: 43.86 kB / 440.9 MB, free: 7.855 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.02998, allocations: 8 kB / 440.9 MB, free: 7.848 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.02998, allocations: 0 / 440.9 MB, free: 7.848 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.158e-05/0.02999, allocations: 15.86 kB / 440.9 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00159/0.03158, allocations: 1.077 MB / 442 MB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.03159, allocations: 4 kB / 442 MB, free: 6.688 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002595/0.03185, allocations: 52.16 kB / 442 MB, free: 6.637 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.171e-06/0.03185, allocations: 8 kB / 442 MB, free: 6.629 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.01e-05/0.03188, allocations: 11.98 kB / 442 MB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.009e-06/0.03189, allocations: 4 kB / 442 MB, free: 6.613 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.03189, allocations: 0 / 442 MB, free: 6.613 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007834/0.03268, allocations: 0.5803 MB / 442.6 MB, free: 5.992 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001346/0.03281, allocations: 67.67 kB / 442.7 MB, free: 5.926 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.185e-05/0.03286, allocations: 16 kB / 442.7 MB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001984/0.03306, allocations: 11.98 kB / 442.7 MB, free: 5.898 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.706e-05/0.03316, allocations: 51.81 kB / 442.8 MB, free: 5.848 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.347e-05/0.03318, allocations: 12 kB / 442.8 MB, free: 5.836 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002283/0.03341, allocations: 203.1 kB / 443 MB, free: 5.637 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.03341, allocations: 0 / 443 MB, free: 5.637 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004747/0.03388, allocations: 143.5 kB / 443.1 MB, free: 5.496 MB / 366.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.0001408/0.03402, allocations: 123.2 kB / 443.2 MB, free: 5.367 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006718/0.0347, allocations: 351.2 kB / 443.6 MB, free: 5.023 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.0347, allocations: 0 / 443.6 MB, free: 5.023 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002584/0.03496, allocations: 151.8 kB / 443.7 MB, free: 4.875 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006684/0.03563, allocations: 126 kB / 443.8 MB, free: 4.762 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001556/0.03718, allocations: 0.937 MB / 444.8 MB, free: 3.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002843/0.03747, allocations: 271.3 kB / 445 MB, free: 3.477 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002138/0.03768, allocations: 56.16 kB / 445.1 MB, free: 3.418 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.03779, allocations: 40.48 kB / 445.1 MB, free: 3.379 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.03779, allocations: 0 / 445.1 MB, free: 3.379 MB / 366.1 MB Notification: Performance of Templates: time 0.1516/0.1894, allocations: 5.108 MB / 450.2 MB, free: 38.69 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SIR.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.438711449503899] Failed to read output from testmodel.py, exit status != 0: 0.19708894938230515 0.20767831 0.189344001 Calling exit ...