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.001257/0.001257, allocations: 78.41 kB / 19.76 MB, free: 1.898 MB / 14.72 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.001332/0.001332, allocations: 157 kB / 23.01 MB, free: 4.578 MB / 14.72 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.352/1.352, allocations: 177.2 MB / 203.4 MB, free: 9.254 MB / 190.1 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.1655/0.1655, allocations: 24.14 MB / 283.9 MB, free: 9.09 MB / 270.1 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: BusinessSimulation requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002022/0.002022, allocations: 63.91 kB / 421.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2527, allocations: 60.69 MB / 481.9 MB, free: 12.69 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.008102/0.2608, allocations: 6.708 MB / 488.6 MB, free: 7.484 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002122/0.2629, allocations: 1.098 MB / 489.7 MB, free: 6.586 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003495/0.2632, allocations: 27.56 kB / 489.7 MB, free: 6.574 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003685/0.2636, allocations: 139.2 kB / 489.9 MB, free: 6.449 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002504/0.2639, allocations: 84.28 kB / 489.9 MB, free: 6.375 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006878/0.2645, allocations: 299 kB / 490.2 MB, free: 6.121 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007608/0.2653, allocations: 0.7195 MB / 491 MB, free: 5.414 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005077/0.2658, allocations: 311.1 kB / 491.3 MB, free: 5.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005166/0.2663, allocations: 474.7 kB / 491.7 MB, free: 4.625 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003132/0.2666, allocations: 258.5 kB / 492 MB, free: 4.371 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001032/0.2667, allocations: 84 kB / 492.1 MB, free: 4.289 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001411/0.2669, allocations: 91.98 kB / 492.1 MB, free: 4.199 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001631/0.267, allocations: 179.5 kB / 492.3 MB, free: 4.023 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002658/0.2673, allocations: 278.6 kB / 492.6 MB, free: 3.75 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008205/0.2681, allocations: 0.8041 MB / 493.4 MB, free: 2.945 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.2681, allocations: 0 / 493.4 MB, free: 2.945 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.2681, allocations: 0 / 493.4 MB, free: 2.945 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.378e-05/0.2682, allocations: 0 / 493.4 MB, free: 2.945 MB / 382.1 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.001397/0.2695, allocations: 0.8449 MB / 494.2 MB, free: 2.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.2696, allocations: 12.69 kB / 494.3 MB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003462/0.2699, allocations: 104.4 kB / 494.4 MB, free: 1.957 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006477/0.2706, allocations: 384.5 kB / 494.7 MB, free: 1.559 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.177e-05/0.2706, allocations: 62 kB / 494.8 MB, free: 1.496 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000113/0.2707, allocations: 72 kB / 494.9 MB, free: 1.426 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001122/0.2719, allocations: 0.7872 MB / 495.6 MB, free: 0.5781 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.2719, allocations: 0 / 495.6 MB, free: 0.5781 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.969e-05/0.2719, allocations: 28 kB / 495.7 MB, free: 0.5508 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.781e-05/0.272, allocations: 16 kB / 495.7 MB, free: 0.5352 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007069/0.2727, allocations: 373 kB / 496.1 MB, free: 176 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00283/0.2755, allocations: 1.83 MB / 497.9 MB, free: 14.28 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006139/0.2761, allocations: 315.5 kB / 498.2 MB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004061/0.2765, allocations: 221.9 kB / 498.4 MB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.382e-05/0.2765, allocations: 4.281 kB / 498.4 MB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.244e-05/0.2766, allocations: 42.83 kB / 498.5 MB, free: 13.68 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 1.653e-06/0.2766, allocations: 0 / 498.5 MB, free: 13.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.000735/0.2773, allocations: 398.8 kB / 498.8 MB, free: 13.28 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001244/0.2774, allocations: 217.6 kB / 499.1 MB, free: 13.02 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003492/0.2778, allocations: 312.6 kB / 499.4 MB, free: 12.71 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.163e-05/0.2778, allocations: 49.7 kB / 499.4 MB, free: 12.66 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002471/0.2781, allocations: 328.5 kB / 499.7 MB, free: 12.33 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/0.2782, allocations: 119 kB / 499.9 MB, free: 12.21 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001818/0.2784, allocations: 122.3 kB / 500 MB, free: 12.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.2785, allocations: 346.8 kB / 0.4886 GB, free: 11.74 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000312/0.2788, allocations: 153.2 kB / 0.4887 GB, free: 11.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004868/0.2793, allocations: 410 kB / 0.4891 GB, free: 11.1 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005913/0.2799, allocations: 393.5 kB / 0.4895 GB, free: 10.67 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.2799, allocations: 4 kB / 0.4895 GB, free: 10.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008884/0.2808, allocations: 0.5048 MB / 0.49 GB, free: 10.15 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.2808, allocations: 8 kB / 0.49 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.2808, allocations: 4.469 kB / 0.49 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.2809, allocations: 15.94 kB / 0.49 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003138/0.2812, allocations: 83.77 kB / 0.4901 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.2812, allocations: 8 kB / 0.4901 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002763/0.2815, allocations: 59.61 kB / 0.4902 GB, free: 9.977 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.86e-05/0.2815, allocations: 20 kB / 0.4902 GB, free: 9.957 MB / 398.1 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.0002632/0.2818, allocations: 225.7 kB / 0.4904 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.851e-05/0.2819, allocations: 39.77 kB / 0.4904 GB, free: 9.688 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000108/0.282, allocations: 47.8 kB / 0.4905 GB, free: 9.633 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.282, allocations: 12 kB / 0.4905 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.282, allocations: 3.938 kB / 0.4905 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.643e-06/0.282, allocations: 3.984 kB / 0.4905 GB, free: 9.613 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001545/0.2835, allocations: 1.077 MB / 0.4916 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.2835, allocations: 0 / 0.4916 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002521/0.2838, allocations: 47.91 kB / 0.4916 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.62e-06/0.2838, allocations: 8.25 kB / 0.4916 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.987e-05/0.2838, allocations: 12 kB / 0.4916 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.742e-06/0.2838, allocations: 7.938 kB / 0.4916 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.2838, allocations: 7.938 kB / 0.4916 GB, free: 8.391 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007836/0.2846, allocations: 0.5809 MB / 0.4922 GB, free: 7.77 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001376/0.2848, allocations: 67.73 kB / 0.4923 GB, free: 7.703 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.355e-05/0.2848, allocations: 8 kB / 0.4923 GB, free: 7.695 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001955/0.285, allocations: 15.98 kB / 0.4923 GB, free: 7.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.034e-05/0.2851, allocations: 39.88 kB / 0.4923 GB, free: 7.641 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.073e-05/0.2851, allocations: 16 kB / 0.4923 GB, free: 7.625 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002236/0.2853, allocations: 199.1 kB / 0.4925 GB, free: 7.434 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2853, allocations: 0 / 0.4925 GB, free: 7.434 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004431/0.2858, allocations: 139.5 kB / 0.4927 GB, free: 7.297 MB / 398.1 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.0001511/0.2859, allocations: 135.2 kB / 0.4928 GB, free: 7.156 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000666/0.2866, allocations: 351.4 kB / 0.4931 GB, free: 6.816 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.2866, allocations: 4 kB / 0.4931 GB, free: 6.812 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000252/0.2868, allocations: 151.8 kB / 0.4933 GB, free: 6.664 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006417/0.2875, allocations: 112.1 kB / 0.4934 GB, free: 6.559 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001628/0.2891, allocations: 0.981 MB / 0.4943 GB, free: 5.52 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003001/0.2894, allocations: 267.3 kB / 0.4946 GB, free: 5.227 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000206/0.2896, allocations: 64.12 kB / 0.4947 GB, free: 5.164 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.2897, allocations: 36.5 kB / 0.4947 GB, free: 5.129 MB / 398.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2897, allocations: 4 kB / 0.4947 GB, free: 5.125 MB / 398.1 MB Notification: Performance of Templates: time 0.01066/0.3004, allocations: 5.171 MB / 0.4997 GB, free: 64 kB / 398.1 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=480 -s gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.375987879931927] Failed to read output from testmodel.py, exit status != 0: 0.30854662298224866 0.32261172400000004 0.051483664000000005 Calling exit ...