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.0006062/0.0006062, allocations: 88.7 kB / 20.2 MB, free: 4.23 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.0007018/0.0007018, allocations: 161.3 kB / 23.52 MB, free: 0.918 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 0.8212/0.8212, allocations: 177.2 MB / 203.9 MB, free: 5.605 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.0944/0.0944, allocations: 24.13 MB / 284.5 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 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.302e-06/1.302e-06, allocations: 0 / 361.3 MB, free: 4.355 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.491e-05/2.621e-05, allocations: 2.312 kB / 361.3 MB, free: 4.352 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.005415/0.005442, allocations: 6.722 MB / 368 MB, free: 13.6 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002016/0.007458, allocations: 1.106 MB / 369.1 MB, free: 12.49 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004492/0.007907, allocations: 27.81 kB / 369.1 MB, free: 12.46 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003322/0.008239, allocations: 138.7 kB / 369.3 MB, free: 12.33 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002196/0.008459, allocations: 99.09 kB / 369.3 MB, free: 12.23 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006344/0.009093, allocations: 303.3 kB / 369.6 MB, free: 11.93 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006012/0.009695, allocations: 0.7304 MB / 370.4 MB, free: 11.2 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004235/0.01012, allocations: 311 kB / 370.7 MB, free: 10.88 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004012/0.01052, allocations: 455.1 kB / 371.1 MB, free: 10.44 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000218/0.01074, allocations: 211.2 kB / 371.3 MB, free: 10.23 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.799e-05/0.01081, allocations: 80 kB / 371.4 MB, free: 10.15 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.091e-05/0.0109, allocations: 96 kB / 371.5 MB, free: 10.06 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001061/0.011, allocations: 175.4 kB / 371.7 MB, free: 9.887 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001482/0.01115, allocations: 235.3 kB / 371.9 MB, free: 9.656 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006158/0.01177, allocations: 0.81 MB / 372.7 MB, free: 8.844 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.01177, allocations: 0 / 372.7 MB, free: 8.844 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.01177, allocations: 0 / 372.7 MB, free: 8.844 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.2e-05/0.01178, allocations: 7.938 kB / 372.7 MB, free: 8.836 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.001059/0.01284, allocations: 0.8371 MB / 373.6 MB, free: 7.965 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.594e-05/0.01288, allocations: 12.75 kB / 373.6 MB, free: 7.953 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002681/0.01315, allocations: 148.4 kB / 373.7 MB, free: 7.809 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004526/0.0136, allocations: 404 kB / 374.1 MB, free: 7.387 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.708e-05/0.01364, allocations: 58.38 kB / 374.2 MB, free: 7.332 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.99e-05/0.01371, allocations: 76.12 kB / 374.2 MB, free: 7.258 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007689/0.01448, allocations: 0.7755 MB / 375 MB, free: 6.414 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.01449, allocations: 0 / 375 MB, free: 6.414 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.594e-05/0.01452, allocations: 28 kB / 375 MB, free: 6.387 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.241e-05/0.01454, allocations: 16 kB / 375.1 MB, free: 6.371 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004777/0.01501, allocations: 385 kB / 375.4 MB, free: 5.996 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001862/0.01688, allocations: 1.85 MB / 377.3 MB, free: 4.094 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004198/0.0173, allocations: 303.2 kB / 377.6 MB, free: 3.773 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002591/0.01756, allocations: 215 kB / 377.8 MB, free: 3.555 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.959e-05/0.01758, allocations: 8.281 kB / 377.8 MB, free: 3.547 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/0.0176, allocations: 43.16 kB / 377.8 MB, free: 3.496 MB / 346.7 MB Notification: Performance of pre-optimization done (n=38): time 2.084e-06/0.01761, allocations: 0 / 377.8 MB, free: 3.496 MB / 346.7 MB Notification: Performance of matching and sorting (n=38): time 0.0005216/0.01813, allocations: 406.8 kB / 378.2 MB, free: 3.094 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.326e-05/0.0182, allocations: 217.6 kB / 378.4 MB, free: 2.832 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002419/0.01844, allocations: 316.3 kB / 378.8 MB, free: 2.52 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.665e-05/0.01848, allocations: 45.7 kB / 378.8 MB, free: 2.469 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001535/0.01863, allocations: 332.7 kB / 379.1 MB, free: 2.141 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.567e-05/0.0187, allocations: 122.9 kB / 379.2 MB, free: 2.02 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000116/0.01881, allocations: 122.3 kB / 379.4 MB, free: 1.891 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.491e-05/0.01891, allocations: 346.8 kB / 379.7 MB, free: 1.543 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000197/0.01911, allocations: 157.2 kB / 379.9 MB, free: 1.391 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002856/0.01939, allocations: 406 kB / 380.3 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003676/0.01976, allocations: 401.3 kB / 380.6 MB, free: 480 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.01976, allocations: 0 / 380.6 MB, free: 480 kB / 346.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0005568/0.02032, allocations: 0.5322 MB / 381.2 MB, free: 15.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.02034, allocations: 9.875 kB / 381.2 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.02034, allocations: 0 / 381.2 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.02036, allocations: 8.469 kB / 381.2 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001747/0.02053, allocations: 83.83 kB / 381.3 MB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.165e-05/0.02055, allocations: 15.88 kB / 381.3 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001531/0.0207, allocations: 67.59 kB / 381.4 MB, free: 15.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.331e-05/0.02072, allocations: 20 kB / 381.4 MB, free: 15.73 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.0001826/0.0209, allocations: 229.7 kB / 381.6 MB, free: 15.49 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.935e-05/0.02097, allocations: 47.77 kB / 381.7 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.989e-05/0.02102, allocations: 43.86 kB / 381.7 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.02103, allocations: 4 kB / 381.7 MB, free: 15.4 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.02104, allocations: 3.984 kB / 381.7 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.618e-06/0.02104, allocations: 7.938 kB / 381.7 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009864/0.02203, allocations: 1.081 MB / 382.8 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.02203, allocations: 0 / 382.8 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001408/0.02217, allocations: 51.91 kB / 382.8 MB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.02218, allocations: 4 kB / 382.8 MB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.976e-05/0.02219, allocations: 12.25 kB / 382.9 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.0222, allocations: 4 kB / 382.9 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.0222, allocations: 7.938 kB / 382.9 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000499/0.0227, allocations: 0.5844 MB / 383.5 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.523e-05/0.02279, allocations: 67.73 kB / 383.5 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.019e-05/0.02282, allocations: 11.98 kB / 383.5 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.02292, allocations: 16 kB / 383.5 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.113e-05/0.02299, allocations: 35.88 kB / 383.6 MB, free: 13.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.465e-05/0.02301, allocations: 20.12 kB / 383.6 MB, free: 13.39 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001366/0.02314, allocations: 207 kB / 383.8 MB, free: 13.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02314, allocations: 0 / 383.8 MB, free: 13.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00032/0.02346, allocations: 143.5 kB / 383.9 MB, free: 13.05 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.0001056/0.02357, allocations: 123.1 kB / 384.1 MB, free: 12.93 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004361/0.024, allocations: 355.1 kB / 384.4 MB, free: 12.58 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.02401, allocations: 0 / 384.4 MB, free: 12.58 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001595/0.02417, allocations: 156 kB / 384.6 MB, free: 12.43 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004125/0.02458, allocations: 108.9 kB / 384.7 MB, free: 12.32 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00113/0.02571, allocations: 0.9535 MB / 385.6 MB, free: 11.31 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001949/0.0259, allocations: 267.3 kB / 385.9 MB, free: 11.02 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001646/0.02607, allocations: 64.14 kB / 385.9 MB, free: 10.96 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.225e-05/0.02614, allocations: 40.48 kB / 386 MB, free: 10.92 MB / 362.7 MB Notification: Performance of SimCode: time 1.042e-06/0.02614, allocations: 0 / 386 MB, free: 10.92 MB / 362.7 MB Notification: Performance of Templates: time 0.007965/0.03411, allocations: 5.158 MB / 391.1 MB, free: 5.883 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=480 -s cvode -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 2.6024652775377035]