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.001831/0.001831, allocations: 97.92 kB / 19.73 MB, free: 2.133 MB / 14.72 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.003117/0.003117, allocations: 216.6 kB / 23.03 MB, free: 4.949 MB / 14.72 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 1.471/1.471, allocations: 230.6 MB / 256.8 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] 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.1902/0.1902, allocations: 31.55 MB / 344.8 MB, free: 3.801 MB / 270.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SIR,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SIR",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: BusinessSimulation requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003167/0.003167, allocations: 71.89 kB / 481.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3454, allocations: 60.7 MB / 0.5296 GB, free: 7.539 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.008969/0.3544, allocations: 6.696 MB / 0.5361 GB, free: 3.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003064/0.3574, allocations: 1.097 MB / 0.5372 GB, free: 2.227 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006152/0.358, allocations: 26.72 kB / 0.5372 GB, free: 2.215 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004528/0.3585, allocations: 142.8 kB / 0.5373 GB, free: 2.133 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002785/0.3588, allocations: 85.12 kB / 0.5374 GB, free: 2.066 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009027/0.3597, allocations: 298.5 kB / 0.5377 GB, free: 1.887 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007785/0.3605, allocations: 0.7241 MB / 0.5384 GB, free: 1.504 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006112/0.3611, allocations: 323.5 kB / 0.5387 GB, free: 1.309 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003048/0.3614, allocations: 308.1 kB / 0.539 GB, free: 1.125 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002905/0.3617, allocations: 311.9 kB / 0.5393 GB, free: 0.875 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.601e-05/0.3618, allocations: 82.66 kB / 0.5394 GB, free: 0.875 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000145/0.3619, allocations: 88.41 kB / 0.5395 GB, free: 0.875 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.362, allocations: 177 kB / 0.5396 GB, free: 0.7266 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002038/0.3622, allocations: 271.4 kB / 0.5399 GB, free: 0.5312 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000777/0.363, allocations: 0.8047 MB / 0.5407 GB, free: 15.89 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.606e-06/0.363, allocations: 5.5 kB / 0.5407 GB, free: 15.89 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.363, allocations: 4 kB / 0.5407 GB, free: 15.88 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.29e-05/0.363, allocations: 0 / 0.5407 GB, free: 15.88 MB / 398.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.0016/0.3646, allocations: 0.8324 MB / 0.5415 GB, free: 15.22 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/0.3647, allocations: 14.33 kB / 0.5415 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.051e-05/0.3647, allocations: 18.69 kB / 0.5415 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000123/0.3648, allocations: 122 kB / 0.5416 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003512/0.3652, allocations: 99.14 kB / 0.5417 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000657/0.3658, allocations: 385.2 kB / 0.5421 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.665e-05/0.3659, allocations: 61.62 kB / 0.5422 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.366, allocations: 72.12 kB / 0.5422 GB, free: 14.68 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00129/0.3673, allocations: 0.7779 MB / 0.543 GB, free: 14.1 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.074e-05/0.3673, allocations: 2 kB / 0.543 GB, free: 14.1 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.925e-05/0.3674, allocations: 25.47 kB / 0.543 GB, free: 14.08 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.131e-05/0.3674, allocations: 16.41 kB / 0.543 GB, free: 14.08 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007842/0.3682, allocations: 387.2 kB / 0.5434 GB, free: 13.9 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00369/0.3719, allocations: 1.933 MB / 0.5453 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006367/0.3725, allocations: 304.5 kB / 0.5456 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004366/0.373, allocations: 221.3 kB / 0.5458 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.912e-05/0.373, allocations: 8.562 kB / 0.5458 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.957e-05/0.373, allocations: 43.31 kB / 0.5458 GB, free: 11.99 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 2.926e-06/0.373, allocations: 0 / 0.5458 GB, free: 11.99 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007849/0.3738, allocations: 406.8 kB / 0.5462 GB, free: 11.78 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001628/0.374, allocations: 211.4 kB / 0.5464 GB, free: 11.53 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005097/0.3745, allocations: 366.4 kB / 0.5468 GB, free: 11.29 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.23e-05/0.3746, allocations: 40.89 kB / 0.5468 GB, free: 11.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000313/0.3749, allocations: 320.6 kB / 0.5471 GB, free: 10.96 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000133/0.375, allocations: 125.7 kB / 0.5472 GB, free: 10.86 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002419/0.3753, allocations: 124.9 kB / 0.5474 GB, free: 10.78 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002453/0.3755, allocations: 348.8 kB / 0.5477 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003642/0.3759, allocations: 153.9 kB / 0.5478 GB, free: 10.36 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005531/0.3764, allocations: 402.8 kB / 0.5482 GB, free: 9.988 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005878/0.377, allocations: 398.6 kB / 0.5486 GB, free: 9.699 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.708e-06/0.377, allocations: 1.281 kB / 0.5486 GB, free: 9.699 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008999/0.3779, allocations: 0.5106 MB / 0.5491 GB, free: 9.438 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.3779, allocations: 7.219 kB / 0.5491 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.378, allocations: 6.719 kB / 0.5491 GB, free: 9.434 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.294e-05/0.378, allocations: 7.719 kB / 0.5491 GB, free: 9.434 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003369/0.3783, allocations: 84.42 kB / 0.5492 GB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.619e-05/0.3783, allocations: 10.25 kB / 0.5492 GB, free: 9.402 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003408/0.3787, allocations: 75.14 kB / 0.5493 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.42e-05/0.3787, allocations: 21.47 kB / 0.5493 GB, free: 9.344 MB / 398.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.0003076/0.379, allocations: 216.4 kB / 0.5495 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001154/0.3791, allocations: 48.16 kB / 0.5496 GB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001022/0.3792, allocations: 44.27 kB / 0.5496 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.3792, allocations: 5.219 kB / 0.5496 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.3793, allocations: 5.094 kB / 0.5496 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.3793, allocations: 0 / 0.5496 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001779/0.381, allocations: 1.171 MB / 0.5508 GB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.381, allocations: 2.281 kB / 0.5508 GB, free: 8.176 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002546/0.3813, allocations: 52.75 kB / 0.5508 GB, free: 8.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.049e-05/0.3813, allocations: 7.125 kB / 0.5508 GB, free: 8.156 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.962e-05/0.3813, allocations: 13.75 kB / 0.5508 GB, free: 8.148 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.047e-06/0.3813, allocations: 3.312 kB / 0.5508 GB, free: 8.148 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.3813, allocations: 2.188 kB / 0.5508 GB, free: 8.148 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000832/0.3822, allocations: 0.5802 MB / 0.5514 GB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001711/0.3824, allocations: 78.19 kB / 0.5515 GB, free: 7.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.841e-05/0.3824, allocations: 13.44 kB / 0.5515 GB, free: 7.672 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002048/0.3826, allocations: 14.98 kB / 0.5515 GB, free: 7.664 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.813e-05/0.3827, allocations: 37.2 kB / 0.5515 GB, free: 7.641 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.042e-05/0.3827, allocations: 13 kB / 0.5516 GB, free: 7.637 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002872/0.383, allocations: 242.5 kB / 0.5518 GB, free: 7.48 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.383, allocations: 1.281 kB / 0.5518 GB, free: 7.48 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005204/0.3835, allocations: 137.8 kB / 0.5519 GB, free: 7.434 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.001142/0.3847, allocations: 1.144 MB / 0.553 GB, free: 6.48 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007106/0.3854, allocations: 348.1 kB / 0.5534 GB, free: 6.332 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.3854, allocations: 3.938 kB / 0.5534 GB, free: 6.328 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002554/0.3857, allocations: 153.3 kB / 0.5535 GB, free: 6.262 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006936/0.3863, allocations: 120.7 kB / 0.5536 GB, free: 6.203 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005712/0.3921, allocations: 3.987 MB / 0.5575 GB, free: 3.297 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003177/0.3924, allocations: 272.8 kB / 0.5578 GB, free: 3.121 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000267/0.3926, allocations: 67.27 kB / 0.5579 GB, free: 3.09 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000305/0.3929, allocations: 201.1 kB / 0.558 GB, free: 2.898 MB / 398.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3929, allocations: 0 / 0.558 GB, free: 2.898 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03696/0.4299, allocations: 9.333 MB / 0.5672 GB, free: 9.805 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.03/12.46, allocations: 8.062 kB / 0.5672 GB, free: 9.797 MB / 414.1 MB " [Timeout remaining time 647] (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: 15.38222854596097] Failed to read output from testmodel.py, exit status != 0: 12.623768593999557 12.637325145 12.271049144 Calling exit ...