Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.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.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII",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.004298/0.004298, allocations: 102 kB / 15.73 MB, free: 6.051 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.001096/0.001096, allocations: 191.4 kB / 16.67 MB, free: 5.965 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.241/1.241, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.1618/0.1618, allocations: 31.17 MB / 321.7 MB, free: 196 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001177, allocations: 59.89 kB / 446.2 MB, free: 2.277 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09844/0.09963, allocations: 56.36 MB / 0.4908 GB, free: 9.875 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.007612/0.1073, allocations: 6.791 MB / 0.4974 GB, free: 3.059 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002067/0.1094, allocations: 1.001 MB / 0.4984 GB, free: 2.055 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005338/0.1099, allocations: 19.88 kB / 0.4984 GB, free: 2.035 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003668/0.1103, allocations: 107 kB / 0.4985 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003184/0.1107, allocations: 79.3 kB / 0.4986 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007005/0.1114, allocations: 231.5 kB / 0.4988 GB, free: 1.625 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006422/0.112, allocations: 0.5697 MB / 0.4994 GB, free: 1.051 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004442/0.1125, allocations: 313.3 kB / 0.4997 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002822/0.1128, allocations: 227.1 kB / 0.4999 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002893/0.1131, allocations: 234.9 kB / 0.5001 GB, free: 292 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.718e-05/0.1132, allocations: 56 kB / 0.5002 GB, free: 236 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001176/0.1133, allocations: 64 kB / 0.5002 GB, free: 172 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.1134, allocations: 135.6 kB / 0.5004 GB, free: 36 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2101/0.3236, allocations: 256.3 kB / 0.5006 GB, free: 5.887 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006437/0.3242, allocations: 0.5777 MB / 0.5012 GB, free: 5.871 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.3243, allocations: 0.875 kB / 0.5012 GB, free: 5.871 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3243, allocations: 0.75 kB / 0.5012 GB, free: 5.871 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.729e-06/0.3243, allocations: 0 / 0.5012 GB, free: 5.871 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.00116/0.3254, allocations: 0.7871 MB / 0.5019 GB, free: 5.371 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.3255, allocations: 10.12 kB / 0.5019 GB, free: 5.371 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.608e-05/0.3256, allocations: 87.98 kB / 0.502 GB, free: 5.332 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002906/0.3259, allocations: 81.3 kB / 0.5021 GB, free: 5.305 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004713/0.3264, allocations: 396.6 kB / 0.5025 GB, free: 5.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.504e-05/0.3264, allocations: 46.88 kB / 0.5025 GB, free: 5.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.163e-05/0.3265, allocations: 62.98 kB / 0.5026 GB, free: 5.066 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007416/0.3273, allocations: 0.4907 MB / 0.5031 GB, free: 4.965 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.3273, allocations: 0.75 kB / 0.5031 GB, free: 4.965 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.51e-05/0.3273, allocations: 25.03 kB / 0.5031 GB, free: 4.965 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.3273, allocations: 12.19 kB / 0.5031 GB, free: 4.965 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005958/0.3279, allocations: 307.6 kB / 0.5034 GB, free: 4.957 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001948/0.3299, allocations: 1.867 MB / 0.5052 GB, free: 3.953 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005702/0.3305, allocations: 305 kB / 0.5055 GB, free: 3.855 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002785/0.3308, allocations: 184 kB / 0.5057 GB, free: 3.824 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.423e-05/0.3308, allocations: 4.203 kB / 0.5057 GB, free: 3.824 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.156e-05/0.3308, allocations: 40.27 kB / 0.5057 GB, free: 3.785 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 2.084e-06/0.3309, allocations: 0 / 0.5057 GB, free: 3.785 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008156/0.3317, allocations: 395.7 kB / 0.5061 GB, free: 3.719 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/0.3317, allocations: 166 kB / 0.5063 GB, free: 3.531 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003145/0.3321, allocations: 311 kB / 0.5066 GB, free: 3.418 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.691e-05/0.3321, allocations: 43.36 kB / 0.5066 GB, free: 3.387 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001301/0.3322, allocations: 258.9 kB / 0.5069 GB, free: 3.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.104e-05/0.3323, allocations: 98.02 kB / 0.5069 GB, free: 3.172 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001323/0.3324, allocations: 102.1 kB / 0.507 GB, free: 3.148 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.356e-05/0.3325, allocations: 354.7 kB / 0.5074 GB, free: 2.832 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003485/0.3329, allocations: 143.7 kB / 0.5075 GB, free: 2.832 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003537/0.3332, allocations: 256.2 kB / 0.5078 GB, free: 2.711 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005318/0.3338, allocations: 369.8 kB / 0.5081 GB, free: 2.59 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.3338, allocations: 5.094 kB / 0.5081 GB, free: 2.586 MB / 382.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001005/0.3348, allocations: 469.5 kB / 0.5086 GB, free: 2.523 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.3348, allocations: 13.31 kB / 0.5086 GB, free: 2.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.3348, allocations: 12.72 kB / 0.5086 GB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.237e-05/0.3349, allocations: 6.812 kB / 0.5086 GB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003272/0.3352, allocations: 68.28 kB / 0.5087 GB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.248e-05/0.3352, allocations: 7.266 kB / 0.5087 GB, free: 2.516 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000273/0.3355, allocations: 60.44 kB / 0.5087 GB, free: 2.492 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.489e-05/0.3356, allocations: 19.8 kB / 0.5088 GB, free: 2.492 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.inventory.inflow.stopInflow,$PRE.inventory.outflow.stopInflow,$PRE.producing.cloud.massPort.stopInflow,$PRE.producing.cloud.massPort.stopOutflow,$PRE.installedBase.inflow.stopInflow,$PRE.installedBase.inflow.stopOutflow,$PRE.cloud1.massPort.stopInflow,$PRE.cloud1.massPort.stopOutflow,cloud1.massPort.stopOutflow,cloud1.massPort.stopInflow,installedBase.inflow.stopInflow,producing.cloud.massPort.stopOutflow,inventory.inflow.stopInflow,installedBase.inflow.stopOutflow,producing.cloud.massPort.stopInflow,inventory.outflow.stopInflow,shipping.portA.stopInflow,producing.growing.portA.stopInflow,shipping.portB.stopOutflow,producing.growing.useB_rate,$PRE.producing.growing.useB_rate,producing.growing.useA_rate,$PRE.producing.growing.useA_rate,producing.growing.portB.stopOutflow,producing.growing.portB.stopInflow,producing.growing.portA.stopOutflow,shipping.useB_rate,$PRE.shipping.useB_rate,shipping.useA_rate,$PRE.shipping.useA_rate,shipping.portB.stopInflow,shipping.portA.stopOutflow,inventory.outflow.stopOutflow,$PRE.inventory.outflow.stopOutflow,inventory.inflow.stopOutflow,$PRE.inventory.inflow.stopOutflow) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 63 * 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.0001847/0.3357, allocations: 202 kB / 0.5089 GB, free: 2.371 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.3359, allocations: 36.36 kB / 0.509 GB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.806e-05/0.3359, allocations: 42.81 kB / 0.509 GB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.73e-06/0.336, allocations: 5.016 kB / 0.509 GB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.336, allocations: 1.375 kB / 0.509 GB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.336, allocations: 3.25 kB / 0.509 GB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001483/0.3375, allocations: 1.224 MB / 0.5102 GB, free: 1.672 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.3375, allocations: 1.375 kB / 0.5102 GB, free: 1.672 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002197/0.3377, allocations: 45.56 kB / 0.5103 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/0.3377, allocations: 3.438 kB / 0.5103 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.712e-05/0.3378, allocations: 14.36 kB / 0.5103 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.3378, allocations: 4.922 kB / 0.5103 GB, free: 1.668 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.211e-06/0.3378, allocations: 11.5 kB / 0.5103 GB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008025/0.3386, allocations: 0.5471 MB / 0.5108 GB, free: 1.434 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001211/0.3387, allocations: 141.6 kB / 0.511 GB, free: 1.316 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.854e-05/0.3388, allocations: 11.12 kB / 0.511 GB, free: 1.316 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000199/0.339, allocations: 20.64 kB / 0.511 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.309e-05/0.3391, allocations: 31.75 kB / 0.511 GB, free: 1.312 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.3391, allocations: 9.156 kB / 0.511 GB, free: 1.312 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002757/0.3394, allocations: 212.1 kB / 0.5112 GB, free: 17.23 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3394, allocations: 4 kB / 0.5112 GB, free: 17.23 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000458/0.3398, allocations: 113.4 kB / 0.5114 GB, free: 17.21 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (inventory.x,installedBase.x_hidden[1],installedBase.x_hidden[2],installedBase.x_hidden[3],installedBase.x_hidden[4]) * Number of discrete variables: 14 (inventory.outflow.stopOutflow,producing.growing.portB.stopOutflow,inventory.inflow.stopOutflow,shipping.portA.stopOutflow,shipping.useA_rate,producing.growing.useA_rate,shipping.portA.stopInflow,producing.growing.portA.stopInflow,shipping.portB.stopOutflow,producing.growing.useB_rate,producing.growing.portB.stopInflow,producing.growing.portA.stopOutflow,shipping.useB_rate,shipping.portB.stopInflow) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 31 * 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.001154/0.341, allocations: 1.109 MB / 0.5124 GB, free: 16.45 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006675/0.3417, allocations: 351.8 kB / 0.5128 GB, free: 16.44 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3417, allocations: 1.5 kB / 0.5128 GB, free: 16.44 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002786/0.342, allocations: 162.5 kB / 0.5129 GB, free: 16.43 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005751/0.3426, allocations: 99.81 kB / 0.513 GB, free: 16.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004979/0.3476, allocations: 3.622 MB / 0.5166 GB, free: 14.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000378/0.348, allocations: 0.8267 MB / 0.5174 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002408/0.3482, allocations: 63.5 kB / 0.5174 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001963/0.3484, allocations: 155.6 kB / 0.5176 GB, free: 13.88 MB / 398.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3484, allocations: 4 kB / 0.5176 GB, free: 13.88 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02984/0.3783, allocations: 7.381 MB / 0.5248 GB, free: 12.63 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.121/8.499, allocations: 9.016 kB / 0.5248 GB, free: 12.63 MB / 398.1 MB (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1)