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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001742/0.001742, allocations: 113.2 kB / 16.46 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002122/0.002122, allocations: 195.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.549/1.549, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.1796/0.1796, allocations: 31.62 MB / 334.3 MB, free: 10.78 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-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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 59.91 kB / 467.2 MB, free: 8.914 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4049/0.4069, allocations: 59.5 MB / 0.5144 GB, free: 7.773 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.01092/0.4178, allocations: 7.291 MB / 0.5215 GB, free: 2.789 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004198/0.422, allocations: 1.091 MB / 0.5225 GB, free: 2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00115/0.4232, allocations: 19.09 kB / 0.5226 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00065/0.4238, allocations: 144.3 kB / 0.5227 GB, free: 1.91 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004789/0.4243, allocations: 86.38 kB / 0.5228 GB, free: 1.844 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00131/0.4256, allocations: 306 kB / 0.5231 GB, free: 1.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001292/0.4269, allocations: 0.7181 MB / 0.5238 GB, free: 1.285 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008432/0.4277, allocations: 326.9 kB / 0.5241 GB, free: 1.086 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005298/0.4283, allocations: 303.3 kB / 0.5244 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004597/0.4287, allocations: 302 kB / 0.5247 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001714/0.4289, allocations: 83.91 kB / 0.5247 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002089/0.4291, allocations: 93 kB / 0.5248 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002056/0.4293, allocations: 181.1 kB / 0.525 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003467/0.4297, allocations: 339.3 kB / 0.5253 GB, free: 372 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001286/0.4309, allocations: 0.7971 MB / 0.5261 GB, free: 15.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.431, allocations: 5.125 kB / 0.5261 GB, free: 15.97 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.431, allocations: 0 / 0.5261 GB, free: 15.97 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.573e-05/0.431, allocations: 0 / 0.5261 GB, free: 15.97 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.002284/0.4333, allocations: 0.914 MB / 0.527 GB, free: 15.3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.4333, allocations: 9.938 kB / 0.527 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000211/0.4335, allocations: 113.6 kB / 0.5271 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006244/0.4341, allocations: 100.1 kB / 0.5272 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001083/0.4352, allocations: 466.9 kB / 0.5277 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.277e-05/0.4353, allocations: 61.81 kB / 0.5277 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001617/0.4355, allocations: 74.17 kB / 0.5278 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001743/0.4372, allocations: 0.6499 MB / 0.5284 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.301e-05/0.4372, allocations: 0.5 kB / 0.5284 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.754e-05/0.4373, allocations: 30.5 kB / 0.5285 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.948e-05/0.4373, allocations: 20.97 kB / 0.5285 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001198/0.4385, allocations: 379.4 kB / 0.5288 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00527/0.4438, allocations: 2.26 MB / 0.5311 GB, free: 12.76 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009323/0.4447, allocations: 297.7 kB / 0.5313 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006773/0.4454, allocations: 217.2 kB / 0.5315 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.895e-05/0.4455, allocations: 5.031 kB / 0.5315 GB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.934e-05/0.4455, allocations: 43.12 kB / 0.5316 GB, free: 12.47 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 2.645e-06/0.4455, allocations: 3.938 kB / 0.5316 GB, free: 12.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.001325/0.4468, allocations: 400.5 kB / 0.532 GB, free: 12.29 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001688/0.447, allocations: 211.5 kB / 0.5322 GB, free: 12.04 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007981/0.4478, allocations: 365.2 kB / 0.5325 GB, free: 11.84 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.937e-05/0.4479, allocations: 41.73 kB / 0.5326 GB, free: 11.8 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003724/0.4482, allocations: 321 kB / 0.5329 GB, free: 11.55 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001713/0.4484, allocations: 124.2 kB / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002774/0.4487, allocations: 121.4 kB / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002434/0.4489, allocations: 355.2 kB / 0.5334 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005167/0.4495, allocations: 153.3 kB / 0.5336 GB, free: 11 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000703/0.4502, allocations: 309.8 kB / 0.5339 GB, free: 10.76 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009623/0.4511, allocations: 401.9 kB / 0.5343 GB, free: 10.49 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.421e-06/0.4511, allocations: 1.156 kB / 0.5343 GB, free: 10.49 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00154/0.4527, allocations: 0.5134 MB / 0.5348 GB, free: 10.25 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.4527, allocations: 11.16 kB / 0.5348 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.4527, allocations: 3.75 kB / 0.5348 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.259e-05/0.4527, allocations: 10.97 kB / 0.5348 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000526/0.4533, allocations: 83.28 kB / 0.5349 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.839e-05/0.4533, allocations: 8.438 kB / 0.5349 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005127/0.4538, allocations: 59.64 kB / 0.5349 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.072e-05/0.4538, allocations: 21.8 kB / 0.535 GB, free: 10.19 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.0004437/0.4543, allocations: 226.9 kB / 0.5352 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001879/0.4545, allocations: 51.22 kB / 0.5352 GB, free: 9.977 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001402/0.4546, allocations: 45.77 kB / 0.5353 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.4546, allocations: 5.25 kB / 0.5353 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.231e-05/0.4546, allocations: 1.906 kB / 0.5353 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.4546, allocations: 1.453 kB / 0.5353 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002868/0.4575, allocations: 1.238 MB / 0.5365 GB, free: 9.105 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.4575, allocations: 1.156 kB / 0.5365 GB, free: 9.105 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004007/0.4579, allocations: 51.61 kB / 0.5365 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.467e-06/0.4579, allocations: 5.172 kB / 0.5365 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.348e-05/0.458, allocations: 21.3 kB / 0.5366 GB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.568e-06/0.458, allocations: 8.453 kB / 0.5366 GB, free: 9.078 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.458, allocations: 2.5 kB / 0.5366 GB, free: 9.078 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001235/0.4592, allocations: 0.5814 MB / 0.5371 GB, free: 8.695 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003053/0.4595, allocations: 152.4 kB / 0.5373 GB, free: 8.555 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.367e-05/0.4596, allocations: 14.61 kB / 0.5373 GB, free: 8.547 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003373/0.4599, allocations: 14.5 kB / 0.5373 GB, free: 8.543 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/0.4601, allocations: 38.28 kB / 0.5373 GB, free: 8.531 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.821e-05/0.4601, allocations: 12.59 kB / 0.5374 GB, free: 8.527 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004818/0.4606, allocations: 242.7 kB / 0.5376 GB, free: 8.395 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4606, allocations: 0 / 0.5376 GB, free: 8.395 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000933/0.4615, allocations: 138.5 kB / 0.5377 GB, free: 8.348 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.001636/0.4632, allocations: 1.138 MB / 0.5388 GB, free: 7.43 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001118/0.4643, allocations: 352.5 kB / 0.5392 GB, free: 7.312 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.4643, allocations: 1.375 kB / 0.5392 GB, free: 7.312 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004195/0.4647, allocations: 161.7 kB / 0.5393 GB, free: 7.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.4658, allocations: 122.3 kB / 0.5394 GB, free: 7.207 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008696/0.4745, allocations: 3.985 MB / 0.5433 GB, free: 4.555 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007589/0.4753, allocations: 0.8647 MB / 0.5442 GB, free: 3.852 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004601/0.4757, allocations: 65.53 kB / 0.5442 GB, free: 3.836 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004164/0.4761, allocations: 205.4 kB / 0.5444 GB, free: 3.684 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.4761, allocations: 0 / 0.5444 GB, free: 3.684 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03809/0.5142, allocations: 8.577 MB / 0.5528 GB, free: 15.73 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.449/8.963, allocations: 12.42 kB / 0.5528 GB, free: 15.73 MB / 414.1 MB " [Timeout remaining time 651] (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: 11.813777205068618] Failed to read output from testmodel.py, exit status != 0: 9.03977715689689 9.054580856 8.620490329999999 Calling exit ...