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.001203/0.001203, allocations: 108 kB / 15.61 MB, free: 152 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.001196/0.001196, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.157/1.157, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2315/0.2315, allocations: 31.13 MB / 321.5 MB, free: 4.359 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 63.89 kB / 389 MB, free: 2.375 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1985/0.1996, allocations: 56.34 MB / 445.3 MB, free: 34.54 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.005029/0.2047, allocations: 7.24 MB / 452.6 MB, free: 29.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001232/0.2059, allocations: 1.097 MB / 453.7 MB, free: 28.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002532/0.2062, allocations: 21 kB / 453.7 MB, free: 28.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002578/0.2065, allocations: 141.1 kB / 453.8 MB, free: 28.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001757/0.2067, allocations: 82.39 kB / 453.9 MB, free: 28.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004592/0.2071, allocations: 295.8 kB / 454.2 MB, free: 28.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003925/0.2075, allocations: 0.7163 MB / 454.9 MB, free: 27.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000445/0.208, allocations: 483.5 kB / 455.4 MB, free: 27.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001659/0.2082, allocations: 294.9 kB / 455.7 MB, free: 27.44 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001859/0.2083, allocations: 304.3 kB / 456 MB, free: 27.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.193e-05/0.2084, allocations: 85.66 kB / 456.1 MB, free: 27.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.512e-05/0.2085, allocations: 96.5 kB / 456.2 MB, free: 27.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.246e-05/0.2086, allocations: 171.6 kB / 456.3 MB, free: 27.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001574/0.2088, allocations: 343.7 kB / 456.7 MB, free: 26.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004049/0.2092, allocations: 0.7703 MB / 457.4 MB, free: 26.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.2092, allocations: 0 / 457.4 MB, free: 26.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2092, allocations: 0 / 457.4 MB, free: 26.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.2092, allocations: 0 / 457.4 MB, free: 26.52 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.0009545/0.2102, allocations: 0.8973 MB / 458.3 MB, free: 25.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.863e-05/0.2102, allocations: 9.531 kB / 458.3 MB, free: 25.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.341e-05/0.2103, allocations: 113.3 kB / 458.5 MB, free: 25.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002769/0.2106, allocations: 94.31 kB / 458.5 MB, free: 25.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003724/0.211, allocations: 433.9 kB / 459 MB, free: 25.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.733e-05/0.211, allocations: 64.25 kB / 459 MB, free: 25.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.092e-05/0.2111, allocations: 78.75 kB / 459.1 MB, free: 25.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000774/0.2119, allocations: 0.6471 MB / 459.8 MB, free: 25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/0.2119, allocations: 1.781 kB / 459.8 MB, free: 25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.805e-05/0.2119, allocations: 30.72 kB / 459.8 MB, free: 24.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.212, allocations: 17.44 kB / 459.8 MB, free: 24.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005489/0.2125, allocations: 376 kB / 460.2 MB, free: 24.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002145/0.2147, allocations: 2.29 MB / 462.5 MB, free: 23.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00046/0.2151, allocations: 321.3 kB / 462.8 MB, free: 23.16 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003175/0.2155, allocations: 230.1 kB / 463 MB, free: 23.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.584e-05/0.2155, allocations: 3.75 kB / 463 MB, free: 23.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.884e-05/0.2155, allocations: 47.31 kB / 463 MB, free: 23.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.844e-06/0.2155, allocations: 4 kB / 463.1 MB, free: 23.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.0005924/0.2161, allocations: 403.8 kB / 463.4 MB, free: 22.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.157e-05/0.2162, allocations: 211.4 kB / 463.7 MB, free: 22.57 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003043/0.2165, allocations: 361.2 kB / 464 MB, free: 22.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.49e-05/0.2165, allocations: 45.12 kB / 464.1 MB, free: 22.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001344/0.2167, allocations: 314 kB / 464.4 MB, free: 22.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.234e-05/0.2167, allocations: 120 kB / 464.5 MB, free: 22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/0.2169, allocations: 124 kB / 464.6 MB, free: 21.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.905e-05/0.2169, allocations: 354.2 kB / 464.9 MB, free: 21.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000255/0.2172, allocations: 149.7 kB / 465.1 MB, free: 21.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003034/0.2175, allocations: 306 kB / 465.4 MB, free: 21.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004116/0.2179, allocations: 401.9 kB / 465.8 MB, free: 21.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.2179, allocations: 2.062 kB / 465.8 MB, free: 21.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0006975/0.2186, allocations: 0.5123 MB / 466.3 MB, free: 20.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.376e-05/0.2186, allocations: 10.84 kB / 466.3 MB, free: 20.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.2187, allocations: 3.438 kB / 466.3 MB, free: 20.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.2187, allocations: 7.688 kB / 466.3 MB, free: 20.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002627/0.2189, allocations: 83.66 kB / 466.4 MB, free: 20.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.219, allocations: 7.594 kB / 466.4 MB, free: 20.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002403/0.2192, allocations: 60.62 kB / 466.5 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.146e-05/0.2192, allocations: 25.89 kB / 466.5 MB, free: 20.75 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.0001716/0.2194, allocations: 227.1 kB / 466.7 MB, free: 20.56 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.585e-05/0.2195, allocations: 43.62 kB / 466.8 MB, free: 20.54 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.983e-05/0.2196, allocations: 50.31 kB / 466.8 MB, free: 20.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.2196, allocations: 5 kB / 466.8 MB, free: 20.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.2196, allocations: 0 / 466.8 MB, free: 20.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.2196, allocations: 3.359 kB / 466.8 MB, free: 20.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001202/0.2208, allocations: 1.23 MB / 468 MB, free: 19.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.2209, allocations: 11.28 kB / 468.1 MB, free: 19.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002091/0.2211, allocations: 50.25 kB / 468.1 MB, free: 19.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.2211, allocations: 3.312 kB / 468.1 MB, free: 19.65 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.233e-05/0.2211, allocations: 13.95 kB / 468.1 MB, free: 19.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.89e-06/0.2211, allocations: 4.953 kB / 468.1 MB, free: 19.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.2211, allocations: 6.188 kB / 468.1 MB, free: 19.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005528/0.2217, allocations: 0.5791 MB / 468.7 MB, free: 19.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.2218, allocations: 149.5 kB / 468.9 MB, free: 19.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.656e-05/0.2218, allocations: 19.11 kB / 468.9 MB, free: 19.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001776/0.222, allocations: 18.22 kB / 468.9 MB, free: 19.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.837e-05/0.2221, allocations: 41.39 kB / 468.9 MB, free: 19.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.798e-05/0.2221, allocations: 10.11 kB / 468.9 MB, free: 19.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001998/0.2223, allocations: 236.6 kB / 469.2 MB, free: 18.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2223, allocations: 1.125 kB / 469.2 MB, free: 18.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003775/0.2227, allocations: 137.4 kB / 469.3 MB, free: 18.91 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.0006689/0.2234, allocations: 1.147 MB / 470.5 MB, free: 17.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006067/0.224, allocations: 397.1 kB / 470.8 MB, free: 17.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.224, allocations: 1.594 kB / 470.8 MB, free: 17.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002085/0.2242, allocations: 162.8 kB / 471 MB, free: 17.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005859/0.2248, allocations: 119.9 kB / 471.1 MB, free: 17.75 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003712/0.2285, allocations: 3.998 MB / 475.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002642/0.2288, allocations: 0.8671 MB / 476 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000216/0.229, allocations: 70.5 kB / 476.1 MB, free: 14.33 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001945/0.2292, allocations: 197.6 kB / 476.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2293, allocations: 4 kB / 476.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03178/0.261, allocations: 8.45 MB / 484.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.913/8.174, allocations: 7.75 kB / 484.7 MB, free: 11.41 MB / 350.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)