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.0006797/0.0006797, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009391/0.001619, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.0006742/0.0006742, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001081/0.001755, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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.9221/0.9221, allocations: 177.2 MB / 189.7 MB, free: 5.246 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08104/1.003, allocations: 53.67 MB / 243.4 MB, free: 15.5 MB / 250.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.1015/0.1015, allocations: 24.15 MB / 268.3 MB, free: 6.973 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1274/0.2289, allocations: 7.763 MB / 276.1 MB, free: 0.8477 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.252e-06/1.252e-06, allocations: 0 / 277.5 MB, free: 84 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.318e-06/1.057e-05, allocations: 2.312 kB / 277.5 MB, free: 80 kB / 266.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.005798/0.005808, allocations: 6.932 MB / 284.5 MB, free: 11.5 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00208/0.007889, allocations: 1.173 MB / 285.6 MB, free: 10.67 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003362/0.008225, allocations: 25.66 kB / 285.7 MB, free: 10.66 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002941/0.008519, allocations: 147.8 kB / 285.8 MB, free: 10.57 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002072/0.008726, allocations: 93.83 kB / 285.9 MB, free: 10.5 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006046/0.009331, allocations: 305.8 kB / 286.2 MB, free: 10.31 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006863/0.01002, allocations: 0.7188 MB / 286.9 MB, free: 9.93 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004114/0.01043, allocations: 308.6 kB / 287.2 MB, free: 9.746 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005477/0.01098, allocations: 489.3 kB / 287.7 MB, free: 9.488 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003049/0.01128, allocations: 214 kB / 287.9 MB, free: 9.387 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001008/0.01138, allocations: 80.97 kB / 288 MB, free: 9.387 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000267/0.01165, allocations: 91.53 kB / 288.1 MB, free: 9.383 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001247/0.01177, allocations: 130.1 kB / 288.2 MB, free: 9.359 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001589/0.01193, allocations: 179.9 kB / 288.4 MB, free: 9.332 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005414/0.01247, allocations: 448 kB / 288.8 MB, free: 9.07 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.182e-05/0.01249, allocations: 1.219 kB / 288.8 MB, free: 9.07 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.02e-07/0.01249, allocations: 0 / 288.8 MB, free: 9.07 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.269e-05/0.0125, allocations: 1.438 kB / 288.8 MB, free: 9.07 MB / 282.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.0009262/0.01343, allocations: 0.9313 MB / 289.8 MB, free: 8.43 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.01346, allocations: 9.781 kB / 289.8 MB, free: 8.43 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000325/0.01378, allocations: 206.4 kB / 290 MB, free: 8.281 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004655/0.01425, allocations: 334.1 kB / 290.3 MB, free: 8.039 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.179e-05/0.01431, allocations: 62 kB / 290.4 MB, free: 8.012 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001007/0.01441, allocations: 82.95 kB / 290.4 MB, free: 7.98 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005192/0.01493, allocations: 0.535 MB / 291 MB, free: 7.59 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.01495, allocations: 1.781 kB / 291 MB, free: 7.59 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.256e-05/0.01498, allocations: 26.69 kB / 291 MB, free: 7.57 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.838e-05/0.015, allocations: 17.94 kB / 291 MB, free: 7.57 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002007/0.0152, allocations: 155.6 kB / 291.2 MB, free: 7.535 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001535/0.01673, allocations: 1.577 MB / 292.7 MB, free: 6.316 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002379/0.01697, allocations: 174.1 kB / 292.9 MB, free: 6.211 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001537/0.01712, allocations: 135 kB / 293 MB, free: 6.148 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.587e-05/0.01714, allocations: 6.531 kB / 293.1 MB, free: 6.148 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.513e-05/0.01717, allocations: 39.55 kB / 293.1 MB, free: 6.105 MB / 282.7 MB Notification: Performance of pre-optimization done (n=34): time 1.503e-06/0.01717, allocations: 5 kB / 293.1 MB, free: 6.102 MB / 282.7 MB Notification: Performance of matching and sorting (n=34): time 0.0002861/0.01745, allocations: 194.5 kB / 293.3 MB, free: 6.023 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.0175, allocations: 115.6 kB / 293.4 MB, free: 5.891 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002124/0.01771, allocations: 317 kB / 293.7 MB, free: 5.66 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.41e-05/0.01775, allocations: 39.52 kB / 293.7 MB, free: 5.621 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.01789, allocations: 324.2 kB / 294.1 MB, free: 5.34 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.707e-05/0.01795, allocations: 104.8 kB / 294.2 MB, free: 5.25 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001071/0.01806, allocations: 126.3 kB / 294.3 MB, free: 5.168 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.799e-05/0.01815, allocations: 351.4 kB / 294.6 MB, free: 4.824 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.558e-05/0.01823, allocations: 63.95 kB / 294.7 MB, free: 4.809 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001712/0.0184, allocations: 231.8 kB / 294.9 MB, free: 4.582 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002422/0.01865, allocations: 310.3 kB / 295.2 MB, free: 4.34 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.01865, allocations: 0 / 295.2 MB, free: 4.34 MB / 282.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0002942/0.01894, allocations: 310.8 kB / 295.5 MB, free: 4.203 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.01896, allocations: 7.906 kB / 295.5 MB, free: 4.203 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.01897, allocations: 4.031 kB / 295.5 MB, free: 4.203 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.01898, allocations: 11.22 kB / 295.6 MB, free: 4.199 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002099/0.01919, allocations: 96.02 kB / 295.6 MB, free: 4.176 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.178e-06/0.0192, allocations: 14.22 kB / 295.7 MB, free: 4.168 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001145/0.01931, allocations: 55.52 kB / 295.7 MB, free: 4.129 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.996e-05/0.01933, allocations: 17.59 kB / 295.7 MB, free: 4.125 MB / 282.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.0001257/0.01946, allocations: 172.8 kB / 295.9 MB, free: 3.969 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.35e-05/0.01951, allocations: 31.38 kB / 295.9 MB, free: 3.957 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.917e-05/0.01956, allocations: 45.61 kB / 296 MB, free: 3.922 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.01957, allocations: 7.031 kB / 296 MB, free: 3.918 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.01957, allocations: 5.344 kB / 296 MB, free: 3.914 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.01958, allocations: 5.172 kB / 296 MB, free: 3.91 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006992/0.02028, allocations: 0.7436 MB / 296.7 MB, free: 3.316 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.02028, allocations: 5.641 kB / 296.7 MB, free: 3.312 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001313/0.02041, allocations: 48.33 kB / 296.8 MB, free: 3.301 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.151e-05/0.02047, allocations: 55.2 kB / 296.8 MB, free: 3.266 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.02048, allocations: 3.844 kB / 296.8 MB, free: 3.266 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.825e-05/0.0205, allocations: 9.781 kB / 296.9 MB, free: 3.262 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.807e-06/0.0205, allocations: 4.156 kB / 296.9 MB, free: 3.262 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.0205, allocations: 1.531 kB / 296.9 MB, free: 3.262 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000306/0.02081, allocations: 377.4 kB / 297.2 MB, free: 2.98 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.688e-05/0.02083, allocations: 12.34 kB / 297.2 MB, free: 2.973 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.498e-05/0.02091, allocations: 8.469 kB / 297.3 MB, free: 2.969 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.402e-05/0.02096, allocations: 43.39 kB / 297.3 MB, free: 2.938 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.879e-06/0.02097, allocations: 6.906 kB / 297.3 MB, free: 2.938 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.974e-05/0.02105, allocations: 103.2 kB / 297.4 MB, free: 2.887 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02105, allocations: 0 / 297.4 MB, free: 2.887 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002586/0.02131, allocations: 136.4 kB / 297.5 MB, free: 2.836 MB / 282.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 0.0001039/0.02141, allocations: 106.6 kB / 297.6 MB, free: 2.746 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002385/0.02165, allocations: 227 kB / 297.9 MB, free: 2.586 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.316e-05/0.02167, allocations: 11.98 kB / 297.9 MB, free: 2.574 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 9.307e-05/0.02176, allocations: 115 kB / 298 MB, free: 2.461 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004706/0.02223, allocations: 0.6019 MB / 298.6 MB, free: 1.766 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001221/0.02345, allocations: 0.9835 MB / 299.6 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.736e-05/0.02353, allocations: 130 kB / 299.7 MB, free: 0.5781 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001203/0.02365, allocations: 54.33 kB / 299.7 MB, free: 0.5234 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001638/0.02381, allocations: 139.3 kB / 299.9 MB, free: 396 kB / 282.7 MB Notification: Performance of SimCode: time 9.32e-07/0.02381, allocations: 0 / 299.9 MB, free: 396 kB / 282.7 MB Notification: Performance of Templates: time 0.007575/0.03139, allocations: 4.738 MB / 304.6 MB, free: 11.8 MB / 298.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: 2.5471161510795355]