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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007614/0.0007614, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000798/0.000798, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9202/0.9202, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.1016/0.1016, allocations: 24.12 MB / 283.3 MB, free: 5.5 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.794e-06/1.794e-06, allocations: 0 / 420.1 MB, free: 8.496 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.32e-05/2.5e-05, allocations: 5.234 kB / 420.1 MB, free: 8.492 MB / 394.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.006089/0.006114, allocations: 6.727 MB / 426.8 MB, free: 1.73 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.002117/0.008231, allocations: 1.099 MB / 427.9 MB, free: 0.6289 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003897/0.00862, allocations: 27.81 kB / 427.9 MB, free: 0.6016 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003598/0.00898, allocations: 138.7 kB / 428.1 MB, free: 476 kB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002471/0.009227, allocations: 91.11 kB / 428.2 MB, free: 384 kB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007244/0.009952, allocations: 303.2 kB / 428.5 MB, free: 80 kB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.00065/0.0106, allocations: 0.7381 MB / 429.2 MB, free: 15.34 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004332/0.01104, allocations: 307.1 kB / 429.5 MB, free: 15.02 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003928/0.01143, allocations: 455 kB / 429.9 MB, free: 14.57 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000241/0.01167, allocations: 211.2 kB / 430.2 MB, free: 14.36 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.845e-05/0.01175, allocations: 84 kB / 430.2 MB, free: 14.28 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001004/0.01185, allocations: 91.98 kB / 430.3 MB, free: 14.19 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.01196, allocations: 179.5 kB / 430.5 MB, free: 14.02 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001452/0.01211, allocations: 227.4 kB / 430.7 MB, free: 13.79 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006519/0.01276, allocations: 0.8178 MB / 431.5 MB, free: 12.97 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.01276, allocations: 0 / 431.5 MB, free: 12.97 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.01276, allocations: 3.938 kB / 431.5 MB, free: 12.97 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.483e-05/0.01278, allocations: 0 / 431.5 MB, free: 12.97 MB / 410.7 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.001093/0.01387, allocations: 0.8254 MB / 432.4 MB, free: 12.11 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.01391, allocations: 16.75 kB / 432.4 MB, free: 12.1 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.593e-05/0.014, allocations: 110.7 kB / 432.5 MB, free: 11.98 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002533/0.01425, allocations: 100.4 kB / 432.6 MB, free: 11.88 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004579/0.01471, allocations: 388 kB / 433 MB, free: 11.48 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.322e-05/0.01475, allocations: 58.38 kB / 433 MB, free: 11.42 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.749e-05/0.01482, allocations: 83.89 kB / 433.1 MB, free: 11.34 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007931/0.01561, allocations: 0.7755 MB / 433.9 MB, free: 10.5 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.01563, allocations: 0 / 433.9 MB, free: 10.5 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.809e-05/0.01566, allocations: 28 kB / 433.9 MB, free: 10.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.01568, allocations: 16 kB / 433.9 MB, free: 10.46 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004723/0.01615, allocations: 381 kB / 434.3 MB, free: 10.09 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002122/0.01827, allocations: 1.931 MB / 436.2 MB, free: 8.09 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004273/0.0187, allocations: 304 kB / 436.5 MB, free: 7.77 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000265/0.01896, allocations: 215 kB / 436.7 MB, free: 7.551 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.62e-05/0.01898, allocations: 4.281 kB / 436.7 MB, free: 7.547 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.411e-05/0.019, allocations: 38.84 kB / 436.8 MB, free: 7.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=38): time 1.804e-06/0.019, allocations: 0 / 436.8 MB, free: 7.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=38): time 0.0005157/0.01952, allocations: 402.7 kB / 437.2 MB, free: 7.102 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/0.01964, allocations: 217.6 kB / 437.4 MB, free: 6.84 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003139/0.01995, allocations: 365.7 kB / 437.7 MB, free: 6.473 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.235e-05/0.01999, allocations: 53.69 kB / 437.8 MB, free: 6.414 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/0.02015, allocations: 320.8 kB / 438.1 MB, free: 6.098 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.045e-05/0.02022, allocations: 123 kB / 438.2 MB, free: 5.977 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001215/0.02034, allocations: 118.3 kB / 438.3 MB, free: 5.852 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001009/0.02044, allocations: 358.8 kB / 438.7 MB, free: 5.492 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003641/0.02081, allocations: 145.2 kB / 438.8 MB, free: 5.352 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003566/0.02116, allocations: 406.1 kB / 439.2 MB, free: 4.871 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004263/0.02159, allocations: 409.1 kB / 439.6 MB, free: 4.422 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.0216, allocations: 11.98 kB / 439.6 MB, free: 4.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0006355/0.02223, allocations: 0.5009 MB / 440.1 MB, free: 3.902 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.02225, allocations: 8 kB / 440.2 MB, free: 3.895 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.02226, allocations: 4.469 kB / 440.2 MB, free: 3.891 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.02228, allocations: 11.94 kB / 440.2 MB, free: 3.879 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002012/0.02248, allocations: 91.77 kB / 440.3 MB, free: 3.789 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.02249, allocations: 4 kB / 440.3 MB, free: 3.785 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001773/0.02267, allocations: 63.56 kB / 440.3 MB, free: 3.723 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.463e-05/0.02269, allocations: 27.92 kB / 440.4 MB, free: 3.695 MB / 410.7 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.0002232/0.02292, allocations: 221.7 kB / 440.6 MB, free: 3.469 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.211e-05/0.02298, allocations: 39.77 kB / 440.6 MB, free: 3.43 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.388e-05/0.02304, allocations: 48.14 kB / 440.7 MB, free: 3.383 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.662e-06/0.02305, allocations: 11.94 kB / 440.7 MB, free: 3.371 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.02306, allocations: 4 kB / 440.7 MB, free: 3.367 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.02306, allocations: 3.984 kB / 440.7 MB, free: 3.363 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001212/0.02427, allocations: 1.159 MB / 441.8 MB, free: 2.125 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.02428, allocations: 4 kB / 441.8 MB, free: 2.121 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001474/0.02442, allocations: 47.91 kB / 441.9 MB, free: 2.074 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.488e-06/0.02443, allocations: 8.25 kB / 441.9 MB, free: 2.066 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.843e-05/0.02445, allocations: 12 kB / 441.9 MB, free: 2.055 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.02445, allocations: 4 kB / 441.9 MB, free: 2.051 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.997e-05/0.02447, allocations: 11.88 kB / 441.9 MB, free: 2.039 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005432/0.02502, allocations: 0.5804 MB / 442.5 MB, free: 1.418 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.506e-05/0.02511, allocations: 71.69 kB / 442.6 MB, free: 1.348 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3e-05/0.02514, allocations: 8 kB / 442.6 MB, free: 1.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001136/0.02526, allocations: 19.97 kB / 442.6 MB, free: 1.32 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.644e-05/0.02532, allocations: 43.88 kB / 442.6 MB, free: 1.277 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.282e-05/0.02534, allocations: 16 kB / 442.7 MB, free: 1.262 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000174/0.02551, allocations: 239.2 kB / 442.9 MB, free: 1.031 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02551, allocations: 0 / 442.9 MB, free: 1.031 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003195/0.02583, allocations: 131.6 kB / 443 MB, free: 0.9023 MB / 410.7 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.1656/0.1914, allocations: 1.131 MB / 444.1 MB, free: 63.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000598/0.192, allocations: 355.7 kB / 444.5 MB, free: 63.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.192, allocations: 2.406 kB / 444.5 MB, free: 63.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001487/0.1921, allocations: 152.6 kB / 444.6 MB, free: 63.47 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005174/0.1927, allocations: 115.9 kB / 444.8 MB, free: 63.47 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003222/0.1959, allocations: 3.942 MB / 448.7 MB, free: 61.12 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001565/0.196, allocations: 267.2 kB / 449 MB, free: 61.03 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001736/0.1962, allocations: 75.5 kB / 449 MB, free: 61.02 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001661/0.1964, allocations: 196.2 kB / 449.2 MB, free: 60.88 MB / 410.7 MB Notification: Performance of SimCode: time 1.262e-06/0.1964, allocations: 0 / 449.2 MB, free: 60.88 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02075/0.2171, allocations: 9.783 MB / 459 MB, free: 59.27 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.886/7.103, allocations: 0 / 459 MB, free: 59.27 MB / 410.7 MB " [Timeout remaining time 653] (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 --stepSize=0.2 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_SIR.fmu > BusinessSimulation_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.9346753526479] Failed to read output from testmodel.py, exit status != 0: 7.19004877563566 7.196632736 7.18236818 Calling exit ...