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.001462/0.001462, allocations: 80.75 kB / 19.94 MB, free: 4.547 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.001673/0.001673, allocations: 181 kB / 23.36 MB, free: 1.133 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.9829/0.9829, allocations: 177.1 MB / 203.8 MB, free: 5.484 MB / 186.7 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.1246/0.1246, allocations: 24.15 MB / 284.4 MB, free: 5.148 MB / 266.7 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 1.192e-06/1.192e-06, allocations: 0 / 308.4 MB, free: 8.891 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.287e-05/2.407e-05, allocations: 6.016 kB / 308.4 MB, free: 8.887 MB / 282.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.006377/0.006401, allocations: 6.866 MB / 315.3 MB, free: 2.012 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002572/0.008972, allocations: 1.167 MB / 316.4 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005737/0.009546, allocations: 27.81 kB / 316.5 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003951/0.009941, allocations: 133.2 kB / 316.6 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002836/0.01022, allocations: 99.05 kB / 316.7 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007088/0.01093, allocations: 312.1 kB / 317 MB, free: 296 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006837/0.01162, allocations: 0.7267 MB / 317.7 MB, free: 15.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004592/0.01208, allocations: 312.4 kB / 318 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004496/0.01253, allocations: 479.8 kB / 318.5 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002503/0.01278, allocations: 219.2 kB / 318.7 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.244e-05/0.01285, allocations: 80 kB / 318.8 MB, free: 14.47 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.619e-05/0.01294, allocations: 84 kB / 318.9 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001078/0.01305, allocations: 175.5 kB / 319.1 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001399/0.01319, allocations: 219.4 kB / 319.3 MB, free: 14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005097/0.0137, allocations: 482.1 kB / 319.7 MB, free: 13.53 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.01371, allocations: 3.938 kB / 319.7 MB, free: 13.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.01371, allocations: 0 / 319.7 MB, free: 13.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.832e-06/0.01371, allocations: 4 kB / 319.7 MB, free: 13.52 MB / 298.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.0008078/0.01452, allocations: 0.8042 MB / 320.5 MB, free: 12.7 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.01456, allocations: 8.75 kB / 320.6 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002187/0.01477, allocations: 124.8 kB / 320.7 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003984/0.01517, allocations: 340.1 kB / 321 MB, free: 12.21 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.528e-05/0.01522, allocations: 58.38 kB / 321.1 MB, free: 12.15 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.477e-05/0.01528, allocations: 80.12 kB / 321.1 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004516/0.01573, allocations: 0.5303 MB / 321.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.01575, allocations: 0 / 321.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.704e-05/0.01577, allocations: 24 kB / 321.7 MB, free: 11.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.01579, allocations: 20 kB / 321.7 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004569/0.01624, allocations: 161 kB / 321.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00152/0.01776, allocations: 1.557 MB / 323.4 MB, free: 9.691 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002496/0.01801, allocations: 180.9 kB / 323.6 MB, free: 9.488 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001482/0.01816, allocations: 128.9 kB / 323.7 MB, free: 9.355 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.584e-05/0.01818, allocations: 8 kB / 323.7 MB, free: 9.348 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.636e-05/0.0182, allocations: 38.56 kB / 323.8 MB, free: 9.301 MB / 298.7 MB Notification: Performance of pre-optimization done (n=34): time 2.184e-06/0.01821, allocations: 0 / 323.8 MB, free: 9.301 MB / 298.7 MB Notification: Performance of matching and sorting (n=34): time 0.0002717/0.01848, allocations: 197.3 kB / 324 MB, free: 9.105 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.451e-05/0.01853, allocations: 136.5 kB / 324.1 MB, free: 8.941 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002031/0.01873, allocations: 326.8 kB / 324.4 MB, free: 8.609 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.538e-05/0.01877, allocations: 45.7 kB / 324.5 MB, free: 8.559 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001472/0.01892, allocations: 316.8 kB / 324.8 MB, free: 8.242 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.426e-05/0.01898, allocations: 111.1 kB / 324.9 MB, free: 8.133 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001217/0.0191, allocations: 126.2 kB / 325 MB, free: 8.004 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.01921, allocations: 350.7 kB / 325.4 MB, free: 7.652 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.425e-05/0.01931, allocations: 57.28 kB / 325.4 MB, free: 7.598 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000165/0.01947, allocations: 234.5 kB / 325.6 MB, free: 7.301 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002681/0.01974, allocations: 298.6 kB / 325.9 MB, free: 6.945 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.01974, allocations: 0 / 325.9 MB, free: 6.945 MB / 298.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0003194/0.02006, allocations: 306.2 kB / 326.2 MB, free: 6.641 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.02008, allocations: 10.03 kB / 326.2 MB, free: 6.633 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.02009, allocations: 4 kB / 326.2 MB, free: 6.629 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.846e-05/0.02011, allocations: 8 kB / 326.3 MB, free: 6.621 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.02027, allocations: 91.77 kB / 326.3 MB, free: 6.531 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/0.02027, allocations: 8.406 kB / 326.4 MB, free: 6.523 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001196/0.02039, allocations: 63.61 kB / 326.4 MB, free: 6.461 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.931e-05/0.02041, allocations: 20 kB / 326.4 MB, free: 6.441 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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,susceptible.inflow.stopInflow,removed.inflow.stopInflow,removed.outflow.stopInflow,susceptible.outflow.stopInflow,infected.inflow.stopOutflow,infected.inflow.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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 74 * 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.0001316/0.02054, allocations: 168.5 kB / 326.6 MB, free: 6.266 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.95e-05/0.0206, allocations: 31.97 kB / 326.6 MB, free: 6.234 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.592e-05/0.02065, allocations: 43.95 kB / 326.7 MB, free: 6.191 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.589e-06/0.02065, allocations: 4 kB / 326.7 MB, free: 6.188 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.02066, allocations: 3.938 kB / 326.7 MB, free: 6.184 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.02067, allocations: 7.922 kB / 326.7 MB, free: 6.176 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007456/0.02141, allocations: 0.7529 MB / 327.4 MB, free: 5.371 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.02141, allocations: 0 / 327.4 MB, free: 5.371 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.02153, allocations: 43.92 kB / 327.5 MB, free: 5.328 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.02153, allocations: 4 kB / 327.5 MB, free: 5.324 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.779e-05/0.02155, allocations: 8 kB / 327.5 MB, free: 5.316 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.02155, allocations: 7.984 kB / 327.5 MB, free: 5.309 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.02156, allocations: 4 kB / 327.5 MB, free: 5.305 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002986/0.02185, allocations: 379.7 kB / 327.9 MB, free: 4.895 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.101e-05/0.02192, allocations: 47.69 kB / 327.9 MB, free: 4.848 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.688e-05/0.02194, allocations: 12.06 kB / 327.9 MB, free: 4.836 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.055e-05/0.02202, allocations: 8 kB / 327.9 MB, free: 4.828 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.77e-05/0.02208, allocations: 35.83 kB / 328 MB, free: 4.793 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.157e-05/0.02209, allocations: 15.94 kB / 328 MB, free: 4.777 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.322e-05/0.02218, allocations: 104.6 kB / 328.1 MB, free: 4.672 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02218, allocations: 0 / 328.1 MB, free: 4.672 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002993/0.02248, allocations: 131.5 kB / 328.2 MB, free: 4.543 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (34): * Single equations (assignments): 34 * 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.0001298/0.0226, allocations: 106.6 kB / 328.3 MB, free: 4.438 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002682/0.02287, allocations: 220.7 kB / 328.5 MB, free: 4.219 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.498e-06/0.02288, allocations: 5.188 kB / 328.5 MB, free: 4.215 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.743e-05/0.02298, allocations: 105.8 kB / 328.7 MB, free: 4.109 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003134/0.02329, allocations: 102.9 kB / 328.8 MB, free: 4.016 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001295/0.02459, allocations: 0.8907 MB / 329.6 MB, free: 3.062 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.916e-05/0.02467, allocations: 122 kB / 329.8 MB, free: 2.922 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001404/0.02481, allocations: 52.14 kB / 329.8 MB, free: 2.871 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001689/0.02498, allocations: 135.3 kB / 329.9 MB, free: 2.738 MB / 298.7 MB Notification: Performance of SimCode: time 8.81e-07/0.02498, allocations: 4 kB / 329.9 MB, free: 2.734 MB / 298.7 MB Notification: Performance of Templates: time 0.007941/0.03292, allocations: 4.659 MB / 334.6 MB, free: 14.19 MB / 314.7 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=240 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.887106766924262]