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.001316/0.001316, allocations: 78.56 kB / 19.18 MB, free: 2.531 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.001405/0.001405, allocations: 170.1 kB / 22.46 MB, free: 5.359 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.392/1.392, allocations: 177.1 MB / 202.8 MB, free: 9.176 MB / 190.1 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.1675/0.1675, allocations: 24.13 MB / 283.3 MB, free: 8.992 MB / 270.1 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.633e-06/1.633e-06, allocations: 0 / 420.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.707e-05/2.87e-05, allocations: 8.953 kB / 420.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.0085/0.008529, allocations: 6.71 MB / 427.3 MB, free: 5.863 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002143/0.01067, allocations: 1.095 MB / 428.4 MB, free: 4.766 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003146/0.01099, allocations: 23.81 kB / 428.4 MB, free: 4.742 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003805/0.01137, allocations: 146.6 kB / 428.6 MB, free: 4.598 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002536/0.01162, allocations: 95.09 kB / 428.7 MB, free: 4.504 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006996/0.01232, allocations: 295.3 kB / 428.9 MB, free: 4.215 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008138/0.01313, allocations: 0.7304 MB / 429.7 MB, free: 3.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005242/0.01366, allocations: 307.1 kB / 430 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005268/0.01419, allocations: 463 kB / 430.4 MB, free: 2.711 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003045/0.01449, allocations: 211.2 kB / 430.6 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001193/0.01461, allocations: 84 kB / 430.7 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001536/0.01476, allocations: 91.94 kB / 430.8 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001784/0.01494, allocations: 175.5 kB / 431 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002395/0.01518, allocations: 223.4 kB / 431.2 MB, free: 1.941 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009059/0.01609, allocations: 0.8255 MB / 432 MB, free: 1.113 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.01609, allocations: 0 / 432 MB, free: 1.113 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.01609, allocations: 0 / 432 MB, free: 1.113 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.29e-05/0.0161, allocations: 0 / 432 MB, free: 1.113 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.00145/0.01755, allocations: 0.841 MB / 432.9 MB, free: 244 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.01759, allocations: 8.75 kB / 432.9 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000356/0.01795, allocations: 96.44 kB / 433 MB, free: 140 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006652/0.01861, allocations: 388 kB / 433.3 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.238e-05/0.01867, allocations: 58.38 kB / 433.4 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001227/0.0188, allocations: 88.08 kB / 433.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.01993, allocations: 0.7755 MB / 434.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.01994, allocations: 0 / 434.3 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.742e-05/0.02, allocations: 28 kB / 434.3 MB, free: 14.72 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.709e-05/0.02002, allocations: 16 kB / 434.3 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007255/0.02074, allocations: 389 kB / 434.7 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002833/0.02358, allocations: 1.822 MB / 436.5 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000613/0.02419, allocations: 293.2 kB / 436.8 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004168/0.02461, allocations: 211.7 kB / 437 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.02463, allocations: 4.281 kB / 437 MB, free: 11.92 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.379e-05/0.02466, allocations: 47.16 kB / 437.1 MB, free: 11.87 MB / 366.1 MB Notification: Performance of pre-optimization done (n=38): time 1.693e-06/0.02466, allocations: 0 / 437.1 MB, free: 11.87 MB / 366.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007622/0.02543, allocations: 398.8 kB / 437.4 MB, free: 11.47 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.02556, allocations: 209.6 kB / 437.6 MB, free: 11.22 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003781/0.02594, allocations: 320.3 kB / 438 MB, free: 10.9 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.293e-05/0.02599, allocations: 45.7 kB / 438 MB, free: 10.85 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002499/0.02624, allocations: 328.7 kB / 438.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.02636, allocations: 123 kB / 438.4 MB, free: 10.4 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001855/0.02655, allocations: 118.3 kB / 438.6 MB, free: 10.28 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.02672, allocations: 355 kB / 438.9 MB, free: 9.926 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000321/0.02704, allocations: 153.2 kB / 439.1 MB, free: 9.777 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004927/0.02753, allocations: 413.3 kB / 439.5 MB, free: 9.293 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006015/0.02814, allocations: 397.5 kB / 439.8 MB, free: 8.855 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.02814, allocations: 0 / 439.8 MB, free: 8.855 MB / 366.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0009645/0.0291, allocations: 0.5127 MB / 440.4 MB, free: 8.336 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.02912, allocations: 4 kB / 440.4 MB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.02913, allocations: 4 kB / 440.4 MB, free: 8.328 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.191e-05/0.02915, allocations: 8 kB / 440.4 MB, free: 8.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003209/0.02947, allocations: 79.83 kB / 440.5 MB, free: 8.242 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.412e-05/0.02949, allocations: 11.94 kB / 440.5 MB, free: 8.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002865/0.02977, allocations: 63.97 kB / 440.5 MB, free: 8.168 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.32e-05/0.02982, allocations: 23.94 kB / 440.6 MB, free: 8.145 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.0002751/0.03009, allocations: 226.3 kB / 440.8 MB, free: 7.914 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.986e-05/0.03019, allocations: 39.77 kB / 440.8 MB, free: 7.875 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001017/0.03029, allocations: 43.86 kB / 440.9 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.0303, allocations: 4 kB / 440.9 MB, free: 7.828 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.03031, allocations: 3.984 kB / 440.9 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.03031, allocations: 3.938 kB / 440.9 MB, free: 7.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001583/0.0319, allocations: 1.089 MB / 442 MB, free: 6.668 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.0319, allocations: 0 / 442 MB, free: 6.668 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002677/0.03217, allocations: 51.91 kB / 442 MB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.03217, allocations: 4 kB / 442 MB, free: 6.613 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.132e-05/0.0322, allocations: 12 kB / 442 MB, free: 6.602 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.03221, allocations: 3.984 kB / 442 MB, free: 6.598 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/0.03221, allocations: 4 kB / 442 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000893/0.0331, allocations: 0.5806 MB / 442.6 MB, free: 5.973 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001506/0.03325, allocations: 75.66 kB / 442.7 MB, free: 5.898 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.401e-05/0.03331, allocations: 11.98 kB / 442.7 MB, free: 5.887 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002042/0.03351, allocations: 16 kB / 442.7 MB, free: 5.871 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/0.03363, allocations: 43.81 kB / 442.8 MB, free: 5.828 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.749e-05/0.03366, allocations: 16 kB / 442.8 MB, free: 5.812 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002584/0.03391, allocations: 199.1 kB / 443 MB, free: 5.617 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.03391, allocations: 0 / 443 MB, free: 5.617 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004897/0.0344, allocations: 143.5 kB / 443.1 MB, free: 5.477 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.0001942/0.0346, allocations: 127.2 kB / 443.2 MB, free: 5.344 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007239/0.03532, allocations: 346.6 kB / 443.6 MB, free: 5.004 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.03532, allocations: 0 / 443.6 MB, free: 5.004 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002668/0.03559, allocations: 152.8 kB / 443.7 MB, free: 4.855 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006646/0.03626, allocations: 115.5 kB / 443.8 MB, free: 4.746 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001571/0.03783, allocations: 0.937 MB / 444.8 MB, free: 3.754 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003148/0.03814, allocations: 267.3 kB / 445 MB, free: 3.465 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002151/0.03836, allocations: 60.16 kB / 445.1 MB, free: 3.402 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.03847, allocations: 44.48 kB / 445.1 MB, free: 3.359 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.03847, allocations: 0 / 445.1 MB, free: 3.359 MB / 366.1 MB Notification: Performance of Templates: time 0.1659/0.2044, allocations: 5.118 MB / 450.2 MB, free: 38.62 MB / 366.1 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 sys.exit(0), Time elapsed: 4.578956589102745] Failed to read output from testmodel.py, exit status != 0: 0.21231397986412048 0.223670005 0.204976913 Calling exit ...