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.0008095/0.0008096, allocations: 91.84 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004552/0.004552, allocations: 170.2 kB / 16.26 MB, free: 6.676 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.257/1.257, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 2.262/2.262, allocations: 31.19 MB / 322.6 MB, free: 5.008 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004359/0.0004359, allocations: 12 kB / 390.9 MB, free: 2.035 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3122/0.3127, allocations: 57.4 MB / 448.3 MB, free: 34.02 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SIR): time 0.004985/0.3177, allocations: 7.271 MB / 455.6 MB, free: 28.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001672/0.3194, allocations: 1.17 MB / 456.7 MB, free: 27.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003062/0.3197, allocations: 23.62 kB / 456.7 MB, free: 27.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002081/0.3199, allocations: 113.9 kB / 456.9 MB, free: 27.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001716/0.3201, allocations: 52.02 kB / 456.9 MB, free: 27.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004238/0.3205, allocations: 253.6 kB / 457.2 MB, free: 27.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004725/0.321, allocations: 0.6803 MB / 457.8 MB, free: 27.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004755/0.3215, allocations: 439.8 kB / 458.3 MB, free: 27 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001578/0.3217, allocations: 200.9 kB / 458.5 MB, free: 26.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001635/0.3218, allocations: 219.6 kB / 458.7 MB, free: 26.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.334e-05/0.3219, allocations: 25.97 kB / 458.7 MB, free: 26.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.534e-05/0.322, allocations: 42 kB / 458.7 MB, free: 26.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.259e-05/0.322, allocations: 102.4 kB / 458.8 MB, free: 26.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001432/0.3222, allocations: 292.2 kB / 459.1 MB, free: 26.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004476/0.3227, allocations: 0.7086 MB / 459.8 MB, free: 26.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3227, allocations: 0 / 459.8 MB, free: 26.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3227, allocations: 0 / 459.8 MB, free: 26.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.225e-06/0.3227, allocations: 0 / 459.8 MB, free: 26.25 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.0009681/0.3237, allocations: 0.7572 MB / 460.6 MB, free: 25.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.3237, allocations: 10.84 kB / 460.6 MB, free: 25.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.005e-05/0.3238, allocations: 115.9 kB / 460.7 MB, free: 25.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002978/0.3241, allocations: 96.7 kB / 460.8 MB, free: 25.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000444/0.3246, allocations: 427.7 kB / 461.2 MB, free: 25.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.527e-05/0.3246, allocations: 60.84 kB / 461.3 MB, free: 25.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.417e-05/0.3247, allocations: 77.44 kB / 461.4 MB, free: 25.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009382/0.3256, allocations: 0.6476 MB / 462 MB, free: 24.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.3257, allocations: 1.25 kB / 462 MB, free: 24.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.574e-05/0.3257, allocations: 30.38 kB / 462 MB, free: 24.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.557e-05/0.3257, allocations: 20.69 kB / 462.1 MB, free: 24.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006216/0.3264, allocations: 386 kB / 462.4 MB, free: 24.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0026/0.329, allocations: 2.289 MB / 464.7 MB, free: 23.14 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005277/0.3295, allocations: 322 kB / 465 MB, free: 22.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000374/0.3299, allocations: 227.6 kB / 465.3 MB, free: 22.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.3299, allocations: 4.25 kB / 465.3 MB, free: 22.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.086e-05/0.33, allocations: 46.56 kB / 465.3 MB, free: 22.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.513e-06/0.33, allocations: 1.188 kB / 465.3 MB, free: 22.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.000655/0.3306, allocations: 400.1 kB / 465.7 MB, free: 22.65 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/0.3307, allocations: 211.1 kB / 465.9 MB, free: 22.4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003635/0.3311, allocations: 365.3 kB / 466.3 MB, free: 22.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.301e-05/0.3311, allocations: 40.7 kB / 466.3 MB, free: 22.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001668/0.3313, allocations: 317.5 kB / 466.6 MB, free: 21.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.758e-05/0.3314, allocations: 112.9 kB / 466.7 MB, free: 21.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.937e-05/0.3315, allocations: 69.06 kB / 466.8 MB, free: 21.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.494e-05/0.3315, allocations: 358.2 kB / 467.1 MB, free: 21.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002831/0.3318, allocations: 161.7 kB / 467.3 MB, free: 21.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003686/0.3322, allocations: 298 kB / 467.6 MB, free: 21.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004848/0.3327, allocations: 401.4 kB / 468 MB, free: 20.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.3327, allocations: 1.469 kB / 468 MB, free: 20.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0007928/0.3335, allocations: 0.5097 MB / 468.5 MB, free: 20.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.3336, allocations: 11.28 kB / 468.5 MB, free: 20.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.3336, allocations: 2.656 kB / 468.5 MB, free: 20.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.3336, allocations: 7.688 kB / 468.5 MB, free: 20.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002825/0.3339, allocations: 79.22 kB / 468.6 MB, free: 20.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.476e-05/0.3339, allocations: 11.73 kB / 468.6 MB, free: 20.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002743/0.3342, allocations: 68.78 kB / 468.7 MB, free: 20.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.519e-05/0.3342, allocations: 21.08 kB / 468.7 MB, free: 20.59 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.0002194/0.3344, allocations: 222.8 kB / 468.9 MB, free: 20.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.275e-05/0.3345, allocations: 43.53 kB / 469 MB, free: 20.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.439e-05/0.3346, allocations: 50.95 kB / 469 MB, free: 20.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.3347, allocations: 4.25 kB / 469 MB, free: 20.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.3347, allocations: 2.125 kB / 469 MB, free: 20.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.3347, allocations: 1.922 kB / 469 MB, free: 20.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001412/0.3361, allocations: 1.234 MB / 470.3 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.469e-06/0.3361, allocations: 6.344 kB / 470.3 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002292/0.3364, allocations: 55.48 kB / 470.3 MB, free: 19.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.3364, allocations: 3.281 kB / 470.3 MB, free: 19.49 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.415e-05/0.3364, allocations: 14.09 kB / 470.3 MB, free: 19.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.739e-06/0.3364, allocations: 3.562 kB / 470.3 MB, free: 19.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3364, allocations: 4.109 kB / 470.3 MB, free: 19.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006619/0.3371, allocations: 0.5832 MB / 470.9 MB, free: 19.1 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001159/0.3372, allocations: 149.3 kB / 471.1 MB, free: 18.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.826e-05/0.3373, allocations: 14.27 kB / 471.1 MB, free: 18.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000194/0.3375, allocations: 19.09 kB / 471.1 MB, free: 18.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.179e-05/0.3376, allocations: 42.66 kB / 471.1 MB, free: 18.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.993e-05/0.3376, allocations: 8.094 kB / 471.1 MB, free: 18.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002552/0.3378, allocations: 238 kB / 471.4 MB, free: 18.81 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3379, allocations: 1.094 kB / 471.4 MB, free: 18.81 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004588/0.3383, allocations: 138.4 kB / 471.5 MB, free: 18.76 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.0007827/0.3391, allocations: 1.15 MB / 472.7 MB, free: 17.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006154/0.3397, allocations: 375 kB / 473 MB, free: 17.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.3397, allocations: 0.9375 kB / 473 MB, free: 17.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002553/0.34, allocations: 168.3 kB / 473.2 MB, free: 17.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007554/0.3408, allocations: 119.2 kB / 473.3 MB, free: 17.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00454/0.3453, allocations: 4.259 MB / 477.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003293/0.3457, allocations: 0.8635 MB / 478.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002774/0.346, allocations: 66.66 kB / 478.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002261/0.3462, allocations: 197.2 kB / 478.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3462, allocations: 5.344 kB / 478.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2985/0.6447, allocations: 8.34 MB / 487 MB, free: 11.17 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000136/0.6449, allocations: 181.5 kB / 487.2 MB, free: 10.92 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.174/2.819, allocations: 0 / 487.2 MB, free: 10.92 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)