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.001224/0.001224, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.001357/0.001357, allocations: 164.3 kB / 23.01 MB, free: 4.594 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.348/1.348, allocations: 177.2 MB / 203.4 MB, free: 8.992 MB / 190.1 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.1634/0.1634, allocations: 24.14 MB / 283.9 MB, free: 8.969 MB / 270.1 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: 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.001972/0.001972, allocations: 71.88 kB / 421.2 MB, free: 13.77 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1095, allocations: 60.69 MB / 481.9 MB, free: 0.9688 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.2052/0.3147, allocations: 6.707 MB / 488.6 MB, free: 40.48 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002162/0.3168, allocations: 1.099 MB / 489.7 MB, free: 39.71 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003186/0.3172, allocations: 27.22 kB / 489.7 MB, free: 39.7 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003691/0.3175, allocations: 141.4 kB / 489.9 MB, free: 39.61 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002229/0.3178, allocations: 86.84 kB / 490 MB, free: 39.55 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006178/0.3184, allocations: 300.9 kB / 490.3 MB, free: 39.37 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005257/0.3189, allocations: 0.7177 MB / 491 MB, free: 39 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004296/0.3193, allocations: 312.5 kB / 491.3 MB, free: 38.82 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002203/0.3195, allocations: 306.6 kB / 491.6 MB, free: 38.66 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002471/0.3198, allocations: 265.9 kB / 491.8 MB, free: 38.51 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.095e-05/0.3199, allocations: 81.12 kB / 491.9 MB, free: 38.51 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001149/0.32, allocations: 94.78 kB / 492 MB, free: 38.51 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.3201, allocations: 174.2 kB / 492.2 MB, free: 38.39 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001612/0.3203, allocations: 277 kB / 492.5 MB, free: 38.21 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005395/0.3208, allocations: 0.8007 MB / 493.3 MB, free: 37.83 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.3208, allocations: 3 kB / 493.3 MB, free: 37.83 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3208, allocations: 0 / 493.3 MB, free: 37.83 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.838e-06/0.3208, allocations: 0 / 493.3 MB, free: 37.83 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.00111/0.3219, allocations: 0.8362 MB / 494.1 MB, free: 37.25 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.343e-05/0.322, allocations: 11.91 kB / 494.1 MB, free: 37.25 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002952/0.3223, allocations: 107.8 kB / 494.2 MB, free: 37.2 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004863/0.3227, allocations: 388.7 kB / 494.6 MB, free: 36.92 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.631e-05/0.3228, allocations: 62.22 kB / 494.7 MB, free: 36.89 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.163e-05/0.3229, allocations: 72.12 kB / 494.7 MB, free: 36.86 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008365/0.3237, allocations: 0.7727 MB / 495.5 MB, free: 36.38 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.263e-05/0.3237, allocations: 0.9844 kB / 495.5 MB, free: 36.38 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.401e-05/0.3238, allocations: 29.81 kB / 495.5 MB, free: 36.36 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.295e-05/0.3238, allocations: 14.91 kB / 495.5 MB, free: 36.36 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005636/0.3244, allocations: 378.8 kB / 495.9 MB, free: 36.23 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0021/0.3265, allocations: 1.83 MB / 497.7 MB, free: 35 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004751/0.3269, allocations: 299.9 kB / 498 MB, free: 34.84 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003212/0.3273, allocations: 213.6 kB / 498.2 MB, free: 34.75 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.617e-05/0.3273, allocations: 3.375 kB / 498.2 MB, free: 34.75 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.86e-05/0.3273, allocations: 42.41 kB / 498.3 MB, free: 34.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=38): time 1.562e-06/0.3273, allocations: 3.188 kB / 498.3 MB, free: 34.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=38): time 0.0005787/0.3279, allocations: 405.8 kB / 498.7 MB, free: 34.52 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.823e-05/0.3279, allocations: 210.5 kB / 498.9 MB, free: 34.27 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002528/0.3282, allocations: 320.8 kB / 499.2 MB, free: 34.09 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.365e-05/0.3282, allocations: 40.39 kB / 499.2 MB, free: 34.05 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001338/0.3283, allocations: 325.5 kB / 499.6 MB, free: 33.79 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.429e-05/0.3284, allocations: 135.8 kB / 499.7 MB, free: 33.68 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/0.3285, allocations: 118.2 kB / 499.8 MB, free: 33.62 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.904e-05/0.3286, allocations: 343.5 kB / 0.4884 GB, free: 33.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002444/0.3288, allocations: 157.5 kB / 0.4886 GB, free: 33.24 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003141/0.3291, allocations: 410.5 kB / 0.489 GB, free: 32.88 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004169/0.3296, allocations: 397.9 kB / 0.4893 GB, free: 32.61 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.3296, allocations: 3.156 kB / 0.4893 GB, free: 32.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0006659/0.3302, allocations: 0.5035 MB / 0.4898 GB, free: 32.38 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.3302, allocations: 6.469 kB / 0.4898 GB, free: 32.38 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.3303, allocations: 7.062 kB / 0.4898 GB, free: 32.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.3303, allocations: 10.31 kB / 0.4899 GB, free: 32.38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002699/0.3305, allocations: 85 kB / 0.4899 GB, free: 32.36 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.3306, allocations: 13.12 kB / 0.49 GB, free: 32.36 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002599/0.3308, allocations: 62.88 kB / 0.49 GB, free: 32.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.262e-05/0.3308, allocations: 22.41 kB / 0.49 GB, free: 32.32 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.0001919/0.331, allocations: 224.2 kB / 0.4902 GB, free: 32.13 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.359e-05/0.3311, allocations: 38.61 kB / 0.4903 GB, free: 32.11 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.232e-05/0.3312, allocations: 49.19 kB / 0.4903 GB, free: 32.08 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.3312, allocations: 6.438 kB / 0.4903 GB, free: 32.08 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.271e-06/0.3312, allocations: 0 / 0.4903 GB, free: 32.08 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.3312, allocations: 0 / 0.4903 GB, free: 32.08 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001244/0.3325, allocations: 1.073 MB / 0.4914 GB, free: 31.35 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.3325, allocations: 0 / 0.4914 GB, free: 31.35 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002234/0.3327, allocations: 55.73 kB / 0.4914 GB, free: 31.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.3327, allocations: 3.344 kB / 0.4914 GB, free: 31.34 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.3327, allocations: 17.72 kB / 0.4915 GB, free: 31.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.3327, allocations: 3.375 kB / 0.4915 GB, free: 31.33 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.3327, allocations: 11.22 kB / 0.4915 GB, free: 31.32 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005387/0.3332, allocations: 0.5766 MB / 0.492 GB, free: 30.94 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/0.3334, allocations: 69.17 kB / 0.4921 GB, free: 30.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.033e-05/0.3334, allocations: 10.22 kB / 0.4921 GB, free: 30.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001837/0.3336, allocations: 13.78 kB / 0.4921 GB, free: 30.89 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.837e-05/0.3337, allocations: 42.48 kB / 0.4922 GB, free: 30.88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.808e-05/0.3337, allocations: 13.62 kB / 0.4922 GB, free: 30.88 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001569/0.3338, allocations: 200.4 kB / 0.4924 GB, free: 30.76 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3338, allocations: 4 kB / 0.4924 GB, free: 30.76 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004053/0.3342, allocations: 145 kB / 0.4925 GB, free: 30.71 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 9.032e-05/0.3343, allocations: 128.3 kB / 0.4926 GB, free: 30.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005146/0.3348, allocations: 352.1 kB / 0.493 GB, free: 30.49 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3348, allocations: 0 / 0.493 GB, free: 30.49 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001903/0.335, allocations: 156.4 kB / 0.4931 GB, free: 30.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005877/0.3356, allocations: 109.9 kB / 0.4932 GB, free: 30.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001146/0.3368, allocations: 0.984 MB / 0.4942 GB, free: 29.77 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001926/0.337, allocations: 270.4 kB / 0.4944 GB, free: 29.66 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001803/0.3371, allocations: 61.62 kB / 0.4945 GB, free: 29.66 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.67e-05/0.3372, allocations: 38.97 kB / 0.4945 GB, free: 29.65 MB / 446.1 MB Notification: Performance of SimCode: time 4.1e-07/0.3372, allocations: 0 / 0.4945 GB, free: 29.65 MB / 446.1 MB Notification: Performance of Templates: time 0.008854/0.3461, allocations: 5.171 MB / 0.4996 GB, free: 28.95 MB / 446.1 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=480 -s ida -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.505233749980107] Failed to read output from testmodel.py, exit status != 0: 0.35345742700155824 0.36379209700000004 0.040394169 Calling exit ...