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: "" <> buildModelFMU(BusinessSimulation.Examples.SIR,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SIR,fileNamePrefix="BusinessSimulation_dev_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.005556/0.005556, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.00114/0.00114, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.327/1.327, 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-main/package.mo): time 0.1612/0.1612, allocations: 31.17 MB / 321.7 MB, free: 200 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 63.89 kB / 446.3 MB, free: 2.262 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09303/0.09438, allocations: 56.36 MB / 0.4908 GB, free: 9.859 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.007583/0.102, allocations: 7.243 MB / 0.4979 GB, free: 2.586 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002372/0.1044, allocations: 1.098 MB / 0.499 GB, free: 1.484 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000623/0.105, allocations: 19.88 kB / 0.499 GB, free: 1.465 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004924/0.1056, allocations: 146.7 kB / 0.4991 GB, free: 1.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003726/0.1059, allocations: 83.19 kB / 0.4992 GB, free: 1.238 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000861/0.1068, allocations: 295.4 kB / 0.4995 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008194/0.1077, allocations: 0.7266 MB / 0.5002 GB, free: 224 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2005/0.3081, allocations: 475.7 kB / 0.5007 GB, free: 5.699 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004338/0.3086, allocations: 297 kB / 0.501 GB, free: 5.699 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003169/0.3089, allocations: 304.8 kB / 0.5012 GB, free: 5.629 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001178/0.3091, allocations: 83.69 kB / 0.5013 GB, free: 5.629 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001536/0.3092, allocations: 96.02 kB / 0.5014 GB, free: 5.629 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001279/0.3094, allocations: 176.5 kB / 0.5016 GB, free: 5.602 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002347/0.3096, allocations: 346.7 kB / 0.5019 GB, free: 5.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007194/0.3103, allocations: 0.7932 MB / 0.5027 GB, free: 5.398 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.3104, allocations: 0.5625 kB / 0.5027 GB, free: 5.398 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.3104, allocations: 0.6562 kB / 0.5027 GB, free: 5.398 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.393e-05/0.3104, allocations: 0.9062 kB / 0.5027 GB, free: 5.398 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.00123/0.3116, allocations: 0.8994 MB / 0.5036 GB, free: 4.859 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.3117, allocations: 9.719 kB / 0.5036 GB, free: 4.859 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.954e-05/0.3118, allocations: 113.7 kB / 0.5037 GB, free: 4.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003197/0.3121, allocations: 96.42 kB / 0.5038 GB, free: 4.785 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005108/0.3126, allocations: 448.3 kB / 0.5042 GB, free: 4.539 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.277e-05/0.3127, allocations: 63.28 kB / 0.5043 GB, free: 4.531 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.358e-05/0.3128, allocations: 80.45 kB / 0.5043 GB, free: 4.531 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009005/0.3137, allocations: 0.6501 MB / 0.505 GB, free: 4.402 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.3137, allocations: 0 / 0.505 GB, free: 4.402 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.446e-05/0.3138, allocations: 26.75 kB / 0.505 GB, free: 4.402 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.67e-05/0.3138, allocations: 18.73 kB / 0.505 GB, free: 4.402 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006558/0.3144, allocations: 382.1 kB / 0.5054 GB, free: 4.398 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00269/0.3171, allocations: 2.249 MB / 0.5076 GB, free: 3.453 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005369/0.3177, allocations: 324.5 kB / 0.5079 GB, free: 3.383 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003628/0.3181, allocations: 229.9 kB / 0.5081 GB, free: 3.355 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.775e-05/0.3181, allocations: 6.688 kB / 0.5081 GB, free: 3.355 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.3181, allocations: 42.16 kB / 0.5082 GB, free: 3.316 MB / 382.1 MB Notification: Performance of pre-optimization done (n=38): time 2.104e-06/0.3181, allocations: 1.219 kB / 0.5082 GB, free: 3.316 MB / 382.1 MB Notification: Performance of matching and sorting (n=38): time 0.000699/0.3188, allocations: 401.1 kB / 0.5085 GB, free: 3.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.755e-05/0.3189, allocations: 215.5 kB / 0.5087 GB, free: 3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003654/0.3193, allocations: 366.6 kB / 0.5091 GB, free: 2.883 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.913e-05/0.3193, allocations: 44.55 kB / 0.5091 GB, free: 2.852 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001778/0.3195, allocations: 310.5 kB / 0.5094 GB, free: 2.672 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.38e-05/0.3196, allocations: 115.5 kB / 0.5095 GB, free: 2.602 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001593/0.3198, allocations: 124.6 kB / 0.5097 GB, free: 2.582 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.772e-05/0.3199, allocations: 352.2 kB / 0.51 GB, free: 2.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002756/0.3201, allocations: 150.5 kB / 0.5101 GB, free: 2.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003396/0.3205, allocations: 300.7 kB / 0.5104 GB, free: 2.113 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004697/0.321, allocations: 406 kB / 0.5108 GB, free: 1.969 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.321, allocations: 1.25 kB / 0.5108 GB, free: 1.969 MB / 382.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008106/0.3218, allocations: 0.5178 MB / 0.5113 GB, free: 1.891 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.3218, allocations: 8.719 kB / 0.5113 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.3218, allocations: 4.031 kB / 0.5113 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.8e-05/0.3219, allocations: 11.38 kB / 0.5113 GB, free: 1.887 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003078/0.3222, allocations: 85.48 kB / 0.5114 GB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/0.3222, allocations: 7.328 kB / 0.5114 GB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002854/0.3225, allocations: 65.16 kB / 0.5115 GB, free: 1.852 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.837e-05/0.3225, allocations: 23.05 kB / 0.5115 GB, free: 1.852 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.0002554/0.3228, allocations: 226.6 kB / 0.5117 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.796e-05/0.3229, allocations: 43.59 kB / 0.5118 GB, free: 1.699 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.484e-05/0.323, allocations: 54.8 kB / 0.5118 GB, free: 1.688 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.323, allocations: 8.328 kB / 0.5118 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.387e-06/0.323, allocations: 1.281 kB / 0.5118 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.323, allocations: 2.906 kB / 0.5118 GB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001656/0.3247, allocations: 1.232 MB / 0.513 GB, free: 1.145 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.3247, allocations: 4.125 kB / 0.513 GB, free: 1.145 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002374/0.325, allocations: 52.83 kB / 0.5131 GB, free: 1.145 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.325, allocations: 4.219 kB / 0.5131 GB, free: 1.145 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.918e-05/0.325, allocations: 12.56 kB / 0.5131 GB, free: 1.145 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.685e-06/0.325, allocations: 13.09 kB / 0.5131 GB, free: 1.137 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.325, allocations: 2.75 kB / 0.5131 GB, free: 1.137 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006622/0.3257, allocations: 0.58 MB / 0.5137 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001329/0.3258, allocations: 146.3 kB / 0.5138 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.164e-05/0.3259, allocations: 15 kB / 0.5138 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000194/0.3261, allocations: 17.23 kB / 0.5139 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.3262, allocations: 36.41 kB / 0.5139 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.24e-05/0.3262, allocations: 9.703 kB / 0.5139 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003418/0.3266, allocations: 243.8 kB / 0.5141 GB, free: 16.69 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3266, allocations: 4 kB / 0.5141 GB, free: 16.69 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005289/0.3271, allocations: 140 kB / 0.5143 GB, free: 16.65 MB / 398.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.0009026/0.328, allocations: 1.13 MB / 0.5154 GB, free: 15.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006194/0.3287, allocations: 383.7 kB / 0.5157 GB, free: 15.89 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3287, allocations: 0 / 0.5157 GB, free: 15.89 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002238/0.3289, allocations: 170 kB / 0.5159 GB, free: 15.89 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006394/0.3296, allocations: 122.6 kB / 0.516 GB, free: 15.88 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004609/0.3342, allocations: 3.944 MB / 0.5199 GB, free: 13.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004992/0.3347, allocations: 0.866 MB / 0.5207 GB, free: 13.23 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002588/0.335, allocations: 62.62 kB / 0.5208 GB, free: 13.21 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002241/0.3352, allocations: 197.1 kB / 0.521 GB, free: 13.21 MB / 398.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3352, allocations: 0 / 0.521 GB, free: 13.21 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02961/0.3648, allocations: 8.547 MB / 0.5293 GB, free: 11.03 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.274/8.639, allocations: 3.5 kB / 0.5293 GB, free: 11.03 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_dev_BusinessSimulation_Examples_SIR_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_SIR.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe 2>&1)