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.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/package.mo", uses=false) 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.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_BusinessSimulation.Examples.SIR") translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 105.5 kB / 16.27 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001723/0.001723, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.372/1.372, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.1687/0.1687, allocations: 31.14 MB / 322.2 MB, free: 124 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 66.36 kB / 389.5 MB, free: 38.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08573/0.08699, allocations: 56.38 MB / 445.9 MB, free: 2.977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.007971/0.09499, allocations: 7.23 MB / 453.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002244/0.09727, allocations: 1.087 MB / 454.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005661/0.09787, allocations: 31.81 kB / 454.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004151/0.09829, allocations: 142.7 kB / 454.4 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003127/0.09866, allocations: 79.16 kB / 454.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007576/0.09943, allocations: 298.4 kB / 454.8 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007226/0.1002, allocations: 0.7189 MB / 455.5 MB, free: 9.363 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006519/0.1008, allocations: 486.4 kB / 456 MB, free: 8.871 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003122/0.1012, allocations: 294.9 kB / 456.3 MB, free: 8.582 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003403/0.1015, allocations: 306.5 kB / 456.6 MB, free: 8.281 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.1016, allocations: 84 kB / 456.6 MB, free: 8.199 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001356/0.1018, allocations: 92 kB / 456.7 MB, free: 8.109 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001441/0.1019, allocations: 171.5 kB / 456.9 MB, free: 7.941 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002924/0.1022, allocations: 350.2 kB / 457.2 MB, free: 7.598 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006781/0.1029, allocations: 0.7635 MB / 458 MB, free: 6.832 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1029, allocations: 4 kB / 458 MB, free: 6.828 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1029, allocations: 0 / 458 MB, free: 6.828 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.015e-05/0.103, allocations: 0 / 458 MB, free: 6.828 MB / 334.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.00142/0.1044, allocations: 0.9015 MB / 458.9 MB, free: 5.875 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.16e-05/0.1044, allocations: 8.031 kB / 458.9 MB, free: 5.867 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003528/0.1048, allocations: 92.06 kB / 459 MB, free: 5.777 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005453/0.1053, allocations: 434.5 kB / 459.4 MB, free: 5.316 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.4e-05/0.1054, allocations: 62 kB / 459.5 MB, free: 5.258 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.951e-05/0.1055, allocations: 76 kB / 459.6 MB, free: 5.184 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009788/0.1065, allocations: 0.6422 MB / 460.2 MB, free: 4.508 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.1065, allocations: 4 kB / 460.2 MB, free: 4.504 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.487e-05/0.1066, allocations: 28 kB / 460.2 MB, free: 4.477 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.482e-05/0.1066, allocations: 16 kB / 460.3 MB, free: 4.461 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006793/0.1073, allocations: 381 kB / 460.6 MB, free: 4.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002946/0.1102, allocations: 2.293 MB / 462.9 MB, free: 1.695 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000584/0.1108, allocations: 324.5 kB / 463.2 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003946/0.1112, allocations: 233.2 kB / 463.5 MB, free: 1.121 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.928e-05/0.1113, allocations: 4.281 kB / 463.5 MB, free: 1.117 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.1113, allocations: 39.16 kB / 463.5 MB, free: 1.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=38): time 1.623e-06/0.1113, allocations: 3.938 kB / 463.5 MB, free: 1.066 MB / 334.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007241/0.112, allocations: 398.5 kB / 463.9 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.486e-05/0.1121, allocations: 217.9 kB / 464.1 MB, free: 420 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000388/0.1125, allocations: 369.3 kB / 464.5 MB, free: 48 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.494e-05/0.1126, allocations: 41.7 kB / 464.5 MB, free: 0 / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002134/0.1128, allocations: 312.2 kB / 464.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.641e-05/0.1129, allocations: 122.3 kB / 464.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001607/0.1131, allocations: 114.3 kB / 465.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.1132, allocations: 354.7 kB / 465.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003209/0.1136, allocations: 153.2 kB / 465.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004009/0.114, allocations: 307.3 kB / 465.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005528/0.1145, allocations: 398.5 kB / 466.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.1146, allocations: 8 kB / 466.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008409/0.1154, allocations: 0.506 MB / 466.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.1154, allocations: 14.28 kB / 466.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.1154, allocations: 4.469 kB / 466.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.1155, allocations: 8 kB / 466.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003121/0.1158, allocations: 83.83 kB / 466.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.238e-05/0.1158, allocations: 4 kB / 466.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002959/0.1161, allocations: 63.36 kB / 466.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.556e-05/0.1162, allocations: 20 kB / 466.9 MB, free: 13.44 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.0002436/0.1164, allocations: 226.2 kB / 467.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001041/0.1165, allocations: 43.47 kB / 467.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.61e-05/0.1166, allocations: 48.14 kB / 467.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.1166, allocations: 4 kB / 467.3 MB, free: 13.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.1166, allocations: 8 kB / 467.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.1167, allocations: 3.984 kB / 467.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001569/0.1182, allocations: 1.241 MB / 468.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1183, allocations: 4 kB / 468.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002534/0.1185, allocations: 55.84 kB / 468.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.162e-06/0.1185, allocations: 4 kB / 468.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.669e-05/0.1186, allocations: 12.19 kB / 468.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/0.1186, allocations: 8 kB / 468.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/0.1186, allocations: 7.984 kB / 468.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007089/0.1193, allocations: 0.5758 MB / 469.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001498/0.1195, allocations: 148.5 kB / 469.3 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.827e-05/0.1195, allocations: 23.92 kB / 469.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002033/0.1197, allocations: 8 kB / 469.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.106e-05/0.1198, allocations: 35.95 kB / 469.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.809e-05/0.1198, allocations: 15.94 kB / 469.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002443/0.1201, allocations: 239.2 kB / 469.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1201, allocations: 0 / 469.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004541/0.1206, allocations: 135.4 kB / 469.8 MB, free: 10.46 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.0001224/0.1207, allocations: 127.1 kB / 469.9 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007334/0.1214, allocations: 395 kB / 470.3 MB, free: 9.945 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.1214, allocations: 0 / 470.3 MB, free: 9.945 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002366/0.1217, allocations: 159.8 kB / 470.4 MB, free: 9.789 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006868/0.1224, allocations: 118.6 kB / 470.6 MB, free: 9.672 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001497/0.1239, allocations: 0.9917 MB / 471.5 MB, free: 8.621 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004262/0.1243, allocations: 0.8703 MB / 472.4 MB, free: 7.727 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.1245, allocations: 39.44 kB / 472.5 MB, free: 7.688 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1245, allocations: 0 / 472.5 MB, free: 7.688 MB / 350.1 MB Notification: Performance of Templates: time 0.009344/0.1338, allocations: 6.172 MB / 478.6 MB, free: 1.555 MB / 350.1 MB make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SIR.makefile (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 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SIR.pipe 2>&1)