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.001473/0.001473, allocations: 93.06 kB / 19.65 MB, free: 280 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.001195/0.001195, allocations: 169 kB / 23.02 MB, free: 1.551 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.073/1.073, allocations: 177.2 MB / 203.4 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] 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.1246/0.1246, allocations: 24.14 MB / 284.1 MB, free: 5.27 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.512e-06/1.512e-06, allocations: 0 / 361.2 MB, free: 2.793 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.362e-05/2.514e-05, allocations: 2.312 kB / 361.2 MB, free: 2.789 MB / 282.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.005995/0.00602, allocations: 6.925 MB / 368.2 MB, free: 11.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00207/0.00809, allocations: 1.11 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004063/0.008496, allocations: 27.81 kB / 369.3 MB, free: 10.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003312/0.008827, allocations: 138.7 kB / 369.4 MB, free: 10.55 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002411/0.009068, allocations: 95.06 kB / 369.5 MB, free: 10.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006831/0.009751, allocations: 307.3 kB / 369.8 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006984/0.01045, allocations: 0.7304 MB / 370.6 MB, free: 9.426 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004515/0.0109, allocations: 307.1 kB / 370.9 MB, free: 9.105 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004466/0.01135, allocations: 467 kB / 371.3 MB, free: 8.648 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002593/0.01161, allocations: 215.2 kB / 371.5 MB, free: 8.438 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.178e-05/0.01169, allocations: 84 kB / 371.6 MB, free: 8.355 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001134/0.0118, allocations: 88 kB / 371.7 MB, free: 8.27 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001231/0.01193, allocations: 175.5 kB / 371.9 MB, free: 8.098 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001645/0.01209, allocations: 219.4 kB / 372.1 MB, free: 7.883 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005018/0.01259, allocations: 482.1 kB / 372.6 MB, free: 7.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.01259, allocations: 0 / 372.6 MB, free: 7.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.22e-07/0.0126, allocations: 0 / 372.6 MB, free: 7.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.0126, allocations: 0 / 372.6 MB, free: 7.41 MB / 298.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.0009249/0.01353, allocations: 0.9292 MB / 373.5 MB, free: 6.445 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.01356, allocations: 12.75 kB / 373.5 MB, free: 6.434 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002523/0.01382, allocations: 148.4 kB / 373.6 MB, free: 6.289 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004458/0.01426, allocations: 425.4 kB / 374.1 MB, free: 5.852 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.763e-05/0.01431, allocations: 54.38 kB / 374.1 MB, free: 5.797 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.677e-05/0.01438, allocations: 80.12 kB / 374.2 MB, free: 5.719 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006182/0.01499, allocations: 0.5704 MB / 374.8 MB, free: 5.102 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.01501, allocations: 0 / 374.8 MB, free: 5.102 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.698e-05/0.01505, allocations: 32 kB / 374.8 MB, free: 5.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.607e-05/0.01506, allocations: 16 kB / 374.8 MB, free: 5.055 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003329/0.0154, allocations: 227.6 kB / 375 MB, free: 4.832 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001849/0.01725, allocations: 2.157 MB / 377.2 MB, free: 2.586 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003295/0.01757, allocations: 232 kB / 377.4 MB, free: 2.324 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002117/0.01779, allocations: 158.3 kB / 377.6 MB, free: 2.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.401e-05/0.0178, allocations: 8 kB / 377.6 MB, free: 2.152 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.681e-05/0.01783, allocations: 49.64 kB / 377.6 MB, free: 2.094 MB / 298.7 MB Notification: Performance of pre-optimization done (n=34): time 1.473e-06/0.01783, allocations: 0 / 377.6 MB, free: 2.094 MB / 298.7 MB Notification: Performance of matching and sorting (n=34): time 0.0004101/0.01824, allocations: 269.3 kB / 377.9 MB, free: 1.824 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.379e-05/0.01829, allocations: 132.5 kB / 378 MB, free: 1.664 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002525/0.01855, allocations: 374 kB / 378.4 MB, free: 1.285 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.99e-05/0.01858, allocations: 41.95 kB / 378.4 MB, free: 1.238 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001712/0.01875, allocations: 391.1 kB / 378.8 MB, free: 0.8438 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.416e-05/0.01881, allocations: 107.1 kB / 378.9 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001288/0.01894, allocations: 131.9 kB / 379 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.01908, allocations: 0.5157 MB / 379.5 MB, free: 76 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001628/0.01924, allocations: 85.3 kB / 379.6 MB, free: 15.98 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002318/0.01947, allocations: 314.3 kB / 379.9 MB, free: 15.59 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003209/0.01979, allocations: 370.6 kB / 380.3 MB, free: 15.15 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.0198, allocations: 0 / 380.3 MB, free: 15.15 MB / 314.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0004643/0.02026, allocations: 441.1 kB / 380.7 MB, free: 14.71 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.02028, allocations: 4 kB / 380.7 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.02029, allocations: 8 kB / 380.7 MB, free: 14.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.0203, allocations: 7.938 kB / 380.7 MB, free: 14.69 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001728/0.02048, allocations: 83.83 kB / 380.8 MB, free: 14.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.197e-05/0.02049, allocations: 11.98 kB / 380.8 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001352/0.02062, allocations: 55.56 kB / 380.9 MB, free: 14.54 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.507e-05/0.02065, allocations: 28.23 kB / 380.9 MB, free: 14.51 MB / 314.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,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 (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.0001456/0.02079, allocations: 228.3 kB / 381.1 MB, free: 14.28 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.492e-05/0.02086, allocations: 47.77 kB / 381.2 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.669e-05/0.02091, allocations: 43.95 kB / 381.2 MB, free: 14.19 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.02091, allocations: 7.938 kB / 381.2 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.02092, allocations: 0 / 381.2 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.02092, allocations: 0 / 381.2 MB, free: 14.18 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008844/0.0218, allocations: 1.095 MB / 382.3 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.02181, allocations: 4 kB / 382.3 MB, free: 13 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001239/0.02193, allocations: 43.91 kB / 382.4 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.02194, allocations: 4 kB / 382.4 MB, free: 12.95 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.123e-05/0.02196, allocations: 8 kB / 382.4 MB, free: 12.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.02196, allocations: 4 kB / 382.4 MB, free: 12.94 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.02196, allocations: 11.88 kB / 382.4 MB, free: 12.93 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003941/0.02236, allocations: 0.5012 MB / 382.9 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.056e-05/0.02244, allocations: 75.64 kB / 383 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.956e-05/0.02247, allocations: 8 kB / 383 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.225e-05/0.02255, allocations: 8 kB / 383 MB, free: 12.29 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.138e-05/0.02261, allocations: 35.88 kB / 383 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.02262, allocations: 16 kB / 383.1 MB, free: 12.23 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000127/0.02275, allocations: 219 kB / 383.3 MB, free: 12.02 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.02275, allocations: 0 / 383.3 MB, free: 12.02 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002859/0.02304, allocations: 135.5 kB / 383.4 MB, free: 11.89 MB / 314.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 9.926e-05/0.02314, allocations: 126.9 kB / 383.5 MB, free: 11.76 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003376/0.02347, allocations: 276.1 kB / 383.8 MB, free: 11.49 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.02348, allocations: 0 / 383.8 MB, free: 11.49 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001158/0.02359, allocations: 108.9 kB / 383.9 MB, free: 11.38 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003619/0.02395, allocations: 96.86 kB / 384 MB, free: 11.29 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001041/0.025, allocations: 0.9253 MB / 384.9 MB, free: 10.29 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.91e-05/0.02507, allocations: 122 kB / 385 MB, free: 10.15 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001398/0.02521, allocations: 56.14 kB / 385.1 MB, free: 10.1 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.95e-05/0.02528, allocations: 36.5 kB / 385.1 MB, free: 10.06 MB / 314.7 MB Notification: Performance of SimCode: time 6.81e-07/0.02528, allocations: 0 / 385.1 MB, free: 10.06 MB / 314.7 MB Notification: Performance of Templates: time 0.006965/0.03225, allocations: 4.477 MB / 389.6 MB, free: 5.695 MB / 314.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: 3.066028563771397]