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.0009404/0.0009404, allocations: 73.09 kB / 20.65 MB, free: 3.844 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.001101/0.001101, allocations: 173 kB / 24.06 MB, free: 452 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.008/1.008, allocations: 177.1 MB / 204.5 MB, free: 5.508 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.1035/0.1035, allocations: 24.13 MB / 285.2 MB, free: 5.09 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.032e-06/1.032e-06, allocations: 0 / 362.5 MB, free: 3.559 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.287e-06/1.032e-05, allocations: 5.406 kB / 362.5 MB, free: 3.555 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.005273/0.005283, allocations: 6.836 MB / 369.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001671/0.006954, allocations: 1.118 MB / 370.4 MB, free: 11.56 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000296/0.00725, allocations: 27.81 kB / 370.4 MB, free: 11.54 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002809/0.007531, allocations: 138.7 kB / 370.6 MB, free: 11.4 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001772/0.007708, allocations: 91.06 kB / 370.7 MB, free: 11.31 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004706/0.008178, allocations: 311.2 kB / 371 MB, free: 11 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004839/0.008662, allocations: 0.7382 MB / 371.7 MB, free: 10.27 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003551/0.009017, allocations: 303.1 kB / 372 MB, free: 9.953 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003315/0.009349, allocations: 471 kB / 372.5 MB, free: 9.492 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000198/0.009547, allocations: 211.3 kB / 372.7 MB, free: 9.285 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.377e-05/0.00961, allocations: 80 kB / 372.7 MB, free: 9.207 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.377e-05/0.009694, allocations: 91.98 kB / 372.8 MB, free: 9.117 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 9.571e-05/0.00979, allocations: 171.4 kB / 373 MB, free: 8.949 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000121/0.009911, allocations: 219.5 kB / 373.2 MB, free: 8.734 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003815/0.01029, allocations: 490 kB / 373.7 MB, free: 8.254 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.723e-06/0.01029, allocations: 0 / 373.7 MB, free: 8.254 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.01029, allocations: 0 / 373.7 MB, free: 8.254 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.0103, allocations: 0 / 373.7 MB, free: 8.254 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.0008152/0.01111, allocations: 0.9288 MB / 374.6 MB, free: 7.285 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.049e-05/0.01114, allocations: 8.75 kB / 374.6 MB, free: 7.277 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002345/0.01138, allocations: 156.4 kB / 374.8 MB, free: 7.125 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003892/0.01177, allocations: 413.5 kB / 375.2 MB, free: 6.695 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.924e-05/0.01181, allocations: 62.31 kB / 375.3 MB, free: 6.637 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.487e-05/0.01187, allocations: 84.12 kB / 375.3 MB, free: 6.555 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004558/0.01233, allocations: 0.5274 MB / 375.9 MB, free: 5.977 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.01234, allocations: 0 / 375.9 MB, free: 5.977 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.102e-05/0.01237, allocations: 28 kB / 375.9 MB, free: 5.949 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.217e-05/0.01238, allocations: 19.94 kB / 375.9 MB, free: 5.93 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001941/0.01258, allocations: 173 kB / 376.1 MB, free: 5.762 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001596/0.01417, allocations: 2.095 MB / 378.2 MB, free: 3.594 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002662/0.01444, allocations: 205.3 kB / 378.4 MB, free: 3.355 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000164/0.0146, allocations: 156.7 kB / 378.5 MB, free: 3.195 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.3e-05/0.01462, allocations: 8.375 kB / 378.5 MB, free: 3.188 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.504e-05/0.01464, allocations: 49.31 kB / 378.6 MB, free: 3.129 MB / 346.7 MB Notification: Performance of pre-optimization done (n=34): time 1.413e-06/0.01464, allocations: 0 / 378.6 MB, free: 3.129 MB / 346.7 MB Notification: Performance of matching and sorting (n=34): time 0.0003205/0.01496, allocations: 233.3 kB / 378.8 MB, free: 2.895 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.032e-05/0.01502, allocations: 136.5 kB / 378.9 MB, free: 2.73 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002404/0.01526, allocations: 361.9 kB / 379.3 MB, free: 2.363 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.56e-05/0.01529, allocations: 49.69 kB / 379.3 MB, free: 2.309 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001767/0.01547, allocations: 383 kB / 379.7 MB, free: 1.93 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.853e-05/0.01554, allocations: 123 kB / 379.8 MB, free: 1.809 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001222/0.01566, allocations: 132.1 kB / 380 MB, free: 1.672 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.01579, allocations: 0.5234 MB / 380.5 MB, free: 1.137 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.248e-05/0.01589, allocations: 65.25 kB / 380.6 MB, free: 1.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/0.01607, allocations: 298.4 kB / 380.8 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005418/0.01661, allocations: 342.5 kB / 381.2 MB, free: 276 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.01661, allocations: 4 kB / 381.2 MB, free: 272 kB / 346.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0003788/0.01699, allocations: 393.3 kB / 381.6 MB, free: 15.88 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.01701, allocations: 14.78 kB / 381.6 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.01701, allocations: 4 kB / 381.6 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.01702, allocations: 8 kB / 381.6 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001684/0.01719, allocations: 87.77 kB / 381.7 MB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.0172, allocations: 11.94 kB / 381.7 MB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001148/0.01732, allocations: 51.61 kB / 381.7 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.159e-05/0.01734, allocations: 20 kB / 381.8 MB, free: 15.68 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.0001544/0.01749, allocations: 220.4 kB / 382 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.634e-05/0.01756, allocations: 47.77 kB / 382 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.854e-05/0.01761, allocations: 43.95 kB / 382.1 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.848e-06/0.01761, allocations: 4 kB / 382.1 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.01761, allocations: 3.938 kB / 382.1 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.01762, allocations: 7.984 kB / 382.1 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008171/0.01844, allocations: 1.005 MB / 383.1 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.01844, allocations: 4 kB / 383.1 MB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001139/0.01856, allocations: 52.19 kB / 383.1 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.419e-06/0.01856, allocations: 7.938 kB / 383.2 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.691e-05/0.01858, allocations: 8 kB / 383.2 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.01858, allocations: 7.938 kB / 383.2 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.01858, allocations: 0 / 383.2 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003316/0.01892, allocations: 497.3 kB / 383.7 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.401e-05/0.01898, allocations: 59.67 kB / 383.7 MB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.69e-05/0.01901, allocations: 12 kB / 383.7 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.553e-05/0.01909, allocations: 8 kB / 383.7 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.885e-05/0.01914, allocations: 35.89 kB / 383.8 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.01915, allocations: 11.98 kB / 383.8 MB, free: 13.53 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.825e-05/0.01925, allocations: 214.9 kB / 384 MB, free: 13.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01925, allocations: 0 / 384 MB, free: 13.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002724/0.01952, allocations: 139.5 kB / 384.1 MB, free: 13.18 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.503e-05/0.01961, allocations: 122.8 kB / 384.2 MB, free: 13.06 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002617/0.01987, allocations: 259.5 kB / 384.5 MB, free: 12.81 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.01987, allocations: 4 kB / 384.5 MB, free: 12.8 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.522e-05/0.01996, allocations: 95.44 kB / 384.6 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003534/0.02031, allocations: 98.94 kB / 384.7 MB, free: 12.61 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009017/0.02121, allocations: 0.9082 MB / 385.6 MB, free: 11.63 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.869e-05/0.02129, allocations: 125.9 kB / 385.7 MB, free: 11.48 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001283/0.02142, allocations: 56.14 kB / 385.8 MB, free: 11.43 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000178/0.0216, allocations: 166.1 kB / 385.9 MB, free: 11.26 MB / 362.7 MB Notification: Performance of SimCode: time 8.72e-07/0.0216, allocations: 0 / 385.9 MB, free: 11.26 MB / 362.7 MB Notification: Performance of Templates: time 0.007155/0.02875, allocations: 4.734 MB / 390.7 MB, free: 6.633 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: 2.89429411618039]