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.0009509/0.0009509, allocations: 73.09 kB / 20.65 MB, free: 3.848 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.0009392/0.0009392, allocations: 169 kB / 24.06 MB, free: 456 kB / 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.01/1.01, allocations: 177.1 MB / 204.5 MB, free: 5.504 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.1049/0.1049, allocations: 24.14 MB / 285.2 MB, free: 5.105 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.273e-06/1.273e-06, allocations: 0 / 362.5 MB, free: 3.582 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.356e-05/1.483e-05, allocations: 2.312 kB / 362.5 MB, free: 3.578 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.005439/0.005454, allocations: 6.848 MB / 369.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001635/0.007089, allocations: 1.106 MB / 370.4 MB, free: 11.59 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003068/0.007396, allocations: 31.75 kB / 370.5 MB, free: 11.55 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002983/0.007694, allocations: 142.7 kB / 370.6 MB, free: 11.41 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001955/0.00789, allocations: 91.11 kB / 370.7 MB, free: 11.32 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005285/0.008418, allocations: 299.2 kB / 371 MB, free: 11.03 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005193/0.008938, allocations: 0.7347 MB / 371.7 MB, free: 10.3 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003927/0.00933, allocations: 311 kB / 372 MB, free: 9.977 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003571/0.009687, allocations: 475 kB / 372.5 MB, free: 9.512 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002094/0.009897, allocations: 211.3 kB / 372.7 MB, free: 9.305 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.464e-05/0.009961, allocations: 80 kB / 372.8 MB, free: 9.227 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.087e-05/0.01005, allocations: 87.98 kB / 372.8 MB, free: 9.141 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001076/0.01016, allocations: 175.5 kB / 373 MB, free: 8.969 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001274/0.01029, allocations: 223.4 kB / 373.2 MB, free: 8.75 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003926/0.01068, allocations: 482.1 kB / 373.7 MB, free: 8.277 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.01068, allocations: 0 / 373.7 MB, free: 8.277 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.01068, allocations: 0 / 373.7 MB, free: 8.277 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.01069, allocations: 3.938 kB / 373.7 MB, free: 8.273 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.000795/0.01148, allocations: 0.9249 MB / 374.6 MB, free: 7.309 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.947e-05/0.01151, allocations: 12.75 kB / 374.6 MB, free: 7.297 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000222/0.01173, allocations: 148.4 kB / 374.8 MB, free: 7.152 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000404/0.01214, allocations: 421.4 kB / 375.2 MB, free: 6.715 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.743e-05/0.01219, allocations: 62.38 kB / 375.3 MB, free: 6.656 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.483e-05/0.01225, allocations: 80.12 kB / 375.3 MB, free: 6.578 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004587/0.01271, allocations: 0.5274 MB / 375.9 MB, free: 6 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.01272, allocations: 7.922 kB / 375.9 MB, free: 5.992 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.043e-05/0.01275, allocations: 32 kB / 375.9 MB, free: 5.961 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.01277, allocations: 16 kB / 375.9 MB, free: 5.945 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000192/0.01296, allocations: 173 kB / 376.1 MB, free: 5.777 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001571/0.01453, allocations: 2.075 MB / 378.2 MB, free: 3.629 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002471/0.01478, allocations: 228.4 kB / 378.4 MB, free: 3.371 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001578/0.01493, allocations: 147.2 kB / 378.5 MB, free: 3.215 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.251e-05/0.01495, allocations: 8 kB / 378.5 MB, free: 3.207 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.378e-05/0.01497, allocations: 41.39 kB / 378.6 MB, free: 3.156 MB / 346.7 MB Notification: Performance of pre-optimization done (n=34): time 1.633e-06/0.01497, allocations: 0 / 378.6 MB, free: 3.156 MB / 346.7 MB Notification: Performance of matching and sorting (n=34): time 0.0003119/0.01528, allocations: 229.6 kB / 378.8 MB, free: 2.926 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.983e-05/0.01533, allocations: 148.4 kB / 379 MB, free: 2.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002172/0.01555, allocations: 369.8 kB / 379.3 MB, free: 2.375 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.749e-05/0.0156, allocations: 41.7 kB / 379.4 MB, free: 2.328 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000161/0.01576, allocations: 391 kB / 379.7 MB, free: 1.941 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.64e-05/0.01586, allocations: 111.1 kB / 379.8 MB, free: 1.832 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000114/0.01597, allocations: 131.9 kB / 380 MB, free: 1.695 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.0161, allocations: 0.5234 MB / 380.5 MB, free: 1.16 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.067e-05/0.01619, allocations: 65.25 kB / 380.6 MB, free: 1.094 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002299/0.01642, allocations: 290.4 kB / 380.8 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002373/0.01666, allocations: 350.5 kB / 381.2 MB, free: 300 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.01666, allocations: 0 / 381.2 MB, free: 300 kB / 346.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0003642/0.01702, allocations: 396.9 kB / 381.6 MB, free: 15.9 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.01704, allocations: 8 kB / 381.6 MB, free: 15.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.01705, allocations: 7.984 kB / 381.6 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.01706, allocations: 8 kB / 381.6 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.01722, allocations: 88.36 kB / 381.7 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.01722, allocations: 11.94 kB / 381.7 MB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.01734, allocations: 59.55 kB / 381.8 MB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.065e-05/0.01736, allocations: 20 kB / 381.8 MB, free: 15.7 MB / 362.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.0001309/0.01749, allocations: 220.4 kB / 382 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.424e-05/0.01755, allocations: 47.77 kB / 382 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.637e-05/0.0176, allocations: 43.95 kB / 382.1 MB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.0176, allocations: 7.984 kB / 382.1 MB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.01761, allocations: 3.938 kB / 382.1 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.01761, allocations: 3.984 kB / 382.1 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008647/0.01848, allocations: 1.005 MB / 383.1 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.01848, allocations: 4 kB / 383.1 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001072/0.01859, allocations: 39.91 kB / 383.1 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.01859, allocations: 4 kB / 383.1 MB, free: 14.24 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.702e-05/0.01861, allocations: 12 kB / 383.2 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.927e-06/0.01861, allocations: 7.938 kB / 383.2 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.01861, allocations: 288 / 383.2 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003237/0.01894, allocations: 0.4896 MB / 383.7 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.842e-05/0.019, allocations: 63.61 kB / 383.7 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.644e-05/0.01903, allocations: 8 kB / 383.7 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.772e-05/0.01911, allocations: 12 kB / 383.7 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.949e-05/0.01916, allocations: 35.88 kB / 383.8 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.949e-06/0.01917, allocations: 11.94 kB / 383.8 MB, free: 13.55 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.27e-05/0.01926, allocations: 218.9 kB / 384 MB, free: 13.34 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01926, allocations: 4 kB / 384 MB, free: 13.33 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002619/0.01952, allocations: 135.5 kB / 384.1 MB, free: 13.2 MB / 362.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 8.494e-05/0.01961, allocations: 119.2 kB / 384.3 MB, free: 13.08 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002502/0.01986, allocations: 252.2 kB / 384.5 MB, free: 12.83 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.01986, allocations: 0 / 384.5 MB, free: 12.83 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.784e-05/0.01995, allocations: 107.7 kB / 384.6 MB, free: 12.72 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003478/0.02029, allocations: 93.7 kB / 384.7 MB, free: 12.63 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008592/0.02115, allocations: 0.9138 MB / 385.6 MB, free: 11.64 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.187e-05/0.02123, allocations: 125.9 kB / 385.7 MB, free: 11.5 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001201/0.02135, allocations: 48.16 kB / 385.8 MB, free: 11.45 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001661/0.02151, allocations: 170.1 kB / 385.9 MB, free: 11.28 MB / 362.7 MB Notification: Performance of SimCode: time 8.01e-07/0.02151, allocations: 0 / 385.9 MB, free: 11.28 MB / 362.7 MB Notification: Performance of Templates: time 0.006664/0.02818, allocations: 4.755 MB / 390.7 MB, free: 6.637 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.0188200809061527]