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.00127/0.00127, allocations: 76.94 kB / 19.93 MB, free: 4.543 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.00116/0.00116, allocations: 172.9 kB / 23.35 MB, free: 1.129 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.006/1.006, allocations: 177.1 MB / 203.8 MB, free: 5.477 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.1245/0.1245, allocations: 24.16 MB / 284.4 MB, free: 5.141 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.422e-06/1.422e-06, allocations: 0 / 308.5 MB, free: 8.742 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.487e-05/1.629e-05, allocations: 2.312 kB / 308.5 MB, free: 8.738 MB / 282.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.006215/0.006231, allocations: 6.927 MB / 315.4 MB, free: 1.816 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00192/0.008151, allocations: 1.15 MB / 316.5 MB, free: 0.668 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000309/0.00846, allocations: 27.81 kB / 316.6 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005267/0.008987, allocations: 138.7 kB / 316.7 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002134/0.0092, allocations: 104 kB / 316.8 MB, free: 412 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005218/0.009722, allocations: 304 kB / 317.1 MB, free: 108 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005158/0.01024, allocations: 0.7265 MB / 317.8 MB, free: 15.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003807/0.01062, allocations: 324.3 kB / 318.1 MB, free: 15.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003702/0.01099, allocations: 467 kB / 318.6 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002255/0.01121, allocations: 215.3 kB / 318.8 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.987e-05/0.01128, allocations: 80 kB / 318.9 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001146/0.0114, allocations: 88 kB / 319 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001122/0.01151, allocations: 179.4 kB / 319.1 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001378/0.01165, allocations: 219.4 kB / 319.4 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004576/0.01211, allocations: 482.1 kB / 319.8 MB, free: 13.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.01211, allocations: 0 / 319.8 MB, free: 13.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.01211, allocations: 4 kB / 319.8 MB, free: 13.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.01212, allocations: 4 kB / 319.8 MB, free: 13.34 MB / 298.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.0007643/0.01288, allocations: 0.7964 MB / 320.6 MB, free: 12.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.01291, allocations: 12.69 kB / 320.6 MB, free: 12.51 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002231/0.01314, allocations: 132.8 kB / 320.8 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003804/0.01352, allocations: 332.1 kB / 321.1 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.371e-05/0.01356, allocations: 62.38 kB / 321.2 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.031e-05/0.01362, allocations: 76.12 kB / 321.2 MB, free: 11.89 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004668/0.01409, allocations: 0.5342 MB / 321.8 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.0141, allocations: 4 kB / 321.8 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.88e-05/0.01413, allocations: 24 kB / 321.8 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.01414, allocations: 20 kB / 321.8 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001769/0.01432, allocations: 153 kB / 322 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001552/0.01587, allocations: 1.565 MB / 323.5 MB, free: 9.504 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002336/0.0161, allocations: 177.2 kB / 323.7 MB, free: 9.305 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000414/0.01652, allocations: 133.7 kB / 323.8 MB, free: 9.168 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.407e-05/0.01653, allocations: 8 kB / 323.8 MB, free: 9.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.406e-05/0.01656, allocations: 38.56 kB / 323.9 MB, free: 9.113 MB / 298.7 MB Notification: Performance of pre-optimization done (n=34): time 1.653e-06/0.01656, allocations: 0 / 323.9 MB, free: 9.113 MB / 298.7 MB Notification: Performance of matching and sorting (n=34): time 0.0002753/0.01683, allocations: 197.5 kB / 324.1 MB, free: 8.914 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.619e-05/0.01689, allocations: 140.4 kB / 324.2 MB, free: 8.746 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001963/0.01709, allocations: 314.6 kB / 324.5 MB, free: 8.426 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.141e-05/0.01712, allocations: 41.7 kB / 324.6 MB, free: 8.379 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001494/0.01727, allocations: 320.8 kB / 324.9 MB, free: 8.059 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.658e-05/0.01732, allocations: 107.1 kB / 325 MB, free: 7.953 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.01743, allocations: 130.2 kB / 325.1 MB, free: 7.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.657e-05/0.01751, allocations: 350.7 kB / 325.4 MB, free: 7.469 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.79e-05/0.01759, allocations: 57.53 kB / 325.5 MB, free: 7.414 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001577/0.01775, allocations: 241.8 kB / 325.7 MB, free: 7.109 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002468/0.018, allocations: 290.6 kB / 326 MB, free: 6.762 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.018, allocations: 0 / 326 MB, free: 6.762 MB / 298.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0002918/0.01829, allocations: 310.1 kB / 326.3 MB, free: 6.453 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.01831, allocations: 11.94 kB / 326.3 MB, free: 6.441 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.01832, allocations: 4.594 kB / 326.3 MB, free: 6.438 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.01833, allocations: 8 kB / 326.3 MB, free: 6.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001978/0.01853, allocations: 95.81 kB / 326.4 MB, free: 6.336 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.287e-06/0.01854, allocations: 15.88 kB / 326.5 MB, free: 6.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000107/0.01865, allocations: 51.62 kB / 326.5 MB, free: 6.27 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.853e-05/0.01867, allocations: 23.98 kB / 326.5 MB, free: 6.246 MB / 298.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.0001372/0.01881, allocations: 176.5 kB / 326.7 MB, free: 6.062 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.874e-05/0.01887, allocations: 31.97 kB / 326.7 MB, free: 6.031 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.632e-05/0.01892, allocations: 39.95 kB / 326.8 MB, free: 5.992 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.01892, allocations: 4 kB / 326.8 MB, free: 5.988 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.01892, allocations: 7.938 kB / 326.8 MB, free: 5.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.01893, allocations: 0 / 326.8 MB, free: 5.98 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006765/0.01961, allocations: 0.7516 MB / 327.5 MB, free: 5.176 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.01961, allocations: 0 / 327.5 MB, free: 5.176 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002642/0.01987, allocations: 51.84 kB / 327.6 MB, free: 5.125 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.01988, allocations: 8.281 kB / 327.6 MB, free: 5.117 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.01989, allocations: 12 kB / 327.6 MB, free: 5.105 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.0199, allocations: 4 kB / 327.6 MB, free: 5.102 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.0199, allocations: 4 kB / 327.6 MB, free: 5.098 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002783/0.02018, allocations: 375.4 kB / 328 MB, free: 4.691 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.055e-05/0.02024, allocations: 47.69 kB / 328 MB, free: 4.645 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.474e-05/0.02026, allocations: 8 kB / 328 MB, free: 4.637 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.348e-05/0.02034, allocations: 8 kB / 328 MB, free: 4.629 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.086e-05/0.0204, allocations: 43.81 kB / 328.1 MB, free: 4.586 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.136e-05/0.02041, allocations: 12 kB / 328.1 MB, free: 4.574 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.527e-05/0.02048, allocations: 104.6 kB / 328.2 MB, free: 4.469 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02048, allocations: 0 / 328.2 MB, free: 4.469 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002526/0.02074, allocations: 135.5 kB / 328.3 MB, free: 4.336 MB / 298.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 9.863e-05/0.02084, allocations: 104.3 kB / 328.4 MB, free: 4.23 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000239/0.02107, allocations: 226.1 kB / 328.7 MB, free: 4.008 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/0.02109, allocations: 4 kB / 328.7 MB, free: 4.004 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.313e-05/0.02117, allocations: 96.78 kB / 328.7 MB, free: 3.906 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003121/0.02148, allocations: 96.56 kB / 328.8 MB, free: 3.82 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009293/0.02241, allocations: 0.895 MB / 329.7 MB, free: 2.863 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.234e-05/0.02249, allocations: 122 kB / 329.9 MB, free: 2.723 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001281/0.02262, allocations: 52.11 kB / 329.9 MB, free: 2.672 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001738/0.02279, allocations: 143.3 kB / 330 MB, free: 2.531 MB / 298.7 MB Notification: Performance of SimCode: time 7.42e-07/0.0228, allocations: 0 / 330 MB, free: 2.531 MB / 298.7 MB Notification: Performance of Templates: time 0.007311/0.03011, allocations: 4.672 MB / 334.7 MB, free: 13.97 MB / 314.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 -s gbode -gbm=radauIIA3 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.835282285232097]