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.007152/0.007152, allocations: 97.84 kB / 15.73 MB, free: 6.055 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.001828/0.001829, allocations: 195.3 kB / 16.67 MB, free: 5.977 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.479/1.479, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2725/0.2725, allocations: 31.15 MB / 321.7 MB, free: 4.332 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001811/0.001811, allocations: 71.59 kB / 446.2 MB, free: 30.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09411/0.09593, allocations: 56.37 MB / 0.4908 GB, free: 7.754 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.008121/0.1041, allocations: 6.781 MB / 0.4974 GB, free: 0.9453 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001925/0.106, allocations: 1.013 MB / 0.4984 GB, free: 15.93 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003187/0.1064, allocations: 19.88 kB / 0.4984 GB, free: 15.91 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002819/0.1067, allocations: 107 kB / 0.4985 GB, free: 15.8 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002096/0.1069, allocations: 75.25 kB / 0.4986 GB, free: 15.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006007/0.1075, allocations: 231.4 kB / 0.4988 GB, free: 15.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005897/0.1081, allocations: 0.562 MB / 0.4994 GB, free: 14.94 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004264/0.1086, allocations: 309.4 kB / 0.4997 GB, free: 14.63 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002555/0.1088, allocations: 231.1 kB / 0.4999 GB, free: 14.4 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002722/0.1091, allocations: 238.9 kB / 0.5001 GB, free: 14.17 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.282e-05/0.1092, allocations: 56 kB / 0.5002 GB, free: 14.11 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001138/0.1093, allocations: 64 kB / 0.5002 GB, free: 14.05 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001399/0.1095, allocations: 135.5 kB / 0.5004 GB, free: 13.92 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002385/0.1097, allocations: 254.7 kB / 0.5006 GB, free: 13.67 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006639/0.1104, allocations: 0.5759 MB / 0.5012 GB, free: 13.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.1104, allocations: 4 kB / 0.5012 GB, free: 13.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.1104, allocations: 0 / 0.5012 GB, free: 13.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.1104, allocations: 0 / 0.5012 GB, free: 13.09 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.001321/0.1117, allocations: 0.7988 MB / 0.502 GB, free: 12.24 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.1118, allocations: 15.97 kB / 0.502 GB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.566e-05/0.1119, allocations: 90.7 kB / 0.5021 GB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000309/0.1122, allocations: 80.52 kB / 0.5021 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005625/0.1128, allocations: 408.3 kB / 0.5025 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.692e-05/0.1128, allocations: 49.12 kB / 0.5026 GB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.311e-05/0.1129, allocations: 56 kB / 0.5026 GB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008342/0.1138, allocations: 0.4953 MB / 0.5031 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.1138, allocations: 4 kB / 0.5031 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.109e-05/0.1138, allocations: 20 kB / 0.5031 GB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.1139, allocations: 16 kB / 0.5031 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006676/0.1145, allocations: 307.7 kB / 0.5034 GB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00234/0.1169, allocations: 1.86 MB / 0.5053 GB, free: 8.688 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007098/0.1176, allocations: 303.2 kB / 0.5055 GB, free: 8.355 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003212/0.1179, allocations: 179.8 kB / 0.5057 GB, free: 8.168 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.393e-05/0.118, allocations: 4.234 kB / 0.5057 GB, free: 8.164 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.676e-05/0.118, allocations: 46.73 kB / 0.5058 GB, free: 8.109 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.793e-06/0.118, allocations: 0 / 0.5058 GB, free: 8.109 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008811/0.1189, allocations: 381.4 kB / 0.5061 GB, free: 7.734 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.712e-05/0.119, allocations: 158.2 kB / 0.5063 GB, free: 7.543 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003573/0.1194, allocations: 320.8 kB / 0.5066 GB, free: 7.223 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.442e-05/0.1194, allocations: 41.7 kB / 0.5066 GB, free: 7.176 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001939/0.1196, allocations: 265 kB / 0.5069 GB, free: 6.914 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.323e-05/0.1197, allocations: 103.2 kB / 0.507 GB, free: 6.812 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001523/0.1199, allocations: 106.1 kB / 0.5071 GB, free: 6.703 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.1201, allocations: 346.8 kB / 0.5074 GB, free: 6.355 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003484/0.1204, allocations: 145 kB / 0.5075 GB, free: 6.215 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004279/0.1209, allocations: 265.9 kB / 0.5078 GB, free: 5.906 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006385/0.1215, allocations: 366.8 kB / 0.5082 GB, free: 5.508 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1215, allocations: 0 / 0.5082 GB, free: 5.508 MB / 382.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009115/0.1224, allocations: 487.4 kB / 0.5086 GB, free: 5.023 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/0.1225, allocations: 10.02 kB / 0.5086 GB, free: 5.016 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.1225, allocations: 4 kB / 0.5086 GB, free: 5.012 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.1225, allocations: 8 kB / 0.5086 GB, free: 5.004 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002839/0.1228, allocations: 68.23 kB / 0.5087 GB, free: 4.938 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.253e-05/0.1228, allocations: 12 kB / 0.5087 GB, free: 4.926 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002732/0.1231, allocations: 55.61 kB / 0.5088 GB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.836e-05/0.1231, allocations: 23.98 kB / 0.5088 GB, free: 4.848 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.0002469/0.1234, allocations: 195.4 kB / 0.509 GB, free: 4.645 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.1235, allocations: 39.7 kB / 0.509 GB, free: 4.605 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.88e-05/0.1236, allocations: 51.8 kB / 0.5091 GB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.254e-06/0.1236, allocations: 7.984 kB / 0.5091 GB, free: 4.547 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.1236, allocations: 4 kB / 0.5091 GB, free: 4.543 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.1236, allocations: 3.984 kB / 0.5091 GB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001702/0.1254, allocations: 1.224 MB / 0.5103 GB, free: 3.219 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.1254, allocations: 4 kB / 0.5103 GB, free: 3.215 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002209/0.1256, allocations: 39.91 kB / 0.5103 GB, free: 3.176 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.274e-06/0.1256, allocations: 4 kB / 0.5103 GB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.481e-05/0.1256, allocations: 8 kB / 0.5103 GB, free: 3.164 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/0.1257, allocations: 11.88 kB / 0.5103 GB, free: 3.152 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.1257, allocations: 4.281 kB / 0.5103 GB, free: 3.148 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009108/0.1266, allocations: 0.5656 MB / 0.5109 GB, free: 2.539 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001379/0.1267, allocations: 136.8 kB / 0.511 GB, free: 2.387 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.83e-05/0.1268, allocations: 15.94 kB / 0.511 GB, free: 2.371 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002044/0.127, allocations: 15.98 kB / 0.5111 GB, free: 2.355 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.696e-05/0.1271, allocations: 31.95 kB / 0.5111 GB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.199e-05/0.1271, allocations: 16 kB / 0.5111 GB, free: 2.309 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002362/0.1274, allocations: 207.1 kB / 0.5113 GB, free: 2.109 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1274, allocations: 4 kB / 0.5113 GB, free: 2.105 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004096/0.1278, allocations: 107.7 kB / 0.5114 GB, free: 2 MB / 382.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.001199/0.129, allocations: 1.111 MB / 0.5125 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007296/0.1297, allocations: 354.6 kB / 0.5128 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1297, allocations: 0 / 0.5128 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003188/0.1301, allocations: 155.7 kB / 0.513 GB, free: 348 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005999/0.1307, allocations: 111.1 kB / 0.5131 GB, free: 240 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004967/0.1357, allocations: 3.642 MB / 0.5166 GB, free: 12.38 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004621/0.1361, allocations: 0.823 MB / 0.5174 GB, free: 11.53 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002122/0.1364, allocations: 63.38 kB / 0.5175 GB, free: 11.46 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002209/0.1366, allocations: 159.3 kB / 0.5177 GB, free: 11.31 MB / 398.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1366, allocations: 0 / 0.5177 GB, free: 11.31 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03065/0.1673, allocations: 7.378 MB / 0.5249 GB, free: 4.09 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.391/8.558, allocations: 13.25 kB / 0.5249 GB, free: 4.082 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)