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.001895/0.001895, allocations: 85.48 kB / 19.44 MB, free: 344 kB / 13.93 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.001994/0.001994, allocations: 173.2 kB / 22.76 MB, free: 1.664 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 1.545/1.545, allocations: 177.1 MB / 203.1 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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.1915/0.1915, allocations: 24.12 MB / 283.7 MB, free: 5.293 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.112e-06/1.112e-06, allocations: 0 / 360.5 MB, free: 4.312 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.649e-05/2.76e-05, allocations: 6.312 kB / 360.5 MB, free: 4.305 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.009752/0.00978, allocations: 6.863 MB / 367.4 MB, free: 13.41 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002662/0.01244, allocations: 1.11 MB / 368.5 MB, free: 12.3 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003787/0.01282, allocations: 23.88 kB / 368.5 MB, free: 12.27 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004182/0.01324, allocations: 138.6 kB / 368.6 MB, free: 12.14 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002917/0.01353, allocations: 99.09 kB / 368.7 MB, free: 12.04 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007675/0.0143, allocations: 299.3 kB / 369 MB, free: 11.75 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008826/0.01518, allocations: 0.7421 MB / 369.8 MB, free: 11 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005698/0.01575, allocations: 303.1 kB / 370.1 MB, free: 10.69 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005769/0.01633, allocations: 463 kB / 370.5 MB, free: 10.24 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003265/0.01665, allocations: 219.2 kB / 370.7 MB, free: 10.02 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001201/0.01677, allocations: 84 kB / 370.8 MB, free: 9.941 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001428/0.01692, allocations: 88 kB / 370.9 MB, free: 9.855 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001921/0.01711, allocations: 179.4 kB / 371.1 MB, free: 9.68 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000263/0.01737, allocations: 227.4 kB / 371.3 MB, free: 9.457 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001016/0.01839, allocations: 0.8177 MB / 372.1 MB, free: 8.637 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.01839, allocations: 0 / 372.1 MB, free: 8.637 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.296e-06/0.01839, allocations: 7.984 kB / 372.1 MB, free: 8.629 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.077e-06/0.0184, allocations: 0 / 372.1 MB, free: 8.629 MB / 346.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.00153/0.01993, allocations: 0.9797 MB / 373.1 MB, free: 7.609 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/0.01996, allocations: 8.75 kB / 373.1 MB, free: 7.602 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004104/0.02038, allocations: 152.4 kB / 373.3 MB, free: 7.453 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006943/0.02107, allocations: 406.7 kB / 373.6 MB, free: 7.027 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/0.02118, allocations: 62.38 kB / 373.7 MB, free: 6.969 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001334/0.02131, allocations: 84.12 kB / 373.8 MB, free: 6.887 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001359/0.02267, allocations: 0.8238 MB / 374.6 MB, free: 5.984 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/0.02269, allocations: 0 / 374.6 MB, free: 5.984 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.696e-05/0.02274, allocations: 24 kB / 374.6 MB, free: 5.961 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.007e-05/0.02276, allocations: 20 kB / 374.7 MB, free: 5.941 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007146/0.02348, allocations: 357 kB / 375 MB, free: 5.594 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003508/0.02699, allocations: 2.451 MB / 377.5 MB, free: 3.074 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006485/0.02764, allocations: 330.3 kB / 377.8 MB, free: 2.715 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000428/0.02806, allocations: 211.5 kB / 378 MB, free: 2.496 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.991e-05/0.0281, allocations: 8.281 kB / 378 MB, free: 2.488 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.073e-05/0.02814, allocations: 49.67 kB / 378 MB, free: 2.43 MB / 346.7 MB Notification: Performance of pre-optimization done (n=38): time 1.472e-06/0.02815, allocations: 0 / 378 MB, free: 2.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=38): time 0.000779/0.02892, allocations: 391 kB / 378.4 MB, free: 2.043 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001557/0.02908, allocations: 209.6 kB / 378.6 MB, free: 1.789 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005025/0.02958, allocations: 446 kB / 379.1 MB, free: 1.34 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.443e-05/0.02964, allocations: 45.7 kB / 379.1 MB, free: 1.289 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003157/0.02995, allocations: 387.3 kB / 379.5 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000155/0.03011, allocations: 139 kB / 379.6 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002504/0.03036, allocations: 163.9 kB / 379.8 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003301/0.03069, allocations: 0.5472 MB / 380.3 MB, free: 44 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003168/0.031, allocations: 145.2 kB / 380.5 MB, free: 15.9 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000584/0.03159, allocations: 463.8 kB / 380.9 MB, free: 15.34 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007925/0.03238, allocations: 450.5 kB / 381.4 MB, free: 14.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.03238, allocations: 0 / 381.4 MB, free: 14.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0009333/0.03332, allocations: 0.505 MB / 381.9 MB, free: 14.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.68e-05/0.03334, allocations: 8 kB / 381.9 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.03336, allocations: 4 kB / 381.9 MB, free: 14.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.524e-05/0.03338, allocations: 8 kB / 381.9 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003142/0.03369, allocations: 79.83 kB / 382 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.632e-05/0.03371, allocations: 11.88 kB / 382 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002596/0.03397, allocations: 59.61 kB / 382 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.012e-05/0.03401, allocations: 24 kB / 382.1 MB, free: 14.13 MB / 362.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.0003218/0.03433, allocations: 268.7 kB / 382.3 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/0.03445, allocations: 47.77 kB / 382.4 MB, free: 13.81 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001086/0.03456, allocations: 43.86 kB / 382.4 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.03457, allocations: 11.98 kB / 382.4 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.03457, allocations: 0 / 382.4 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.03458, allocations: 3.938 kB / 382.4 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001978/0.03656, allocations: 1.35 MB / 383.8 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.03657, allocations: 4 kB / 383.8 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002504/0.03682, allocations: 47.91 kB / 383.8 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.03682, allocations: 4 kB / 383.8 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.282e-05/0.03686, allocations: 12 kB / 383.8 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.44e-06/0.03686, allocations: 4 kB / 383.8 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.74e-05/0.03688, allocations: 7.938 kB / 383.9 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009025/0.03778, allocations: 0.6458 MB / 384.5 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001721/0.03795, allocations: 71.7 kB / 384.6 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.722e-05/0.038, allocations: 8 kB / 384.6 MB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001695/0.03817, allocations: 15.94 kB / 384.6 MB, free: 11.45 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.03828, allocations: 39.88 kB / 384.6 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.201e-05/0.0383, allocations: 12 kB / 384.6 MB, free: 11.4 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002803/0.03858, allocations: 259 kB / 384.9 MB, free: 11.15 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03858, allocations: 0 / 384.9 MB, free: 11.15 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005014/0.03908, allocations: 143.5 kB / 385 MB, free: 11.01 MB / 362.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 0.0001567/0.03924, allocations: 127 kB / 385.2 MB, free: 10.88 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007533/0.03999, allocations: 379.5 kB / 385.5 MB, free: 10.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.03999, allocations: 0 / 385.5 MB, free: 10.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002641/0.04026, allocations: 163.5 kB / 385.7 MB, free: 10.34 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007258/0.04098, allocations: 121.4 kB / 385.8 MB, free: 10.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001822/0.04281, allocations: 0.9729 MB / 386.8 MB, free: 9.188 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003097/0.04311, allocations: 263.3 kB / 387 MB, free: 8.902 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000227/0.04334, allocations: 64.11 kB / 387.1 MB, free: 8.836 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/0.04346, allocations: 44.5 kB / 387.1 MB, free: 8.793 MB / 362.7 MB Notification: Performance of SimCode: time 7.82e-07/0.04346, allocations: 4 kB / 387.2 MB, free: 8.789 MB / 362.7 MB Notification: Performance of Templates: time 0.01221/0.05567, allocations: 5.154 MB / 392.3 MB, free: 3.762 MB / 362.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=240 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.020385956042446]