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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo", uses=false) 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: "" <> buildModelFMU(BusinessSimulation.Examples.SIR,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SIR",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SIR,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SIR",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001214/0.001214, allocations: 196.7 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.298/1.298, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.264/0.264, allocations: 31.16 MB / 321.5 MB, free: 4.402 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 63.89 kB / 389 MB, free: 2.453 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2551/0.2564, allocations: 56.35 MB / 445.4 MB, free: 34.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.005929/0.2624, allocations: 7.242 MB / 452.6 MB, free: 29.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001676/0.2641, allocations: 1.094 MB / 453.7 MB, free: 28.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002985/0.2644, allocations: 21.59 kB / 453.7 MB, free: 28.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002939/0.2647, allocations: 141.2 kB / 453.9 MB, free: 28.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001932/0.2649, allocations: 81.66 kB / 454 MB, free: 28.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005496/0.2655, allocations: 294 kB / 454.3 MB, free: 28.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004361/0.2659, allocations: 0.7174 MB / 455 MB, free: 28.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004713/0.2664, allocations: 488.3 kB / 455.4 MB, free: 27.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001938/0.2666, allocations: 292.7 kB / 455.7 MB, free: 27.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001984/0.2668, allocations: 308 kB / 456 MB, free: 27.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.743e-05/0.2669, allocations: 83.47 kB / 456.1 MB, free: 27.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001033/0.267, allocations: 89.19 kB / 456.2 MB, free: 27.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.822e-05/0.2671, allocations: 176 kB / 456.4 MB, free: 27.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001638/0.2673, allocations: 343.1 kB / 456.7 MB, free: 27.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000462/0.2677, allocations: 0.7742 MB / 457.5 MB, free: 26.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.2677, allocations: 0 / 457.5 MB, free: 26.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2678, allocations: 1.469 kB / 457.5 MB, free: 26.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.869e-06/0.2678, allocations: 0 / 457.5 MB, free: 26.67 MB / 350.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.001091/0.2689, allocations: 0.895 MB / 458.4 MB, free: 26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.151e-05/0.2689, allocations: 9.562 kB / 458.4 MB, free: 26 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.37e-05/0.269, allocations: 114 kB / 458.5 MB, free: 25.92 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003107/0.2693, allocations: 92.34 kB / 458.6 MB, free: 25.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004212/0.2697, allocations: 437.9 kB / 459 MB, free: 25.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.218e-05/0.2698, allocations: 58 kB / 459.1 MB, free: 25.51 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.684e-05/0.2699, allocations: 73.03 kB / 459.1 MB, free: 25.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007926/0.2707, allocations: 0.6507 MB / 459.8 MB, free: 25.15 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.2707, allocations: 0 / 459.8 MB, free: 25.15 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.349e-05/0.2707, allocations: 26.75 kB / 459.8 MB, free: 25.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.2708, allocations: 21.62 kB / 459.8 MB, free: 25.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005683/0.2713, allocations: 378 kB / 460.2 MB, free: 25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002478/0.2738, allocations: 2.282 MB / 462.5 MB, free: 23.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005348/0.2744, allocations: 323.6 kB / 462.8 MB, free: 23.31 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003693/0.2748, allocations: 229.1 kB / 463 MB, free: 23.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.888e-05/0.2748, allocations: 7.781 kB / 463 MB, free: 23.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.16e-05/0.2748, allocations: 42.84 kB / 463.1 MB, free: 23.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.563e-06/0.2748, allocations: 3.938 kB / 463.1 MB, free: 23.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.0006551/0.2755, allocations: 400.6 kB / 463.5 MB, free: 22.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.014e-05/0.2755, allocations: 219.9 kB / 463.7 MB, free: 22.72 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003271/0.2759, allocations: 360.6 kB / 464 MB, free: 22.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.685e-05/0.2759, allocations: 45.34 kB / 464.1 MB, free: 22.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001508/0.2761, allocations: 313.5 kB / 464.4 MB, free: 22.24 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.891e-05/0.2761, allocations: 119.8 kB / 464.5 MB, free: 22.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001442/0.2763, allocations: 121.3 kB / 464.6 MB, free: 22.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.554e-05/0.2764, allocations: 353.5 kB / 465 MB, free: 21.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002767/0.2766, allocations: 153 kB / 465.1 MB, free: 21.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003302/0.277, allocations: 299.7 kB / 465.4 MB, free: 21.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004653/0.2775, allocations: 405.1 kB / 465.8 MB, free: 21.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.2775, allocations: 5.438 kB / 465.8 MB, free: 21.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0007718/0.2783, allocations: 0.505 MB / 466.3 MB, free: 20.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.2783, allocations: 11.86 kB / 466.3 MB, free: 20.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.2783, allocations: 3.812 kB / 466.3 MB, free: 20.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.045e-05/0.2783, allocations: 10.88 kB / 466.4 MB, free: 20.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002915/0.2786, allocations: 79.8 kB / 466.4 MB, free: 20.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.461e-05/0.2786, allocations: 11.41 kB / 466.4 MB, free: 20.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002579/0.2789, allocations: 64.36 kB / 466.5 MB, free: 20.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.399e-05/0.2789, allocations: 25.09 kB / 466.5 MB, free: 20.89 MB / 350.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.0001892/0.2791, allocations: 220.3 kB / 466.7 MB, free: 20.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.384e-05/0.2792, allocations: 43.64 kB / 466.8 MB, free: 20.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.547e-05/0.2793, allocations: 53.88 kB / 466.8 MB, free: 20.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.2793, allocations: 8.188 kB / 466.8 MB, free: 20.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.2793, allocations: 2.156 kB / 466.8 MB, free: 20.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.2794, allocations: 6.188 kB / 466.9 MB, free: 20.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001316/0.2807, allocations: 1.234 MB / 468.1 MB, free: 19.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.2807, allocations: 2.797 kB / 468.1 MB, free: 19.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002248/0.2809, allocations: 50.47 kB / 468.1 MB, free: 19.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.2809, allocations: 3.844 kB / 468.1 MB, free: 19.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.485e-05/0.281, allocations: 14.5 kB / 468.2 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.281, allocations: 9.109 kB / 468.2 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/0.281, allocations: 5.938 kB / 468.2 MB, free: 19.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006144/0.2816, allocations: 0.58 MB / 468.8 MB, free: 19.4 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001088/0.2817, allocations: 147.9 kB / 468.9 MB, free: 19.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.056e-05/0.2818, allocations: 14.66 kB / 468.9 MB, free: 19.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/0.282, allocations: 14.41 kB / 468.9 MB, free: 19.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.194e-05/0.2821, allocations: 45.97 kB / 469 MB, free: 19.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.893e-05/0.2821, allocations: 14.33 kB / 469 MB, free: 19.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000217/0.2823, allocations: 233.3 kB / 469.2 MB, free: 19.11 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2823, allocations: 0 / 469.2 MB, free: 19.11 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004132/0.2827, allocations: 138.9 kB / 469.3 MB, free: 19.06 MB / 350.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.0007497/0.2835, allocations: 1.139 MB / 470.5 MB, free: 18.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006404/0.2841, allocations: 401.4 kB / 470.9 MB, free: 18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.2842, allocations: 0 / 470.9 MB, free: 18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002111/0.2844, allocations: 163.5 kB / 471 MB, free: 17.94 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006152/0.285, allocations: 123.7 kB / 471.2 MB, free: 17.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004081/0.2891, allocations: 4.001 MB / 475.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003075/0.2894, allocations: 0.867 MB / 476 MB, free: 14.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000249/0.2897, allocations: 67.05 kB / 476.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002119/0.2899, allocations: 197.1 kB / 476.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2899, allocations: 0 / 476.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0266/0.3165, allocations: 8.451 MB / 484.7 MB, free: 11.47 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.383/7.699, allocations: 3.75 kB / 484.7 MB, free: 11.46 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_dev_BusinessSimulation_Examples_SIR_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_SIR.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SIR.pipe 2>&1)