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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo", uses=false) Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SIR") translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001472/0.001472, allocations: 195.5 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2738/0.2738, allocations: 31.18 MB / 321.6 MB, free: 4.406 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00141/0.00141, allocations: 59.91 kB / 388.9 MB, free: 2.574 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3007/0.3021, allocations: 56.36 MB / 445.3 MB, free: 34.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.007/0.3092, allocations: 7.239 MB / 452.5 MB, free: 29.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002209/0.3114, allocations: 1.089 MB / 453.6 MB, free: 28.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007386/0.3122, allocations: 19.44 kB / 453.6 MB, free: 28.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004576/0.3127, allocations: 141.5 kB / 453.8 MB, free: 28.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002942/0.313, allocations: 82.55 kB / 453.9 MB, free: 28.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007046/0.3137, allocations: 300 kB / 454.1 MB, free: 28.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005257/0.3143, allocations: 0.7146 MB / 454.9 MB, free: 27.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005383/0.3148, allocations: 485.2 kB / 455.3 MB, free: 27.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002248/0.315, allocations: 292.2 kB / 455.6 MB, free: 27.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002249/0.3153, allocations: 305.4 kB / 455.9 MB, free: 27.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.067e-05/0.3154, allocations: 83.97 kB / 456 MB, free: 27.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001209/0.3155, allocations: 94.53 kB / 456.1 MB, free: 27.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001104/0.3156, allocations: 172 kB / 456.3 MB, free: 27.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002096/0.3158, allocations: 345.4 kB / 456.6 MB, free: 26.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005386/0.3164, allocations: 0.7715 MB / 457.4 MB, free: 26.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3164, allocations: 6.469 kB / 457.4 MB, free: 26.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.3164, allocations: 4 kB / 457.4 MB, free: 26.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.571e-05/0.3164, allocations: 0 / 457.4 MB, free: 26.56 MB / 350.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.001198/0.3176, allocations: 0.8901 MB / 458.3 MB, free: 25.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.3177, allocations: 9.906 kB / 458.3 MB, free: 25.9 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003439/0.318, allocations: 98.05 kB / 458.4 MB, free: 25.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004686/0.3185, allocations: 426.3 kB / 458.8 MB, free: 25.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.934e-05/0.3185, allocations: 62.38 kB / 458.9 MB, free: 25.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.888e-05/0.3186, allocations: 73.92 kB / 458.9 MB, free: 25.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000928/0.3196, allocations: 0.651 MB / 459.6 MB, free: 25.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.3196, allocations: 1.281 kB / 459.6 MB, free: 25.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.856e-05/0.3197, allocations: 29.97 kB / 459.6 MB, free: 25.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.711e-05/0.3197, allocations: 16.88 kB / 459.6 MB, free: 25.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006355/0.3203, allocations: 380.2 kB / 460 MB, free: 24.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002663/0.323, allocations: 2.279 MB / 462.3 MB, free: 23.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005848/0.3236, allocations: 330.4 kB / 462.6 MB, free: 23.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004149/0.324, allocations: 233.8 kB / 462.8 MB, free: 23.19 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.049e-05/0.3241, allocations: 4.75 kB / 462.8 MB, free: 23.19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.525e-05/0.3241, allocations: 43.25 kB / 462.9 MB, free: 23.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 3.596e-06/0.3241, allocations: 0 / 462.9 MB, free: 23.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007968/0.3249, allocations: 406.7 kB / 463.3 MB, free: 22.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.457e-05/0.325, allocations: 212.5 kB / 463.5 MB, free: 22.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004561/0.3255, allocations: 360.5 kB / 463.8 MB, free: 22.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.348e-05/0.3255, allocations: 42.05 kB / 463.9 MB, free: 22.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001902/0.3257, allocations: 320.3 kB / 464.2 MB, free: 22.22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.355e-05/0.3258, allocations: 116.5 kB / 464.3 MB, free: 22.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001665/0.326, allocations: 124.8 kB / 464.4 MB, free: 22.06 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.82e-05/0.3261, allocations: 350.6 kB / 464.8 MB, free: 21.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003022/0.3264, allocations: 153.5 kB / 464.9 MB, free: 21.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003572/0.3267, allocations: 306.8 kB / 465.2 MB, free: 21.45 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000493/0.3272, allocations: 401.3 kB / 465.6 MB, free: 21.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.3273, allocations: 1.094 kB / 465.6 MB, free: 21.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008521/0.3281, allocations: 0.509 MB / 466.1 MB, free: 20.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.3282, allocations: 12.78 kB / 466.1 MB, free: 20.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.3282, allocations: 4.531 kB / 466.1 MB, free: 20.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.25e-05/0.3282, allocations: 6.719 kB / 466.1 MB, free: 20.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003102/0.3285, allocations: 83.66 kB / 466.2 MB, free: 20.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.401e-05/0.3285, allocations: 11.19 kB / 466.2 MB, free: 20.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002971/0.3288, allocations: 60.34 kB / 466.3 MB, free: 20.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.704e-05/0.3289, allocations: 25.98 kB / 466.3 MB, free: 20.88 MB / 350.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.0002392/0.3291, allocations: 225.4 kB / 466.5 MB, free: 20.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.877e-05/0.3292, allocations: 44.83 kB / 466.6 MB, free: 20.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.347e-05/0.3293, allocations: 45.83 kB / 466.6 MB, free: 20.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.3293, allocations: 4.594 kB / 466.6 MB, free: 20.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/0.3294, allocations: 1.094 kB / 466.6 MB, free: 20.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.3294, allocations: 7.219 kB / 466.6 MB, free: 20.62 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001567/0.3309, allocations: 1.238 MB / 467.9 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.738e-06/0.331, allocations: 2.094 kB / 467.9 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002426/0.3312, allocations: 46.64 kB / 467.9 MB, free: 19.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.072e-06/0.3312, allocations: 3.312 kB / 467.9 MB, free: 19.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.953e-05/0.3313, allocations: 19.03 kB / 467.9 MB, free: 19.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/0.3313, allocations: 7.844 kB / 467.9 MB, free: 19.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.3313, allocations: 2.281 kB / 468 MB, free: 19.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007108/0.332, allocations: 0.584 MB / 468.5 MB, free: 19.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001257/0.3321, allocations: 148.3 kB / 468.7 MB, free: 19.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.632e-05/0.3322, allocations: 20.02 kB / 468.7 MB, free: 19.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/0.3324, allocations: 13.48 kB / 468.7 MB, free: 19.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.81e-05/0.3325, allocations: 41.91 kB / 468.8 MB, free: 19.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.789e-05/0.3325, allocations: 9.531 kB / 468.8 MB, free: 19.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002643/0.3328, allocations: 241.2 kB / 469 MB, free: 19.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3328, allocations: 0 / 469 MB, free: 19.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000508/0.3333, allocations: 138.9 kB / 469.1 MB, free: 19.04 MB / 350.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.0001226/0.3334, allocations: 126.7 kB / 469.3 MB, free: 18.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007393/0.3342, allocations: 396.1 kB / 469.6 MB, free: 18.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.3342, allocations: 5.25 kB / 469.7 MB, free: 18.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000241/0.3345, allocations: 163.2 kB / 469.8 MB, free: 18.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006939/0.3352, allocations: 118.9 kB / 469.9 MB, free: 18.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001594/0.3368, allocations: 0.9638 MB / 470.9 MB, free: 18.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003642/0.3371, allocations: 0.8632 MB / 471.8 MB, free: 17.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002901/0.3374, allocations: 67.38 kB / 471.8 MB, free: 17.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.3375, allocations: 38.39 kB / 471.9 MB, free: 17.36 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3376, allocations: 4 kB / 471.9 MB, free: 17.35 MB / 350.1 MB Notification: Performance of Templates: time 0.01127/0.3488, allocations: 5.043 MB / 476.9 MB, free: 16.49 MB / 350.1 MB make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SIR.makefile (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 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe 2>&1)