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: "" <> buildModelFMU(BusinessSimulation.Examples.SIR,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SIR,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SIR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005204/0.005204, allocations: 102 kB / 15.73 MB, free: 6.062 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.001408/0.001408, allocations: 192 kB / 16.67 MB, free: 5.973 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.373/1.373, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.1749/0.1749, allocations: 31.13 MB / 321.7 MB, free: 32 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001893/0.001893, allocations: 63.91 kB / 446.2 MB, free: 2.102 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09651/0.09841, allocations: 56.36 MB / 0.4908 GB, free: 9.75 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.008697/0.1071, allocations: 7.24 MB / 0.4979 GB, free: 2.477 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002378/0.1096, allocations: 1.102 MB / 0.499 GB, free: 1.371 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004937/0.1101, allocations: 19.88 kB / 0.499 GB, free: 1.352 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004172/0.1105, allocations: 138.7 kB / 0.4991 GB, free: 1.215 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002673/0.1108, allocations: 75.19 kB / 0.4992 GB, free: 1.141 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007505/0.1116, allocations: 299.3 kB / 0.4995 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007419/0.1123, allocations: 0.7305 MB / 0.5002 GB, free: 116 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1931/0.3054, allocations: 463.7 kB / 0.5006 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003692/0.3058, allocations: 299.8 kB / 0.5009 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002898/0.3061, allocations: 301.3 kB / 0.5012 GB, free: 5.68 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001031/0.3062, allocations: 84 kB / 0.5013 GB, free: 5.68 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001498/0.3064, allocations: 93.28 kB / 0.5014 GB, free: 5.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001253/0.3065, allocations: 176.4 kB / 0.5015 GB, free: 5.652 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002168/0.3067, allocations: 348.5 kB / 0.5019 GB, free: 5.551 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007042/0.3074, allocations: 0.7939 MB / 0.5026 GB, free: 5.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.3074, allocations: 1.906 kB / 0.5026 GB, free: 5.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3075, allocations: 0 / 0.5026 GB, free: 5.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.061e-05/0.3075, allocations: 0.5938 kB / 0.5026 GB, free: 5.43 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.001223/0.3087, allocations: 0.9213 MB / 0.5035 GB, free: 4.871 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.505e-05/0.3087, allocations: 9.406 kB / 0.5035 GB, free: 4.871 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.307e-05/0.3088, allocations: 116.2 kB / 0.5037 GB, free: 4.832 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003156/0.3092, allocations: 97.8 kB / 0.5038 GB, free: 4.793 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004861/0.3097, allocations: 456.1 kB / 0.5042 GB, free: 4.539 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.278e-05/0.3097, allocations: 62.56 kB / 0.5042 GB, free: 4.531 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.77e-05/0.3098, allocations: 75.44 kB / 0.5043 GB, free: 4.531 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009223/0.3107, allocations: 0.6502 MB / 0.505 GB, free: 4.398 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/0.3108, allocations: 2.297 kB / 0.505 GB, free: 4.398 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.825e-05/0.3108, allocations: 29.91 kB / 0.505 GB, free: 4.398 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.3108, allocations: 17.28 kB / 0.505 GB, free: 4.398 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006424/0.3115, allocations: 379 kB / 0.5054 GB, free: 4.395 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00258/0.3141, allocations: 2.258 MB / 0.5076 GB, free: 3.445 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005213/0.3146, allocations: 323.6 kB / 0.5079 GB, free: 3.375 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003802/0.315, allocations: 231.3 kB / 0.5081 GB, free: 3.352 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.572e-05/0.315, allocations: 4.438 kB / 0.5081 GB, free: 3.352 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.924e-05/0.3151, allocations: 43.84 kB / 0.5081 GB, free: 3.312 MB / 382.1 MB Notification: Performance of pre-optimization done (n=38): time 2.225e-06/0.3151, allocations: 1.5 kB / 0.5081 GB, free: 3.312 MB / 382.1 MB Notification: Performance of matching and sorting (n=38): time 0.0006718/0.3158, allocations: 399.2 kB / 0.5085 GB, free: 3.246 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.1e-05/0.3158, allocations: 219.2 kB / 0.5087 GB, free: 2.992 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003494/0.3162, allocations: 366.2 kB / 0.5091 GB, free: 2.875 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.892e-05/0.3162, allocations: 42.28 kB / 0.5091 GB, free: 2.844 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001521/0.3164, allocations: 318 kB / 0.5094 GB, free: 2.656 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.448e-05/0.3165, allocations: 130.7 kB / 0.5096 GB, free: 2.574 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001554/0.3166, allocations: 116.8 kB / 0.5097 GB, free: 2.559 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.538e-05/0.3167, allocations: 355.3 kB / 0.51 GB, free: 2.246 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002875/0.317, allocations: 153.5 kB / 0.5101 GB, free: 2.242 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000342/0.3173, allocations: 309 kB / 0.5104 GB, free: 2.082 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00047/0.3178, allocations: 407.2 kB / 0.5108 GB, free: 1.938 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.3178, allocations: 1.812 kB / 0.5108 GB, free: 1.938 MB / 382.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008251/0.3187, allocations: 0.5033 MB / 0.5113 GB, free: 1.867 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.3187, allocations: 10.41 kB / 0.5113 GB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.3187, allocations: 8 kB / 0.5113 GB, free: 1.863 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.3187, allocations: 9.594 kB / 0.5114 GB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002994/0.319, allocations: 81.53 kB / 0.5114 GB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.319, allocations: 10.06 kB / 0.5114 GB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002933/0.3193, allocations: 61.98 kB / 0.5115 GB, free: 1.832 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.613e-05/0.3194, allocations: 23.08 kB / 0.5115 GB, free: 1.832 MB / 382.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.0002083/0.3196, allocations: 231.7 kB / 0.5117 GB, free: 1.699 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.259e-05/0.3197, allocations: 48.36 kB / 0.5118 GB, free: 1.672 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.814e-05/0.3198, allocations: 51.84 kB / 0.5118 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.3198, allocations: 4.688 kB / 0.5118 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.3198, allocations: 1.188 kB / 0.5118 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.3198, allocations: 3.109 kB / 0.5118 GB, free: 1.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001408/0.3212, allocations: 1.237 MB / 0.5131 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.748e-06/0.3213, allocations: 1.188 kB / 0.5131 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002383/0.3215, allocations: 53.92 kB / 0.5131 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.219e-06/0.3215, allocations: 3.031 kB / 0.5131 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.485e-05/0.3215, allocations: 11.03 kB / 0.5131 GB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.531e-06/0.3216, allocations: 10.56 kB / 0.5131 GB, free: 1.117 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.3216, allocations: 6.531 kB / 0.5131 GB, free: 1.113 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006243/0.3222, allocations: 0.5843 MB / 0.5137 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/0.3223, allocations: 150.1 kB / 0.5138 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.987e-05/0.3224, allocations: 10.41 kB / 0.5139 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002003/0.3226, allocations: 23.42 kB / 0.5139 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.264e-05/0.3227, allocations: 33.2 kB / 0.5139 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.949e-05/0.3227, allocations: 17.75 kB / 0.5139 GB, free: 0.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002353/0.3229, allocations: 240.5 kB / 0.5142 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3229, allocations: 0 / 0.5142 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004561/0.3234, allocations: 137.8 kB / 0.5143 GB, free: 0.625 MB / 382.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.0009371/0.3244, allocations: 1.142 MB / 0.5154 GB, free: 15.87 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005942/0.325, allocations: 380.1 kB / 0.5158 GB, free: 15.86 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.325, allocations: 1.594 kB / 0.5158 GB, free: 15.86 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002121/0.3252, allocations: 169.5 kB / 0.5159 GB, free: 15.85 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006456/0.3258, allocations: 117.5 kB / 0.516 GB, free: 15.84 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004682/0.3305, allocations: 3.957 MB / 0.5199 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005354/0.3311, allocations: 0.8683 MB / 0.5208 GB, free: 13.18 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002555/0.3314, allocations: 67.53 kB / 0.5208 GB, free: 13.17 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002244/0.3316, allocations: 195.2 kB / 0.521 GB, free: 13.16 MB / 398.1 MB Notification: Performance of SimCode: time 4e-07/0.3316, allocations: 0 / 0.521 GB, free: 13.16 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03336/0.365, allocations: 8.547 MB / 0.5294 GB, free: 10.96 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.279/8.644, allocations: 7.984 kB / 0.5294 GB, free: 10.96 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_BusinessSimulation_Examples_SIR_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_SIR.fmu > BusinessSimulation_BusinessSimulation.Examples.SIR.pipe 2>&1)