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.00186/0.00186, allocations: 93.47 kB / 19.44 MB, free: 336 kB / 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.002152/0.002152, allocations: 173.2 kB / 22.76 MB, free: 1.66 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 1.595/1.595, allocations: 177.1 MB / 203.1 MB, free: 5.617 MB / 186.7 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.1928/0.1928, allocations: 24.12 MB / 283.7 MB, free: 5.316 MB / 266.7 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: 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 1.403e-06/1.403e-06, allocations: 0 / 360.5 MB, free: 4.191 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.183e-05/3.323e-05, allocations: 6.141 kB / 360.5 MB, free: 4.188 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.01001/0.01005, allocations: 6.871 MB / 367.4 MB, free: 13.28 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002875/0.01292, allocations: 1.106 MB / 368.5 MB, free: 12.17 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004398/0.01336, allocations: 27.81 kB / 368.5 MB, free: 12.14 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004269/0.01379, allocations: 134.7 kB / 368.6 MB, free: 12.01 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002947/0.01408, allocations: 99.11 kB / 368.7 MB, free: 11.91 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008318/0.01491, allocations: 303.3 kB / 369 MB, free: 11.62 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009962/0.01591, allocations: 0.7304 MB / 369.8 MB, free: 10.89 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006712/0.01658, allocations: 311 kB / 370.1 MB, free: 10.57 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006771/0.01726, allocations: 463 kB / 370.5 MB, free: 10.11 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003795/0.01764, allocations: 219.2 kB / 370.7 MB, free: 9.898 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001262/0.01776, allocations: 88 kB / 370.8 MB, free: 9.812 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001614/0.01792, allocations: 91.98 kB / 370.9 MB, free: 9.723 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000196/0.01812, allocations: 175.4 kB / 371.1 MB, free: 9.551 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002679/0.01839, allocations: 235.4 kB / 371.3 MB, free: 9.32 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001099/0.01949, allocations: 0.81 MB / 372.1 MB, free: 8.508 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.01949, allocations: 0 / 372.1 MB, free: 8.508 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.01949, allocations: 0 / 372.1 MB, free: 8.508 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.435e-05/0.01952, allocations: 0 / 372.1 MB, free: 8.508 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.001931/0.02145, allocations: 0.9913 MB / 373.1 MB, free: 7.477 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/0.0215, allocations: 12.75 kB / 373.1 MB, free: 7.465 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004103/0.02191, allocations: 148.4 kB / 373.3 MB, free: 7.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007367/0.02265, allocations: 402.8 kB / 373.7 MB, free: 6.898 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.836e-05/0.02272, allocations: 58.38 kB / 373.7 MB, free: 6.844 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001231/0.02284, allocations: 84.12 kB / 373.8 MB, free: 6.762 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001332/0.02417, allocations: 0.8238 MB / 374.6 MB, free: 5.859 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.051e-05/0.02419, allocations: 0 / 374.6 MB, free: 5.859 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.887e-05/0.02425, allocations: 28 kB / 374.6 MB, free: 5.832 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.074e-05/0.02427, allocations: 16 kB / 374.7 MB, free: 5.816 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007717/0.02504, allocations: 365 kB / 375 MB, free: 5.461 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00381/0.02886, allocations: 2.451 MB / 377.5 MB, free: 2.941 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006931/0.02955, allocations: 320.4 kB / 377.8 MB, free: 2.594 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004685/0.03002, allocations: 224.1 kB / 378 MB, free: 2.363 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.297e-05/0.03005, allocations: 4.656 kB / 378 MB, free: 2.359 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.47e-05/0.03009, allocations: 45.61 kB / 378 MB, free: 2.305 MB / 346.7 MB Notification: Performance of pre-optimization done (n=38): time 1.894e-06/0.0301, allocations: 0 / 378 MB, free: 2.305 MB / 346.7 MB Notification: Performance of matching and sorting (n=38): time 0.0008557/0.03095, allocations: 378.8 kB / 378.4 MB, free: 1.93 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001679/0.03112, allocations: 221.6 kB / 378.6 MB, free: 1.664 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005649/0.03168, allocations: 446.2 kB / 379.1 MB, free: 1.215 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.135e-05/0.03175, allocations: 45.7 kB / 379.1 MB, free: 1.164 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005457/0.03229, allocations: 387.3 kB / 379.5 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001742/0.03247, allocations: 142.9 kB / 379.6 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002599/0.03273, allocations: 167.9 kB / 379.8 MB, free: 480 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003503/0.03308, allocations: 0.547 MB / 380.3 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003348/0.03341, allocations: 141.2 kB / 380.5 MB, free: 15.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006016/0.03401, allocations: 459.8 kB / 380.9 MB, free: 15.21 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007068/0.03472, allocations: 446.5 kB / 381.4 MB, free: 14.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.042e-06/0.03473, allocations: 8 kB / 381.4 MB, free: 14.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00097/0.0357, allocations: 0.501 MB / 381.9 MB, free: 14.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.03571, allocations: 4 kB / 381.9 MB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.03572, allocations: 8.406 kB / 381.9 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.454e-05/0.03575, allocations: 15.98 kB / 381.9 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003317/0.03608, allocations: 75.84 kB / 382 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.027e-05/0.0361, allocations: 15.92 kB / 382 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000287/0.03639, allocations: 55.62 kB / 382 MB, free: 14.02 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.744e-05/0.03643, allocations: 23.98 kB / 382.1 MB, free: 14 MB / 362.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.0003252/0.03676, allocations: 268.4 kB / 382.3 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001262/0.03689, allocations: 51.77 kB / 382.4 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001149/0.037, allocations: 43.86 kB / 382.4 MB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.03701, allocations: 4 kB / 382.4 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.03701, allocations: 4 kB / 382.4 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.03702, allocations: 3.938 kB / 382.4 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002067/0.03909, allocations: 1.338 MB / 383.8 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.03909, allocations: 0 / 383.8 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002914/0.03938, allocations: 51.91 kB / 383.8 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.03938, allocations: 7.938 kB / 383.8 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.719e-05/0.03942, allocations: 20.25 kB / 383.9 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.551e-06/0.03943, allocations: 4 kB / 383.9 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.03943, allocations: 0 / 383.9 MB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000973/0.0404, allocations: 0.6497 MB / 384.5 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001544/0.04056, allocations: 67.67 kB / 384.6 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.571e-05/0.04061, allocations: 12 kB / 384.6 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001901/0.0408, allocations: 15.98 kB / 384.6 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001025/0.0409, allocations: 39.88 kB / 384.6 MB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.564e-05/0.04093, allocations: 12 kB / 384.7 MB, free: 11.27 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002979/0.04123, allocations: 262.9 kB / 384.9 MB, free: 11.02 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04123, allocations: 0 / 384.9 MB, free: 11.02 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005043/0.04173, allocations: 147.5 kB / 385.1 MB, free: 10.88 MB / 362.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.0001596/0.04189, allocations: 127.1 kB / 385.2 MB, free: 10.75 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007792/0.04267, allocations: 372.3 kB / 385.5 MB, free: 10.38 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.04267, allocations: 256 / 385.5 MB, free: 10.38 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002734/0.04295, allocations: 163.5 kB / 385.7 MB, free: 10.21 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007289/0.04368, allocations: 119.2 kB / 385.8 MB, free: 10.11 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002113/0.04579, allocations: 0.9805 MB / 386.8 MB, free: 9.059 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003644/0.04615, allocations: 271.3 kB / 387.1 MB, free: 8.766 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000242/0.04639, allocations: 56.14 kB / 387.1 MB, free: 8.707 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/0.04652, allocations: 44.5 kB / 387.2 MB, free: 8.664 MB / 362.7 MB Notification: Performance of SimCode: time 7.22e-07/0.04652, allocations: 0 / 387.2 MB, free: 8.664 MB / 362.7 MB Notification: Performance of Templates: time 0.0125/0.05902, allocations: 5.151 MB / 392.3 MB, free: 3.633 MB / 362.7 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=240 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.974664130015299]