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.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.0007094/0.0007094, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009043/0.001614, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0006995/0.0006995, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009215/0.001621, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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 0.9867/0.9867, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07828/1.065, allocations: 53.66 MB / 243.2 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] 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.1008/0.1008, allocations: 24.17 MB / 268.1 MB, free: 7.223 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1499/0.2507, allocations: 7.76 MB / 275.9 MB, free: 0.8125 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-main/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_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 1.643e-06/1.643e-06, allocations: 0 / 277.4 MB, free: 136 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.044e-05/2.208e-05, allocations: 5.078 kB / 277.4 MB, free: 132 kB / 266.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.00652/0.006542, allocations: 6.926 MB / 284.3 MB, free: 11.55 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002803/0.009345, allocations: 1.172 MB / 285.5 MB, free: 10.72 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006841/0.01003, allocations: 26.28 kB / 285.5 MB, free: 10.71 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003696/0.0104, allocations: 150.7 kB / 285.6 MB, free: 10.62 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002544/0.01065, allocations: 94.41 kB / 285.7 MB, free: 10.55 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007882/0.01144, allocations: 299.3 kB / 286 MB, free: 10.37 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000687/0.01213, allocations: 0.7159 MB / 286.7 MB, free: 9.984 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004405/0.01257, allocations: 316.5 kB / 287 MB, free: 9.797 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004865/0.01306, allocations: 485.7 kB / 287.5 MB, free: 9.543 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000264/0.01332, allocations: 205.9 kB / 287.7 MB, free: 9.461 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.993e-05/0.0134, allocations: 81.97 kB / 287.8 MB, free: 9.461 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001348/0.01353, allocations: 90.97 kB / 287.9 MB, free: 9.457 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.01364, allocations: 140.2 kB / 288 MB, free: 9.426 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001558/0.0138, allocations: 176.5 kB / 288.2 MB, free: 9.402 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005224/0.01432, allocations: 444.5 kB / 288.6 MB, free: 9.195 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.366e-05/0.01434, allocations: 0 / 288.6 MB, free: 9.195 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.01434, allocations: 0 / 288.6 MB, free: 9.195 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.474e-05/0.01435, allocations: 4 kB / 288.6 MB, free: 9.195 MB / 282.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.000953/0.0153, allocations: 0.9332 MB / 289.6 MB, free: 8.551 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.01534, allocations: 8.656 kB / 289.6 MB, free: 8.551 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002805/0.01562, allocations: 208.9 kB / 289.8 MB, free: 8.402 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004343/0.01606, allocations: 337.3 kB / 290.1 MB, free: 8.156 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.419e-05/0.01611, allocations: 62.5 kB / 290.2 MB, free: 8.129 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.267e-05/0.01618, allocations: 81.36 kB / 290.3 MB, free: 8.098 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005169/0.0167, allocations: 0.5291 MB / 290.8 MB, free: 7.711 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.01671, allocations: 0 / 290.8 MB, free: 7.711 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.314e-05/0.01675, allocations: 32.44 kB / 290.8 MB, free: 7.688 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.368e-05/0.01676, allocations: 17.23 kB / 290.8 MB, free: 7.688 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001913/0.01695, allocations: 152.7 kB / 291 MB, free: 7.656 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001878/0.01883, allocations: 1.574 MB / 292.6 MB, free: 6.441 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002559/0.01909, allocations: 181.4 kB / 292.7 MB, free: 6.332 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001605/0.01925, allocations: 132.1 kB / 292.9 MB, free: 6.27 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.568e-05/0.01926, allocations: 6.312 kB / 292.9 MB, free: 6.27 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.729e-05/0.01929, allocations: 37.81 kB / 292.9 MB, free: 6.227 MB / 282.7 MB Notification: Performance of pre-optimization done (n=34): time 2.775e-06/0.01929, allocations: 2.328 kB / 292.9 MB, free: 6.227 MB / 282.7 MB Notification: Performance of matching and sorting (n=34): time 0.0002934/0.01958, allocations: 192.8 kB / 293.1 MB, free: 6.148 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.28e-05/0.01963, allocations: 117.2 kB / 293.2 MB, free: 6.016 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002215/0.01985, allocations: 320.7 kB / 293.5 MB, free: 5.781 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.312e-05/0.01988, allocations: 40.17 kB / 293.6 MB, free: 5.742 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001429/0.02003, allocations: 323.8 kB / 293.9 MB, free: 5.461 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.186e-05/0.02009, allocations: 105.8 kB / 294 MB, free: 5.371 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.0202, allocations: 126.9 kB / 294.1 MB, free: 5.289 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.774e-05/0.0203, allocations: 351.7 kB / 294.4 MB, free: 4.945 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.277e-05/0.02038, allocations: 56.03 kB / 294.5 MB, free: 4.938 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001512/0.02053, allocations: 236.8 kB / 294.7 MB, free: 4.707 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002487/0.02078, allocations: 302.2 kB / 295 MB, free: 4.465 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.02078, allocations: 0 / 295 MB, free: 4.465 MB / 282.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0003012/0.02108, allocations: 309.7 kB / 295.3 MB, free: 4.332 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.0211, allocations: 10.44 kB / 295.3 MB, free: 4.328 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.098e-06/0.02111, allocations: 4.281 kB / 295.3 MB, free: 4.328 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/0.02113, allocations: 8.5 kB / 295.4 MB, free: 4.328 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002218/0.02135, allocations: 94.77 kB / 295.4 MB, free: 4.305 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.02136, allocations: 16 kB / 295.5 MB, free: 4.297 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001431/0.0215, allocations: 58.02 kB / 295.5 MB, free: 4.254 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.075e-05/0.02152, allocations: 18.25 kB / 295.5 MB, free: 4.25 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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,susceptible.inflow.stopInflow,removed.inflow.stopInflow,removed.outflow.stopInflow,susceptible.outflow.stopInflow,infected.inflow.stopOutflow,infected.inflow.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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 74 * 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.0001502/0.02167, allocations: 172.9 kB / 295.7 MB, free: 4.094 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.148e-05/0.02174, allocations: 35.34 kB / 295.7 MB, free: 4.078 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.265e-05/0.02179, allocations: 40.58 kB / 295.8 MB, free: 4.047 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.02179, allocations: 4.375 kB / 295.8 MB, free: 4.047 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.0218, allocations: 3.938 kB / 295.8 MB, free: 4.043 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.441e-06/0.0218, allocations: 5.172 kB / 295.8 MB, free: 4.039 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007718/0.02258, allocations: 0.7479 MB / 296.5 MB, free: 3.441 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.02258, allocations: 2.562 kB / 296.5 MB, free: 3.441 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001442/0.02272, allocations: 51.48 kB / 296.6 MB, free: 3.426 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.482e-05/0.02279, allocations: 45.19 kB / 296.6 MB, free: 3.398 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.41e-06/0.02279, allocations: 5.672 kB / 296.6 MB, free: 3.398 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.896e-05/0.02281, allocations: 12.56 kB / 296.7 MB, free: 3.391 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.02282, allocations: 4.594 kB / 296.7 MB, free: 3.391 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.02282, allocations: 6.562 kB / 296.7 MB, free: 3.387 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002903/0.02311, allocations: 372.7 kB / 297 MB, free: 3.113 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.793e-05/0.02314, allocations: 8.094 kB / 297 MB, free: 3.109 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.761e-05/0.02322, allocations: 9.312 kB / 297 MB, free: 3.105 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.437e-05/0.02327, allocations: 34.48 kB / 297.1 MB, free: 3.082 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.116e-05/0.02328, allocations: 10.69 kB / 297.1 MB, free: 3.078 MB / 282.7 MB Notification: Performance of sorting global known variables: time 8.239e-05/0.02336, allocations: 103.1 kB / 297.2 MB, free: 3.027 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02336, allocations: 1.344 kB / 297.2 MB, free: 3.027 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003158/0.02368, allocations: 139.1 kB / 297.3 MB, free: 2.973 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (34): * Single equations (assignments): 34 * 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.0001099/0.02379, allocations: 104.4 kB / 297.4 MB, free: 2.887 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002656/0.02406, allocations: 226.5 kB / 297.7 MB, free: 2.812 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-05/0.02407, allocations: 9.703 kB / 297.7 MB, free: 2.809 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.986e-05/0.02416, allocations: 98.7 kB / 297.8 MB, free: 2.766 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003379/0.0245, allocations: 118.7 kB / 297.9 MB, free: 2.66 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001399/0.0259, allocations: 0.9975 MB / 298.9 MB, free: 1.605 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.842e-05/0.02598, allocations: 126 kB / 299 MB, free: 1.465 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001382/0.02611, allocations: 53.52 kB / 299 MB, free: 1.41 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001737/0.02629, allocations: 139.3 kB / 299.2 MB, free: 1.273 MB / 282.7 MB Notification: Performance of SimCode: time 1.042e-06/0.02629, allocations: 0 / 299.2 MB, free: 1.273 MB / 282.7 MB Notification: Performance of Templates: time 0.007597/0.03389, allocations: 4.856 MB / 304 MB, free: 12.57 MB / 298.7 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=240 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.7423722613602877]