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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 110 kB / 18.93 MB, free: 2.945 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.001595/0.001595, allocations: 190.2 kB / 22.23 MB, free: 5.16 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.462/1.462, allocations: 225.6 MB / 251 MB, free: 12.98 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.2885/0.2885, allocations: 31.58 MB / 337.8 MB, free: 9.457 MB / 270.1 MB " [Timeout remaining time 179] 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: translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SIR") translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SIR") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002287/0.002287, allocations: 64.08 kB / 472.9 MB, free: 5.91 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3754/0.3777, allocations: 59.55 MB / 0.5199 GB, free: 8.852 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.007212/0.3849, allocations: 7.318 MB / 0.5271 GB, free: 3.656 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002364/0.3873, allocations: 1.108 MB / 0.5281 GB, free: 2.852 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004185/0.3877, allocations: 22.88 kB / 0.5282 GB, free: 2.844 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003948/0.3881, allocations: 140.6 kB / 0.5283 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002397/0.3883, allocations: 86.14 kB / 0.5284 GB, free: 2.695 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000728/0.3891, allocations: 321.4 kB / 0.5287 GB, free: 2.492 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007093/0.3898, allocations: 0.7251 MB / 0.5294 GB, free: 2.113 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004978/0.3903, allocations: 317.2 kB / 0.5297 GB, free: 1.922 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002975/0.3906, allocations: 313 kB / 0.53 GB, free: 1.746 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003401/0.3909, allocations: 308.5 kB / 0.5303 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001298/0.391, allocations: 82.66 kB / 0.5304 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001427/0.3912, allocations: 90.36 kB / 0.5305 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001413/0.3913, allocations: 177.3 kB / 0.5306 GB, free: 1.434 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002459/0.3916, allocations: 345.8 kB / 0.531 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009146/0.3925, allocations: 0.7952 MB / 0.5317 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.3925, allocations: 4 kB / 0.5317 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3925, allocations: 0 / 0.5317 GB, free: 0.8086 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.098e-05/0.3925, allocations: 1.5 kB / 0.5317 GB, free: 0.8086 MB / 382.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.001381/0.3939, allocations: 0.8379 MB / 0.5326 GB, free: 228 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.3939, allocations: 13.52 kB / 0.5326 GB, free: 224 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003599/0.3943, allocations: 101.8 kB / 0.5327 GB, free: 180 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006384/0.3949, allocations: 392.7 kB / 0.533 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.103e-05/0.395, allocations: 56.97 kB / 0.5331 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001157/0.3951, allocations: 74.42 kB / 0.5332 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001302/0.3964, allocations: 0.6499 MB / 0.5338 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.814e-05/0.3964, allocations: 0.5938 kB / 0.5338 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.445e-05/0.3965, allocations: 30.94 kB / 0.5338 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.316e-05/0.3965, allocations: 16.94 kB / 0.5339 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009824/0.3975, allocations: 387.2 kB / 0.5342 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004083/0.4016, allocations: 2.199 MB / 0.5364 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006737/0.4023, allocations: 311.2 kB / 0.5367 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000503/0.4028, allocations: 220 kB / 0.5369 GB, free: 13.6 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.57e-05/0.4028, allocations: 8.781 kB / 0.5369 GB, free: 13.6 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.428e-05/0.4028, allocations: 39.75 kB / 0.5369 GB, free: 13.55 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 2.194e-06/0.4028, allocations: 0 / 0.5369 GB, free: 13.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.0008525/0.4037, allocations: 397 kB / 0.5373 GB, free: 13.38 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001389/0.4038, allocations: 214.5 kB / 0.5375 GB, free: 13.12 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004659/0.4043, allocations: 369.9 kB / 0.5379 GB, free: 12.92 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.276e-05/0.4044, allocations: 44.39 kB / 0.5379 GB, free: 12.88 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002714/0.4046, allocations: 317 kB / 0.5382 GB, free: 12.63 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.4047, allocations: 121 kB / 0.5383 GB, free: 12.54 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002023/0.4049, allocations: 121.1 kB / 0.5384 GB, free: 12.47 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001807/0.4051, allocations: 351 kB / 0.5388 GB, free: 12.14 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003493/0.4055, allocations: 156.5 kB / 0.5389 GB, free: 12.09 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004811/0.406, allocations: 303.1 kB / 0.5392 GB, free: 11.86 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006295/0.4066, allocations: 404 kB / 0.5396 GB, free: 11.57 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.4066, allocations: 1.125 kB / 0.5396 GB, free: 11.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.000978/0.4076, allocations: 0.5045 MB / 0.5401 GB, free: 11.35 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.606e-05/0.4076, allocations: 11.73 kB / 0.5401 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.4076, allocations: 7.25 kB / 0.5401 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.998e-05/0.4076, allocations: 10.39 kB / 0.5401 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003356/0.408, allocations: 79.97 kB / 0.5402 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.466e-05/0.408, allocations: 11.12 kB / 0.5402 GB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003575/0.4083, allocations: 69.17 kB / 0.5403 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.902e-05/0.4084, allocations: 21.42 kB / 0.5403 GB, free: 11.28 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.0003283/0.4087, allocations: 223 kB / 0.5405 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001223/0.4088, allocations: 50.47 kB / 0.5405 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001193/0.409, allocations: 46.33 kB / 0.5406 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.409, allocations: 5.156 kB / 0.5406 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.396e-05/0.409, allocations: 1.281 kB / 0.5406 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/0.409, allocations: 2.109 kB / 0.5406 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002067/0.4111, allocations: 1.208 MB / 0.5418 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.4111, allocations: 2.062 kB / 0.5418 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002676/0.4113, allocations: 51.88 kB / 0.5418 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.596e-06/0.4113, allocations: 3.953 kB / 0.5418 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.084e-05/0.4114, allocations: 14.33 kB / 0.5418 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.133e-06/0.4114, allocations: 4.594 kB / 0.5419 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.4114, allocations: 10.44 kB / 0.5419 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008683/0.4123, allocations: 0.5769 MB / 0.5424 GB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000193/0.4125, allocations: 79.64 kB / 0.5425 GB, free: 9.773 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.003e-05/0.4125, allocations: 14.94 kB / 0.5425 GB, free: 9.766 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002277/0.4128, allocations: 14.97 kB / 0.5425 GB, free: 9.762 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.4129, allocations: 38.98 kB / 0.5426 GB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.416e-05/0.4129, allocations: 16.81 kB / 0.5426 GB, free: 9.742 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003326/0.4132, allocations: 234 kB / 0.5428 GB, free: 9.617 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4132, allocations: 0 / 0.5428 GB, free: 9.617 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005853/0.4138, allocations: 138.3 kB / 0.5429 GB, free: 9.57 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.00017/0.414, allocations: 130.8 kB / 0.5431 GB, free: 9.461 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007803/0.4148, allocations: 356.1 kB / 0.5434 GB, free: 9.336 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.4148, allocations: 0.875 kB / 0.5434 GB, free: 9.336 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002915/0.4151, allocations: 153.3 kB / 0.5435 GB, free: 9.281 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007555/0.4158, allocations: 122.5 kB / 0.5437 GB, free: 9.238 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001918/0.4177, allocations: 0.968 MB / 0.5446 GB, free: 8.617 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006246/0.4184, allocations: 0.8674 MB / 0.5455 GB, free: 7.906 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002821/0.4186, allocations: 65.88 kB / 0.5455 GB, free: 7.891 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001286/0.4188, allocations: 43.44 kB / 0.5456 GB, free: 7.883 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4188, allocations: 0 / 0.5456 GB, free: 7.883 MB / 398.1 MB Notification: Performance of Templates: time 0.01427/0.433, allocations: 5.373 MB / 0.5508 GB, free: 5.379 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SIR.makefile [Timeout 660] (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 & ./BusinessSimulation_BusinessSimulation.Examples.SIR -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.389889471232891] Failed to read output from testmodel.py, exit status != 0: 0.44258734956383705 0.458071634 0.062363747000000004 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7fc2310297b0>