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.001246/0.001246, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.001831/0.001831, allocations: 173 kB / 23.49 MB, free: 1.059 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.032/1.032, allocations: 177.1 MB / 203.8 MB, free: 5.648 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.1086/0.1086, allocations: 24.14 MB / 284.4 MB, free: 5.344 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.603e-06/1.603e-06, allocations: 0 / 361.2 MB, free: 4.32 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.398e-05/2.558e-05, allocations: 2.312 kB / 361.2 MB, free: 4.316 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.00572/0.005746, allocations: 6.91 MB / 368.1 MB, free: 13.37 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002129/0.007875, allocations: 1.114 MB / 369.3 MB, free: 12.25 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004145/0.00829, allocations: 27.81 kB / 369.3 MB, free: 12.23 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003479/0.008637, allocations: 142.7 kB / 369.4 MB, free: 12.09 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002232/0.008861, allocations: 91.12 kB / 369.5 MB, free: 12 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006202/0.009481, allocations: 307.2 kB / 369.8 MB, free: 11.7 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005843/0.01007, allocations: 0.7343 MB / 370.6 MB, free: 10.96 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004305/0.0105, allocations: 307.1 kB / 370.9 MB, free: 10.64 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003614/0.01086, allocations: 451.1 kB / 371.3 MB, free: 10.2 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002397/0.0111, allocations: 223.2 kB / 371.5 MB, free: 9.984 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 7.151e-05/0.01117, allocations: 80 kB / 371.6 MB, free: 9.906 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001006/0.01127, allocations: 100 kB / 371.7 MB, free: 9.809 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.01138, allocations: 183.4 kB / 371.9 MB, free: 9.629 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001459/0.01153, allocations: 231.3 kB / 372.1 MB, free: 9.402 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005033/0.01203, allocations: 494.1 kB / 372.6 MB, free: 8.918 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.01204, allocations: 0 / 372.6 MB, free: 8.918 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.01204, allocations: 0 / 372.6 MB, free: 8.918 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.01205, allocations: 0 / 372.6 MB, free: 8.918 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.0009457/0.01299, allocations: 0.9289 MB / 373.5 MB, free: 7.949 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.01303, allocations: 12.75 kB / 373.5 MB, free: 7.938 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002765/0.01331, allocations: 152.4 kB / 373.7 MB, free: 7.789 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004542/0.01376, allocations: 398.8 kB / 374.1 MB, free: 7.371 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.572e-05/0.01382, allocations: 62.38 kB / 374.1 MB, free: 7.312 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.006e-05/0.0139, allocations: 84.11 kB / 374.2 MB, free: 7.23 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006582/0.01456, allocations: 0.6722 MB / 374.9 MB, free: 6.477 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.01457, allocations: 0 / 374.9 MB, free: 6.477 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.759e-05/0.01461, allocations: 32 kB / 374.9 MB, free: 6.445 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.59e-05/0.01462, allocations: 16 kB / 374.9 MB, free: 6.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003515/0.01498, allocations: 227.7 kB / 375.1 MB, free: 6.207 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001824/0.0168, allocations: 2.081 MB / 377.2 MB, free: 4.062 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003811/0.01718, allocations: 262.9 kB / 377.5 MB, free: 3.777 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002352/0.01742, allocations: 167.5 kB / 377.6 MB, free: 3.602 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.726e-05/0.01743, allocations: 8.281 kB / 377.6 MB, free: 3.594 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.853e-05/0.01746, allocations: 45.98 kB / 377.7 MB, free: 3.539 MB / 346.7 MB Notification: Performance of pre-optimization done (n=38): time 2.154e-06/0.01746, allocations: 0 / 377.7 MB, free: 3.539 MB / 346.7 MB Notification: Performance of matching and sorting (n=38): time 0.0004529/0.01792, allocations: 294.8 kB / 378 MB, free: 3.246 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.439e-05/0.01799, allocations: 213.6 kB / 378.2 MB, free: 2.988 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002531/0.01824, allocations: 362.3 kB / 378.5 MB, free: 2.621 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.435e-05/0.01828, allocations: 45.69 kB / 378.6 MB, free: 2.57 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001655/0.01844, allocations: 367.5 kB / 378.9 MB, free: 2.207 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.046e-05/0.01851, allocations: 123 kB / 379.1 MB, free: 2.086 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001233/0.01864, allocations: 132 kB / 379.2 MB, free: 1.945 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.01877, allocations: 0.5157 MB / 379.7 MB, free: 1.418 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001565/0.01893, allocations: 81.25 kB / 379.8 MB, free: 1.34 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002609/0.01919, allocations: 395.7 kB / 380.2 MB, free: 0.8477 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003204/0.01951, allocations: 334.5 kB / 380.5 MB, free: 464 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.01951, allocations: 4 kB / 380.5 MB, free: 460 kB / 346.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0004709/0.01998, allocations: 413.4 kB / 380.9 MB, free: 40 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.02, allocations: 12.03 kB / 380.9 MB, free: 28 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.02001, allocations: 4 kB / 380.9 MB, free: 24 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.02002, allocations: 8 kB / 380.9 MB, free: 16 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001875/0.02021, allocations: 79.83 kB / 381 MB, free: 15.94 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.02022, allocations: 11.88 kB / 381 MB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001285/0.02035, allocations: 59.61 kB / 381.1 MB, free: 15.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.617e-05/0.02038, allocations: 27.98 kB / 381.1 MB, free: 15.84 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.000151/0.02053, allocations: 216.4 kB / 381.3 MB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.322e-05/0.02062, allocations: 51.77 kB / 381.4 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.732e-05/0.02068, allocations: 47.86 kB / 381.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.02068, allocations: 4 kB / 381.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.02069, allocations: 4 kB / 381.4 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.0207, allocations: 7.922 kB / 381.4 MB, free: 15.5 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009834/0.02168, allocations: 1.126 MB / 382.6 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.02168, allocations: 0 / 382.6 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001421/0.02182, allocations: 52.17 kB / 382.6 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.02183, allocations: 4 kB / 382.6 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.335e-05/0.02185, allocations: 11.98 kB / 382.6 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.02186, allocations: 4 kB / 382.6 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.02186, allocations: 7.938 kB / 382.6 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004422/0.0223, allocations: 0.5172 MB / 383.2 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.279e-05/0.02239, allocations: 75.59 kB / 383.2 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.063e-05/0.02242, allocations: 8 kB / 383.2 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.867e-05/0.0225, allocations: 8 kB / 383.2 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.172e-05/0.02258, allocations: 47.88 kB / 383.3 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.02259, allocations: 8 kB / 383.3 MB, free: 13.51 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001297/0.02272, allocations: 223 kB / 383.5 MB, free: 13.29 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.02272, allocations: 0 / 383.5 MB, free: 13.29 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003052/0.02302, allocations: 147.5 kB / 383.7 MB, free: 13.15 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.0001012/0.02313, allocations: 123.2 kB / 383.8 MB, free: 13.02 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003703/0.0235, allocations: 283.7 kB / 384.1 MB, free: 12.74 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.0235, allocations: 0 / 384.1 MB, free: 12.74 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001268/0.02362, allocations: 119.5 kB / 384.2 MB, free: 12.62 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003995/0.02402, allocations: 113.2 kB / 384.3 MB, free: 12.52 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001031/0.02506, allocations: 0.9142 MB / 385.2 MB, free: 11.54 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.648e-05/0.02514, allocations: 125.8 kB / 385.3 MB, free: 11.39 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000142/0.02528, allocations: 64.11 kB / 385.4 MB, free: 11.32 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.446e-05/0.02536, allocations: 44.5 kB / 385.4 MB, free: 11.28 MB / 362.7 MB Notification: Performance of SimCode: time 1.052e-06/0.02536, allocations: 0 / 385.4 MB, free: 11.28 MB / 362.7 MB Notification: Performance of Templates: time 0.007743/0.0331, allocations: 5.155 MB / 390.6 MB, free: 6.242 MB / 362.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: 3.148157465038821]