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.001045/0.001045, allocations: 93.06 kB / 19.65 MB, free: 280 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.001178/0.001178, allocations: 169.3 kB / 23.02 MB, free: 1.555 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.037/1.037, allocations: 177.1 MB / 203.4 MB, free: 5.633 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.1039/0.1039, allocations: 24.12 MB / 284.1 MB, free: 5.258 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.633e-06/1.633e-06, allocations: 0 / 361.2 MB, free: 3.809 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.239e-05/2.403e-05, allocations: 6.141 kB / 361.2 MB, free: 3.805 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.006264/0.006288, allocations: 6.918 MB / 368.1 MB, free: 12.85 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002023/0.008311, allocations: 1.11 MB / 369.3 MB, free: 11.74 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004275/0.008739, allocations: 27.81 kB / 369.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003455/0.009084, allocations: 142.7 kB / 369.4 MB, free: 11.57 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002207/0.009305, allocations: 87.12 kB / 369.5 MB, free: 11.48 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008821/0.01019, allocations: 303.2 kB / 369.8 MB, free: 11.19 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005915/0.01078, allocations: 0.746 MB / 370.6 MB, free: 10.44 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004143/0.01119, allocations: 307.1 kB / 370.9 MB, free: 10.12 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003806/0.01157, allocations: 455.1 kB / 371.3 MB, free: 9.68 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002386/0.01181, allocations: 223.2 kB / 371.5 MB, free: 9.461 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.419e-05/0.01189, allocations: 80 kB / 371.6 MB, free: 9.383 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001006/0.01199, allocations: 92 kB / 371.7 MB, free: 9.293 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001243/0.01211, allocations: 179.4 kB / 371.9 MB, free: 9.117 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001403/0.01225, allocations: 227.4 kB / 372.1 MB, free: 8.895 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004728/0.01272, allocations: 494.1 kB / 372.6 MB, free: 8.41 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.01273, allocations: 0 / 372.6 MB, free: 8.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.01273, allocations: 4 kB / 372.6 MB, free: 8.406 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.01274, allocations: 0 / 372.6 MB, free: 8.406 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.0009245/0.01366, allocations: 0.9327 MB / 373.5 MB, free: 7.434 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.0137, allocations: 12.75 kB / 373.5 MB, free: 7.422 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002545/0.01395, allocations: 152.4 kB / 373.7 MB, free: 7.273 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004472/0.0144, allocations: 398.9 kB / 374.1 MB, free: 6.855 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.013e-05/0.01445, allocations: 62.38 kB / 374.1 MB, free: 6.797 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.619e-05/0.01453, allocations: 80.12 kB / 374.2 MB, free: 6.719 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006792/0.01521, allocations: 0.6761 MB / 374.9 MB, free: 5.961 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.398e-05/0.01522, allocations: 0 / 374.9 MB, free: 5.961 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.634e-05/0.01526, allocations: 28 kB / 374.9 MB, free: 5.934 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.466e-05/0.01527, allocations: 16 kB / 374.9 MB, free: 5.918 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003443/0.01561, allocations: 231.6 kB / 375.1 MB, free: 5.691 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00217/0.01778, allocations: 2.085 MB / 377.2 MB, free: 3.543 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003865/0.01817, allocations: 264 kB / 377.5 MB, free: 3.25 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002349/0.01841, allocations: 160.1 kB / 377.6 MB, free: 3.082 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.751e-05/0.01842, allocations: 8.281 kB / 377.6 MB, free: 3.074 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/0.01845, allocations: 53.97 kB / 377.7 MB, free: 3.012 MB / 346.7 MB Notification: Performance of pre-optimization done (n=38): time 1.663e-06/0.01846, allocations: 0 / 377.7 MB, free: 3.012 MB / 346.7 MB Notification: Performance of matching and sorting (n=38): time 0.0004661/0.01892, allocations: 290.8 kB / 378 MB, free: 2.723 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.541e-05/0.019, allocations: 209.6 kB / 378.2 MB, free: 2.469 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002718/0.01927, allocations: 366 kB / 378.5 MB, free: 2.098 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.41e-05/0.0193, allocations: 37.7 kB / 378.6 MB, free: 2.055 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00016/0.01946, allocations: 371.2 kB / 378.9 MB, free: 1.688 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.179e-05/0.01954, allocations: 127 kB / 379.1 MB, free: 1.562 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001242/0.01966, allocations: 124 kB / 379.2 MB, free: 1.43 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.01979, allocations: 0.5159 MB / 379.7 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001552/0.01994, allocations: 93.19 kB / 379.8 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002501/0.02019, allocations: 391.8 kB / 380.2 MB, free: 332 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00034/0.02053, allocations: 338.5 kB / 380.5 MB, free: 15.92 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.02054, allocations: 4 kB / 380.5 MB, free: 15.92 MB / 362.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0004869/0.02102, allocations: 409 kB / 380.9 MB, free: 15.51 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.02104, allocations: 8 kB / 380.9 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.02105, allocations: 4 kB / 380.9 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.502e-05/0.02107, allocations: 8 kB / 380.9 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001862/0.02126, allocations: 83.77 kB / 381 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.02127, allocations: 8.406 kB / 381 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001308/0.0214, allocations: 59.61 kB / 381.1 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.494e-05/0.02143, allocations: 24 kB / 381.1 MB, free: 15.32 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.0001578/0.02159, allocations: 220.4 kB / 381.3 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.876e-05/0.02165, allocations: 47.77 kB / 381.4 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.536e-05/0.02171, allocations: 47.86 kB / 381.4 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.563e-06/0.02172, allocations: 8 kB / 381.4 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.02172, allocations: 4 kB / 381.4 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.02173, allocations: 3.938 kB / 381.4 MB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009693/0.0227, allocations: 1.126 MB / 382.5 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.0227, allocations: 0 / 382.5 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001397/0.02284, allocations: 47.91 kB / 382.6 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.02285, allocations: 4 kB / 382.6 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.464e-05/0.02287, allocations: 12 kB / 382.6 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.449e-06/0.02287, allocations: 7.938 kB / 382.6 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.02288, allocations: 4 kB / 382.6 MB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004406/0.02332, allocations: 0.5214 MB / 383.1 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.591e-05/0.0234, allocations: 71.61 kB / 383.2 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.905e-05/0.02343, allocations: 12 kB / 383.2 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.215e-05/0.02353, allocations: 11.98 kB / 383.2 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.465e-05/0.0236, allocations: 39.88 kB / 383.3 MB, free: 13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.02361, allocations: 12 kB / 383.3 MB, free: 12.99 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001298/0.02374, allocations: 219 kB / 383.5 MB, free: 12.78 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02374, allocations: 0 / 383.5 MB, free: 12.78 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005757/0.02432, allocations: 143.5 kB / 383.6 MB, free: 12.64 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 9.857e-05/0.02442, allocations: 123.2 kB / 383.8 MB, free: 12.52 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003752/0.02479, allocations: 279.3 kB / 384 MB, free: 12.24 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.02479, allocations: 0 / 384 MB, free: 12.24 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001254/0.02492, allocations: 124.8 kB / 384.2 MB, free: 12.11 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004126/0.02533, allocations: 121.8 kB / 384.3 MB, free: 12 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001021/0.02635, allocations: 0.9252 MB / 385.2 MB, free: 11.01 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.917e-05/0.02643, allocations: 125.8 kB / 385.3 MB, free: 10.86 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001429/0.02658, allocations: 56.14 kB / 385.4 MB, free: 10.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.334e-05/0.02666, allocations: 48.48 kB / 385.4 MB, free: 10.76 MB / 362.7 MB Notification: Performance of SimCode: time 1.042e-06/0.02666, allocations: 0 / 385.4 MB, free: 10.76 MB / 362.7 MB Notification: Performance of Templates: time 0.009327/0.03599, allocations: 5.145 MB / 390.6 MB, free: 5.73 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: 3.2674926901236176]