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.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.0008127/0.0008127, 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.0008012/0.0008012, allocations: 170.3 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.8936/0.8936, allocations: 177.1 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo): time 0.09631/0.09631, allocations: 24.12 MB / 283.3 MB, free: 5.492 MB / 266.7 MB " [Timeout remaining time 180] Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/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_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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.774e-06/1.774e-06, allocations: 0 / 420.1 MB, free: 5.477 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.629e-05/1.806e-05, allocations: 2.281 kB / 420.1 MB, free: 5.473 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.005411/0.005429, allocations: 6.706 MB / 426.8 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.002398/0.007827, allocations: 1.094 MB / 427.9 MB, free: 172 kB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007998/0.008627, allocations: 25.94 kB / 427.9 MB, free: 160 kB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003835/0.00901, allocations: 150.1 kB / 428.1 MB, free: 68 kB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002646/0.009275, allocations: 88.73 kB / 428.1 MB, free: 15.99 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007746/0.01005, allocations: 306.8 kB / 428.4 MB, free: 15.8 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008676/0.01092, allocations: 0.7281 MB / 429.2 MB, free: 15.43 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005775/0.01149, allocations: 308.6 kB / 429.5 MB, free: 15.25 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005263/0.01202, allocations: 455 kB / 429.9 MB, free: 15.01 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002719/0.01229, allocations: 213.1 kB / 430.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 8.745e-05/0.01238, allocations: 86.97 kB / 430.2 MB, free: 14.91 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001104/0.01249, allocations: 95.03 kB / 430.3 MB, free: 14.91 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001358/0.01263, allocations: 176.3 kB / 430.5 MB, free: 14.79 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001881/0.01281, allocations: 231.6 kB / 430.7 MB, free: 14.65 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009647/0.01378, allocations: 0.8104 MB / 431.5 MB, free: 14.28 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.01378, allocations: 0.6094 kB / 431.5 MB, free: 14.28 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.01378, allocations: 0 / 431.5 MB, free: 14.28 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.742e-05/0.01381, allocations: 0 / 431.5 MB, free: 14.28 MB / 346.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.001185/0.015, allocations: 0.84 MB / 432.4 MB, free: 13.68 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.01504, allocations: 10.5 kB / 432.4 MB, free: 13.68 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001048/0.01514, allocations: 110.3 kB / 432.5 MB, free: 13.6 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002452/0.01539, allocations: 99.38 kB / 432.6 MB, free: 13.56 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005086/0.0159, allocations: 389.2 kB / 432.9 MB, free: 13.28 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.441e-05/0.01594, allocations: 57.31 kB / 433 MB, free: 13.25 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.262e-05/0.01601, allocations: 85.56 kB / 433.1 MB, free: 13.22 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008225/0.01684, allocations: 0.7705 MB / 433.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.35e-05/0.01685, allocations: 1.25 kB / 433.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.944e-05/0.01689, allocations: 34.59 kB / 433.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.468e-05/0.0169, allocations: 16.38 kB / 433.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005196/0.01742, allocations: 379 kB / 434.3 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002121/0.01954, allocations: 1.926 MB / 436.2 MB, free: 11.15 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004371/0.01998, allocations: 309 kB / 436.5 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002835/0.02027, allocations: 213.6 kB / 436.7 MB, free: 10.85 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.561e-05/0.02028, allocations: 4.656 kB / 436.7 MB, free: 10.85 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.423e-05/0.02031, allocations: 39.47 kB / 436.8 MB, free: 10.8 MB / 346.7 MB Notification: Performance of pre-optimization done (n=38): time 2.043e-06/0.02031, allocations: 0 / 436.8 MB, free: 10.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=38): time 0.0005557/0.02086, allocations: 410.4 kB / 437.2 MB, free: 10.59 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.605e-05/0.02094, allocations: 211.1 kB / 437.4 MB, free: 10.34 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000309/0.02125, allocations: 364.1 kB / 437.7 MB, free: 10.1 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.693e-05/0.02128, allocations: 47.59 kB / 437.8 MB, free: 10.05 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001659/0.02145, allocations: 320.8 kB / 438.1 MB, free: 9.77 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.358e-05/0.02153, allocations: 123.9 kB / 438.2 MB, free: 9.664 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000125/0.02166, allocations: 122.3 kB / 438.3 MB, free: 9.582 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.02176, allocations: 353.5 kB / 438.7 MB, free: 9.238 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000209/0.02197, allocations: 151.2 kB / 438.8 MB, free: 9.168 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003037/0.02227, allocations: 409.7 kB / 439.2 MB, free: 8.785 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004064/0.02268, allocations: 398.9 kB / 439.6 MB, free: 8.5 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.02268, allocations: 4.938 kB / 439.6 MB, free: 8.496 MB / 346.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0005876/0.02327, allocations: 0.5105 MB / 440.1 MB, free: 8.23 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.02329, allocations: 6.688 kB / 440.1 MB, free: 8.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.0233, allocations: 4.5 kB / 440.1 MB, free: 8.23 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.02332, allocations: 10.62 kB / 440.1 MB, free: 8.227 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001843/0.0235, allocations: 84.64 kB / 440.2 MB, free: 8.199 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.02351, allocations: 6.719 kB / 440.2 MB, free: 8.199 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001681/0.02368, allocations: 66.28 kB / 440.3 MB, free: 8.152 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.829e-05/0.02371, allocations: 25.11 kB / 440.3 MB, free: 8.145 MB / 346.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.0001906/0.0239, allocations: 225.4 kB / 440.5 MB, free: 7.957 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.442e-05/0.02396, allocations: 39.3 kB / 440.6 MB, free: 7.938 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.9e-05/0.02402, allocations: 44.64 kB / 440.6 MB, free: 7.902 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.02403, allocations: 9.531 kB / 440.6 MB, free: 7.898 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.02403, allocations: 0 / 440.6 MB, free: 7.898 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.02404, allocations: 5.359 kB / 440.6 MB, free: 7.895 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001121/0.02516, allocations: 1.164 MB / 441.8 MB, free: 6.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.02517, allocations: 2.219 kB / 441.8 MB, free: 6.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001442/0.02531, allocations: 51.78 kB / 441.9 MB, free: 6.965 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.124e-06/0.02532, allocations: 3.844 kB / 441.9 MB, free: 6.965 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.075e-05/0.02534, allocations: 8.875 kB / 441.9 MB, free: 6.961 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.02534, allocations: 8.531 kB / 441.9 MB, free: 6.957 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.02535, allocations: 9.578 kB / 441.9 MB, free: 6.949 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005653/0.02591, allocations: 0.5826 MB / 442.5 MB, free: 6.539 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001006/0.02601, allocations: 71.23 kB / 442.5 MB, free: 6.488 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.783e-05/0.02605, allocations: 17.72 kB / 442.6 MB, free: 6.477 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.02616, allocations: 15.17 kB / 442.6 MB, free: 6.469 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.44e-05/0.02624, allocations: 48.88 kB / 442.6 MB, free: 6.434 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.347e-05/0.02625, allocations: 9.594 kB / 442.6 MB, free: 6.434 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001993/0.02645, allocations: 238.5 kB / 442.9 MB, free: 6.281 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02645, allocations: 0 / 442.9 MB, free: 6.281 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003571/0.02681, allocations: 143.2 kB / 443 MB, free: 6.23 MB / 346.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.0007253/0.02753, allocations: 1.139 MB / 444.1 MB, free: 5.281 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004867/0.02802, allocations: 351 kB / 444.5 MB, free: 5.129 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.02802, allocations: 1.031 kB / 444.5 MB, free: 5.129 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001776/0.0282, allocations: 158.4 kB / 444.6 MB, free: 5.059 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004623/0.02866, allocations: 124.1 kB / 444.8 MB, free: 5 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003958/0.03262, allocations: 3.949 MB / 448.7 MB, free: 1.918 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002058/0.03282, allocations: 271.2 kB / 449 MB, free: 1.625 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002061/0.03303, allocations: 68.33 kB / 449 MB, free: 1.559 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001979/0.03323, allocations: 196.4 kB / 449.2 MB, free: 1.367 MB / 346.7 MB Notification: Performance of SimCode: time 7.01e-07/0.03323, allocations: 0 / 449.2 MB, free: 1.367 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02414/0.05736, allocations: 9.784 MB / 459 MB, free: 7.793 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.907/6.965, allocations: 0 / 459 MB, free: 7.793 MB / 362.7 MB " [Timeout remaining time 653] (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 --stepSize=0.2 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_SIR.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.860282030887902] Failed to read output from testmodel.py, exit status != 0: 7.049258672632277 7.061703984 7.046017814 Calling exit ...