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.001531/0.001531, allocations: 77.55 kB / 19.76 MB, free: 2.027 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.00162/0.00162, allocations: 162.4 kB / 23.02 MB, free: 4.949 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.355/1.355, allocations: 177.2 MB / 203.4 MB, free: 8.961 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.1653/0.1653, allocations: 24.14 MB / 283.9 MB, free: 8.938 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.002016/0.002016, allocations: 63.89 kB / 421.2 MB, free: 13.75 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1022, allocations: 60.69 MB / 481.9 MB, free: 0.9414 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.1987/0.3009, allocations: 6.709 MB / 488.6 MB, free: 40.22 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001489/0.3024, allocations: 1.098 MB / 489.7 MB, free: 39.45 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002809/0.3027, allocations: 21.16 kB / 489.7 MB, free: 39.44 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002982/0.303, allocations: 149.7 kB / 489.9 MB, free: 39.35 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001979/0.3032, allocations: 83.3 kB / 490 MB, free: 39.29 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005342/0.3037, allocations: 298.9 kB / 490.3 MB, free: 39.11 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004763/0.3042, allocations: 0.7207 MB / 491 MB, free: 38.74 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003826/0.3046, allocations: 309.5 kB / 491.3 MB, free: 38.57 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002102/0.3048, allocations: 311.8 kB / 491.6 MB, free: 38.39 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002228/0.305, allocations: 261.2 kB / 491.8 MB, free: 38.25 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.684e-05/0.3051, allocations: 80.47 kB / 491.9 MB, free: 38.25 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001055/0.3052, allocations: 89.97 kB / 492 MB, free: 38.25 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001045/0.3053, allocations: 179 kB / 492.2 MB, free: 38.13 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001526/0.3055, allocations: 276.1 kB / 492.5 MB, free: 37.95 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005158/0.306, allocations: 0.8018 MB / 493.3 MB, free: 37.57 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.306, allocations: 0 / 493.3 MB, free: 37.57 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.306, allocations: 3.5 kB / 493.3 MB, free: 37.57 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.777e-06/0.306, allocations: 0 / 493.3 MB, free: 37.57 MB / 446.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.001071/0.3071, allocations: 0.8385 MB / 494.1 MB, free: 36.99 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.886e-05/0.3071, allocations: 17.62 kB / 494.1 MB, free: 36.99 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002945/0.3074, allocations: 98.97 kB / 494.2 MB, free: 36.95 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004918/0.3079, allocations: 387 kB / 494.6 MB, free: 36.67 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.462e-05/0.3079, allocations: 59.38 kB / 494.6 MB, free: 36.64 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.864e-05/0.308, allocations: 75.16 kB / 494.7 MB, free: 36.62 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008302/0.3088, allocations: 0.7687 MB / 495.5 MB, free: 36.14 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.862e-05/0.3089, allocations: 0 / 495.5 MB, free: 36.14 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.449e-05/0.3089, allocations: 30.44 kB / 495.5 MB, free: 36.11 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.172e-05/0.3089, allocations: 21.09 kB / 495.5 MB, free: 36.11 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005776/0.3095, allocations: 382.5 kB / 495.9 MB, free: 35.98 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002149/0.3116, allocations: 1.82 MB / 497.7 MB, free: 34.75 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004846/0.3121, allocations: 305 kB / 498 MB, free: 34.59 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003193/0.3124, allocations: 214.6 kB / 498.2 MB, free: 34.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.254e-05/0.3125, allocations: 7.469 kB / 498.2 MB, free: 34.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.739e-05/0.3125, allocations: 41.12 kB / 498.3 MB, free: 34.46 MB / 446.1 MB Notification: Performance of pre-optimization done (n=38): time 1.513e-06/0.3125, allocations: 0 / 498.3 MB, free: 34.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=38): time 0.0005796/0.3131, allocations: 406.9 kB / 498.7 MB, free: 34.27 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.3131, allocations: 211.9 kB / 498.9 MB, free: 34.02 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002397/0.3133, allocations: 318.9 kB / 499.2 MB, free: 33.84 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.396e-05/0.3134, allocations: 51.92 kB / 499.3 MB, free: 33.79 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001282/0.3135, allocations: 324.5 kB / 499.6 MB, free: 33.53 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.955e-05/0.3136, allocations: 120.7 kB / 499.7 MB, free: 33.44 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/0.3137, allocations: 118.9 kB / 499.8 MB, free: 33.38 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.903e-05/0.3138, allocations: 353.5 kB / 0.4884 GB, free: 33.05 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002496/0.314, allocations: 147.7 kB / 0.4886 GB, free: 32.99 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00032/0.3143, allocations: 414.3 kB / 0.489 GB, free: 32.63 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004305/0.3148, allocations: 405 kB / 0.4893 GB, free: 32.36 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.3148, allocations: 0 / 0.4893 GB, free: 32.36 MB / 446.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0006794/0.3154, allocations: 0.5005 MB / 0.4898 GB, free: 32.14 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.3155, allocations: 6.656 kB / 0.4898 GB, free: 32.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.3155, allocations: 3.219 kB / 0.4898 GB, free: 32.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/0.3155, allocations: 17.47 kB / 0.4899 GB, free: 32.13 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002737/0.3158, allocations: 79.12 kB / 0.4899 GB, free: 32.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.3158, allocations: 13.41 kB / 0.49 GB, free: 32.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002536/0.316, allocations: 58.14 kB / 0.49 GB, free: 32.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.23e-05/0.3161, allocations: 24.41 kB / 0.49 GB, free: 32.07 MB / 446.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.0001809/0.3162, allocations: 223.2 kB / 0.4902 GB, free: 31.89 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.169e-05/0.3163, allocations: 38.98 kB / 0.4903 GB, free: 31.88 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.897e-05/0.3164, allocations: 45.78 kB / 0.4903 GB, free: 31.84 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.3164, allocations: 9.688 kB / 0.4903 GB, free: 31.84 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.3164, allocations: 0 / 0.4903 GB, free: 31.84 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.3164, allocations: 3.469 kB / 0.4903 GB, free: 31.84 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001103/0.3175, allocations: 1.069 MB / 0.4914 GB, free: 31.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.3175, allocations: 3.031 kB / 0.4914 GB, free: 31.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002368/0.3178, allocations: 57.67 kB / 0.4914 GB, free: 31.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.3178, allocations: 7.188 kB / 0.4914 GB, free: 31.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.3178, allocations: 7.094 kB / 0.4915 GB, free: 31.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.3178, allocations: 8.625 kB / 0.4915 GB, free: 31.08 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.3178, allocations: 10.86 kB / 0.4915 GB, free: 31.08 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006194/0.3184, allocations: 0.5772 MB / 0.492 GB, free: 30.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001122/0.3185, allocations: 65.47 kB / 0.4921 GB, free: 30.66 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.727e-05/0.3186, allocations: 18.66 kB / 0.4921 GB, free: 30.65 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000189/0.3188, allocations: 13.97 kB / 0.4921 GB, free: 30.65 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.619e-05/0.3188, allocations: 45.88 kB / 0.4922 GB, free: 30.63 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.717e-05/0.3189, allocations: 9.344 kB / 0.4922 GB, free: 30.63 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000151/0.319, allocations: 200 kB / 0.4924 GB, free: 30.52 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.319, allocations: 0 / 0.4924 GB, free: 30.52 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003923/0.3194, allocations: 140.8 kB / 0.4925 GB, free: 30.46 MB / 446.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 8.522e-05/0.3195, allocations: 132.8 kB / 0.4926 GB, free: 30.36 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004966/0.32, allocations: 354.6 kB / 0.493 GB, free: 30.24 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.32, allocations: 0 / 0.493 GB, free: 30.24 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001908/0.3202, allocations: 153 kB / 0.4931 GB, free: 30.18 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005854/0.3208, allocations: 113.6 kB / 0.4932 GB, free: 30.16 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/0.3219, allocations: 0.9751 MB / 0.4942 GB, free: 29.53 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001893/0.3221, allocations: 263.4 kB / 0.4944 GB, free: 29.42 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001814/0.3223, allocations: 64.83 kB / 0.4945 GB, free: 29.41 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.562e-05/0.3224, allocations: 43.41 kB / 0.4945 GB, free: 29.4 MB / 446.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3224, allocations: 0 / 0.4945 GB, free: 29.4 MB / 446.1 MB Notification: Performance of Templates: time 0.008605/0.331, allocations: 5.176 MB / 0.4996 GB, free: 28.72 MB / 446.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 ida -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.54129839700181] Failed to read output from testmodel.py, exit status != 0: 0.3382291329326108 0.34770358700000004 0.039363747000000004 Calling exit ...