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.001449/0.001449, allocations: 115.5 kB / 18.88 MB, free: 3.062 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.001548/0.001548, allocations: 192 kB / 22.17 MB, free: 5.652 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.442/1.442, allocations: 225.6 MB / 250.9 MB, free: 13.27 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.1753/0.1753, allocations: 31.61 MB / 337.7 MB, free: 9.75 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: translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SIR") translateModel(BusinessSimulation.Examples.SIR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SIR") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001968/0.001968, allocations: 67.89 kB / 472.6 MB, free: 6.199 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3771/0.379, allocations: 59.49 MB / 0.5197 GB, free: 8.953 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.006887/0.3859, allocations: 7.313 MB / 0.5268 GB, free: 3.762 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002417/0.3883, allocations: 1.102 MB / 0.5279 GB, free: 2.965 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005157/0.3888, allocations: 18.81 kB / 0.5279 GB, free: 2.961 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004236/0.3893, allocations: 144 kB / 0.528 GB, free: 2.875 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002673/0.3895, allocations: 87.09 kB / 0.5281 GB, free: 2.809 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007881/0.3903, allocations: 317.3 kB / 0.5284 GB, free: 2.609 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006463/0.391, allocations: 0.7267 MB / 0.5291 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004793/0.3914, allocations: 319.4 kB / 0.5294 GB, free: 2.039 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002691/0.3917, allocations: 302.7 kB / 0.5297 GB, free: 1.867 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002991/0.392, allocations: 306.2 kB / 0.53 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001104/0.3921, allocations: 83.12 kB / 0.5301 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001836/0.3923, allocations: 94.44 kB / 0.5302 GB, free: 1.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001634/0.3925, allocations: 178 kB / 0.5304 GB, free: 1.555 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002454/0.3927, allocations: 336.1 kB / 0.5307 GB, free: 1.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009086/0.3936, allocations: 0.803 MB / 0.5315 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.3936, allocations: 3.938 kB / 0.5315 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3936, allocations: 4.844 kB / 0.5315 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.371e-05/0.3936, allocations: 0 / 0.5315 GB, free: 0.9258 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.001416/0.3951, allocations: 0.9133 MB / 0.5324 GB, free: 252 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.3951, allocations: 11.19 kB / 0.5324 GB, free: 252 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003775/0.3955, allocations: 100 kB / 0.5325 GB, free: 208 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006694/0.3962, allocations: 459.8 kB / 0.5329 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.749e-05/0.3962, allocations: 60.81 kB / 0.533 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001097/0.3963, allocations: 73.34 kB / 0.533 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001181/0.3975, allocations: 0.6479 MB / 0.5337 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.3975, allocations: 4 kB / 0.5337 GB, free: 15.46 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.964e-05/0.3976, allocations: 26.78 kB / 0.5337 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.918e-05/0.3976, allocations: 21.61 kB / 0.5337 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009191/0.3985, allocations: 380.7 kB / 0.5341 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003682/0.4022, allocations: 2.26 MB / 0.5363 GB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006658/0.4029, allocations: 305.2 kB / 0.5366 GB, free: 13.63 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004694/0.4034, allocations: 212.8 kB / 0.5368 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.049e-05/0.4034, allocations: 5.672 kB / 0.5368 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.395e-05/0.4034, allocations: 42.52 kB / 0.5368 GB, free: 13.49 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 2.244e-06/0.4034, allocations: 1.219 kB / 0.5368 GB, free: 13.49 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.0008569/0.4043, allocations: 400.2 kB / 0.5372 GB, free: 13.31 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001686/0.4045, allocations: 220.5 kB / 0.5374 GB, free: 13.05 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004585/0.4049, allocations: 359.6 kB / 0.5378 GB, free: 12.86 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.908e-05/0.405, allocations: 45.09 kB / 0.5378 GB, free: 12.82 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002784/0.4053, allocations: 318.4 kB / 0.5381 GB, free: 12.57 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001226/0.4054, allocations: 124.7 kB / 0.5382 GB, free: 12.47 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002016/0.4056, allocations: 117.2 kB / 0.5383 GB, free: 12.41 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002014/0.4058, allocations: 354 kB / 0.5387 GB, free: 12.08 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003307/0.4061, allocations: 156.5 kB / 0.5388 GB, free: 12.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004594/0.4066, allocations: 303.1 kB / 0.5391 GB, free: 11.79 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006054/0.4072, allocations: 405.7 kB / 0.5395 GB, free: 11.51 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.4072, allocations: 5.344 kB / 0.5395 GB, free: 11.51 MB / 398.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0008838/0.4081, allocations: 0.5052 MB / 0.54 GB, free: 11.28 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.4081, allocations: 11.97 kB / 0.54 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.4081, allocations: 3.719 kB / 0.54 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.4081, allocations: 9.969 kB / 0.54 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003204/0.4084, allocations: 80.58 kB / 0.5401 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.006e-05/0.4085, allocations: 11.89 kB / 0.5401 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003253/0.4088, allocations: 63.91 kB / 0.5402 GB, free: 11.22 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.293e-05/0.4089, allocations: 26.22 kB / 0.5402 GB, free: 11.21 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.0002982/0.4091, allocations: 234 kB / 0.5404 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.4093, allocations: 47.34 kB / 0.5405 GB, free: 10.99 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001043/0.4094, allocations: 53.81 kB / 0.5405 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.4094, allocations: 4.938 kB / 0.5405 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/0.4094, allocations: 1.031 kB / 0.5405 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.4094, allocations: 3.406 kB / 0.5405 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002004/0.4114, allocations: 1.24 MB / 0.5417 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.4114, allocations: 2.969 kB / 0.5417 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002608/0.4117, allocations: 51.12 kB / 0.5418 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.733e-06/0.4117, allocations: 3.859 kB / 0.5418 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.477e-05/0.4117, allocations: 14.22 kB / 0.5418 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/0.4117, allocations: 4.188 kB / 0.5418 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.481e-06/0.4117, allocations: 7.438 kB / 0.5418 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008933/0.4126, allocations: 0.5802 MB / 0.5424 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000218/0.4128, allocations: 149.4 kB / 0.5425 GB, free: 9.566 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.299e-05/0.4129, allocations: 14.64 kB / 0.5425 GB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002085/0.4131, allocations: 18.97 kB / 0.5426 GB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.4132, allocations: 32.91 kB / 0.5426 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.937e-05/0.4132, allocations: 14.17 kB / 0.5426 GB, free: 9.539 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000353/0.4136, allocations: 241.8 kB / 0.5428 GB, free: 9.406 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4136, allocations: 0 / 0.5428 GB, free: 9.406 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005818/0.4142, allocations: 142.2 kB / 0.543 GB, free: 9.355 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.0001868/0.4144, allocations: 115.4 kB / 0.5431 GB, free: 9.262 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008513/0.4152, allocations: 362.7 kB / 0.5434 GB, free: 9.137 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.4152, allocations: 0 / 0.5434 GB, free: 9.137 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002899/0.4155, allocations: 148.2 kB / 0.5436 GB, free: 9.086 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007388/0.4163, allocations: 132.6 kB / 0.5437 GB, free: 9.031 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001816/0.4181, allocations: 0.9668 MB / 0.5446 GB, free: 8.414 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006336/0.4187, allocations: 0.8636 MB / 0.5455 GB, free: 7.707 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002475/0.4189, allocations: 66.16 kB / 0.5456 GB, free: 7.691 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.866e-05/0.419, allocations: 39.12 kB / 0.5456 GB, free: 7.688 MB / 398.1 MB Notification: Performance of SimCode: time 3e-07/0.419, allocations: 0 / 0.5456 GB, free: 7.688 MB / 398.1 MB Notification: Performance of Templates: time 0.01099/0.43, allocations: 5.246 MB / 0.5507 GB, free: 5.203 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SIR.makefile [Timeout 660] (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 & ./BusinessSimulation_dev_BusinessSimulation.Examples.SIR -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.025932167191058] Failed to read output from testmodel.py, exit status != 0: 0.4385604881681502 0.452520383 0.055717933000000004 Calling exit ...