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.000966/0.000966, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001251/0.002217, allocations: 435.8 kB / 10.33 MB, free: 368 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.000998/0.000998, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001154/0.002152, allocations: 463.6 kB / 11.68 MB, free: 2.484 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.9506/0.9506, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0956/1.046, allocations: 53.65 MB / 243.2 MB, free: 15.59 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.122/0.122, allocations: 24.14 MB / 268.1 MB, free: 7.074 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1174/0.2395, allocations: 7.75 MB / 275.9 MB, free: 0.8711 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.613e-06/1.613e-06, allocations: 0 / 277.3 MB, free: 144 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 6.913e-06/8.526e-06, allocations: 4.344 kB / 277.3 MB, free: 140 kB / 266.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.005689/0.005697, allocations: 6.926 MB / 284.3 MB, free: 11.55 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001777/0.007474, allocations: 1.171 MB / 285.4 MB, free: 10.73 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002656/0.00774, allocations: 27.66 kB / 285.5 MB, free: 10.72 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002651/0.008005, allocations: 148.2 kB / 285.6 MB, free: 10.63 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001737/0.008179, allocations: 95.12 kB / 285.7 MB, free: 10.55 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004748/0.008653, allocations: 305.1 kB / 286 MB, free: 10.37 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005679/0.009221, allocations: 0.7177 MB / 286.7 MB, free: 9.988 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003695/0.009591, allocations: 309.8 kB / 287 MB, free: 9.805 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003894/0.00998, allocations: 487 kB / 287.5 MB, free: 9.551 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002582/0.01024, allocations: 209.5 kB / 287.7 MB, free: 9.465 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.419e-05/0.01032, allocations: 80.03 kB / 287.8 MB, free: 9.465 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001181/0.01044, allocations: 90.94 kB / 287.9 MB, free: 9.465 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.01055, allocations: 133.8 kB / 288 MB, free: 9.438 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001479/0.0107, allocations: 177 kB / 288.2 MB, free: 9.414 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004324/0.01113, allocations: 445.9 kB / 288.6 MB, free: 9.168 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.276e-05/0.01115, allocations: 0 / 288.6 MB, free: 9.168 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.01115, allocations: 0 / 288.6 MB, free: 9.168 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.585e-05/0.01116, allocations: 1.562 kB / 288.6 MB, free: 9.168 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.0008892/0.01205, allocations: 0.9417 MB / 289.5 MB, free: 8.516 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.279e-05/0.01208, allocations: 9.156 kB / 289.5 MB, free: 8.516 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002515/0.01234, allocations: 205.5 kB / 289.7 MB, free: 8.371 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003685/0.0127, allocations: 337.5 kB / 290.1 MB, free: 8.125 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.271e-05/0.01275, allocations: 62 kB / 290.1 MB, free: 8.098 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.109e-05/0.01281, allocations: 83.69 kB / 290.2 MB, free: 8.066 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00045/0.01326, allocations: 0.5279 MB / 290.7 MB, free: 7.68 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.01327, allocations: 0 / 290.7 MB, free: 7.68 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.843e-05/0.0133, allocations: 31.47 kB / 290.8 MB, free: 7.656 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.418e-05/0.01332, allocations: 16.97 kB / 290.8 MB, free: 7.656 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001838/0.0135, allocations: 154.1 kB / 290.9 MB, free: 7.621 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001404/0.0149, allocations: 1.576 MB / 292.5 MB, free: 6.406 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002203/0.01512, allocations: 183.3 kB / 292.7 MB, free: 6.297 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001437/0.01527, allocations: 129.2 kB / 292.8 MB, free: 6.238 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.311e-05/0.01528, allocations: 5.719 kB / 292.8 MB, free: 6.238 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/0.0153, allocations: 39.88 kB / 292.9 MB, free: 6.195 MB / 282.7 MB Notification: Performance of pre-optimization done (n=34): time 1.693e-06/0.01531, allocations: 1.438 kB / 292.9 MB, free: 6.195 MB / 282.7 MB Notification: Performance of matching and sorting (n=34): time 0.0002458/0.01555, allocations: 187.5 kB / 293.1 MB, free: 6.121 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.185e-05/0.01559, allocations: 123.3 kB / 293.2 MB, free: 5.98 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001789/0.01577, allocations: 320.8 kB / 293.5 MB, free: 5.746 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.0158, allocations: 40.3 kB / 293.5 MB, free: 5.707 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/0.01593, allocations: 315.5 kB / 293.8 MB, free: 5.434 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.439e-05/0.01599, allocations: 113.7 kB / 293.9 MB, free: 5.336 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.01609, allocations: 125.8 kB / 294.1 MB, free: 5.254 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.161e-05/0.01617, allocations: 351.6 kB / 294.4 MB, free: 4.91 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.937e-05/0.01625, allocations: 54.56 kB / 294.5 MB, free: 4.902 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001401/0.01639, allocations: 241.1 kB / 294.7 MB, free: 4.668 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002145/0.01661, allocations: 294.9 kB / 295 MB, free: 4.426 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.01661, allocations: 2.25 kB / 295 MB, free: 4.426 MB / 282.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0002582/0.01687, allocations: 301.6 kB / 295.3 MB, free: 4.301 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.01688, allocations: 13 kB / 295.3 MB, free: 4.297 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.01689, allocations: 4.125 kB / 295.3 MB, free: 4.297 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.0169, allocations: 10.28 kB / 295.3 MB, free: 4.297 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002006/0.0171, allocations: 107.4 kB / 295.4 MB, free: 4.262 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.01711, allocations: 15 kB / 295.4 MB, free: 4.254 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.01722, allocations: 51.25 kB / 295.5 MB, free: 4.219 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.135e-05/0.01724, allocations: 21.05 kB / 295.5 MB, free: 4.211 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.0001187/0.01736, allocations: 167.9 kB / 295.7 MB, free: 4.059 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.343e-05/0.01741, allocations: 39.69 kB / 295.7 MB, free: 4.039 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.433e-05/0.01745, allocations: 39.83 kB / 295.7 MB, free: 4.008 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.01746, allocations: 4.094 kB / 295.7 MB, free: 4.008 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.01746, allocations: 5.281 kB / 295.8 MB, free: 4.004 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.01747, allocations: 5.438 kB / 295.8 MB, free: 4 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008586/0.01832, allocations: 0.7456 MB / 296.5 MB, free: 3.406 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.634e-06/0.01833, allocations: 2.406 kB / 296.5 MB, free: 3.406 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001258/0.01845, allocations: 56.81 kB / 296.6 MB, free: 3.387 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.213e-05/0.0185, allocations: 44.16 kB / 296.6 MB, free: 3.359 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.01851, allocations: 4.094 kB / 296.6 MB, free: 3.359 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.581e-05/0.01852, allocations: 13.94 kB / 296.6 MB, free: 3.352 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.01853, allocations: 3.031 kB / 296.6 MB, free: 3.352 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.01853, allocations: 2.719 kB / 296.6 MB, free: 3.352 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002481/0.01878, allocations: 372.2 kB / 297 MB, free: 3.078 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.799e-05/0.01881, allocations: 14.27 kB / 297 MB, free: 3.07 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.076e-05/0.01888, allocations: 8.344 kB / 297 MB, free: 3.066 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.681e-05/0.01892, allocations: 35.39 kB / 297 MB, free: 3.043 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.578e-06/0.01893, allocations: 9.938 kB / 297.1 MB, free: 3.039 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.051e-05/0.019, allocations: 107.6 kB / 297.2 MB, free: 2.984 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.019, allocations: 0 / 297.2 MB, free: 2.984 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002426/0.01925, allocations: 135.6 kB / 297.3 MB, free: 2.934 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 9.169e-05/0.01934, allocations: 98.02 kB / 297.4 MB, free: 2.852 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002249/0.01956, allocations: 233.1 kB / 297.6 MB, free: 2.742 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/0.01957, allocations: 8.062 kB / 297.6 MB, free: 2.734 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.509e-05/0.01965, allocations: 96.56 kB / 297.7 MB, free: 2.637 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003048/0.01995, allocations: 116.2 kB / 297.8 MB, free: 2.531 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001251/0.0212, allocations: 0.9921 MB / 298.8 MB, free: 1.48 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.083e-05/0.02129, allocations: 130 kB / 299 MB, free: 1.336 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001251/0.02141, allocations: 59.53 kB / 299 MB, free: 1.277 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001546/0.02156, allocations: 139.3 kB / 299.1 MB, free: 1.141 MB / 282.7 MB Notification: Performance of SimCode: time 6.81e-07/0.02157, allocations: 0 / 299.1 MB, free: 1.141 MB / 282.7 MB Notification: Performance of Templates: time 0.007474/0.02904, allocations: 4.853 MB / 304 MB, free: 12.45 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.6580483885481954]