Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.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.SimpleProductionChain,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain",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.007354/0.007354, allocations: 100.5 kB / 15.73 MB, free: 6.008 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.001756/0.001756, allocations: 190.4 kB / 16.67 MB, free: 5.949 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.299/1.299, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.3942/0.3942, allocations: 31.17 MB / 321.7 MB, free: 4.324 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 62.78 kB / 446.2 MB, free: 30.49 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09069/0.09187, allocations: 56.37 MB / 0.4908 GB, free: 7.754 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.005987/0.09789, allocations: 5.38 MB / 0.4961 GB, free: 2.348 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001312/0.09924, allocations: 0.6112 MB / 0.4967 GB, free: 1.734 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002657/0.09952, allocations: 11.94 kB / 0.4967 GB, free: 1.723 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002527/0.09978, allocations: 79.27 kB / 0.4967 GB, free: 1.645 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002081/0.1, allocations: 67.36 kB / 0.4968 GB, free: 1.578 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005566/0.1006, allocations: 191.5 kB / 0.497 GB, free: 1.391 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004492/0.1011, allocations: 459.3 kB / 0.4974 GB, free: 0.9414 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003146/0.1014, allocations: 226.2 kB / 0.4976 GB, free: 0.7188 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002089/0.1016, allocations: 191.3 kB / 0.4978 GB, free: 0.5312 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002202/0.1018, allocations: 203.1 kB / 0.498 GB, free: 340 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.906e-05/0.1019, allocations: 44 kB / 0.4981 GB, free: 296 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.302e-05/0.102, allocations: 52 kB / 0.4981 GB, free: 244 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.642e-05/0.1021, allocations: 107.7 kB / 0.4982 GB, free: 136 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001725/0.1023, allocations: 203 kB / 0.4984 GB, free: 15.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000441/0.1027, allocations: 473.9 kB / 0.4989 GB, free: 15.47 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1027, allocations: 0 / 0.4989 GB, free: 15.47 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1028, allocations: 0 / 0.4989 GB, free: 15.47 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.1028, allocations: 4 kB / 0.4989 GB, free: 15.47 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001043/0.1038, allocations: 0.6833 MB / 0.4995 GB, free: 14.74 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.1039, allocations: 12.03 kB / 0.4995 GB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.645e-05/0.104, allocations: 78.72 kB / 0.4996 GB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002771/0.1042, allocations: 68.33 kB / 0.4997 GB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003919/0.1046, allocations: 331.2 kB / 0.5 GB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.838e-05/0.1047, allocations: 37.12 kB / 0.5 GB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.508e-05/0.1048, allocations: 55.89 kB / 0.5001 GB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006314/0.1054, allocations: 419.3 kB / 0.5005 GB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.1054, allocations: 0 / 0.5005 GB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.112e-05/0.1055, allocations: 16 kB / 0.5005 GB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.1055, allocations: 8 kB / 0.5005 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000507/0.106, allocations: 255.7 kB / 0.5008 GB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001886/0.1079, allocations: 1.649 MB / 0.5024 GB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005322/0.1084, allocations: 254.3 kB / 0.5026 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002597/0.1087, allocations: 159.8 kB / 0.5028 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.159e-05/0.1087, allocations: 11.92 kB / 0.5028 GB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.1088, allocations: 42.5 kB / 0.5028 GB, free: 11.15 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 2.234e-06/0.1088, allocations: 0 / 0.5028 GB, free: 11.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007493/0.1095, allocations: 349.2 kB / 0.5031 GB, free: 10.8 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.908e-05/0.1096, allocations: 162.2 kB / 0.5033 GB, free: 10.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002703/0.1099, allocations: 266.5 kB / 0.5035 GB, free: 10.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.881e-05/0.1099, allocations: 41.7 kB / 0.5036 GB, free: 10.29 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.1101, allocations: 216.1 kB / 0.5038 GB, free: 10.08 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.331e-05/0.1102, allocations: 82.89 kB / 0.5039 GB, free: 9.996 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/0.1103, allocations: 102.1 kB / 0.504 GB, free: 9.891 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.1104, allocations: 346.9 kB / 0.5043 GB, free: 9.543 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002872/0.1107, allocations: 133 kB / 0.5044 GB, free: 9.414 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003711/0.1111, allocations: 249.9 kB / 0.5047 GB, free: 9.125 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005176/0.1116, allocations: 354.7 kB / 0.505 GB, free: 8.734 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.1116, allocations: 0 / 0.505 GB, free: 8.734 MB / 382.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007833/0.1124, allocations: 453.6 kB / 0.5054 GB, free: 8.285 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.1125, allocations: 4 kB / 0.5054 GB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.1125, allocations: 4 kB / 0.5054 GB, free: 8.277 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.741e-05/0.1125, allocations: 11.94 kB / 0.5055 GB, free: 8.266 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002487/0.1128, allocations: 63.83 kB / 0.5055 GB, free: 8.203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.1128, allocations: 4 kB / 0.5055 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002523/0.113, allocations: 59.5 kB / 0.5056 GB, free: 8.141 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.304e-05/0.1131, allocations: 20 kB / 0.5056 GB, free: 8.121 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 (60): * Single equations (assignments): 60 * 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.0001931/0.1133, allocations: 191.4 kB / 0.5058 GB, free: 7.922 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.427e-05/0.1134, allocations: 23.72 kB / 0.5058 GB, free: 7.898 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.77e-05/0.1135, allocations: 38.17 kB / 0.5058 GB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.1135, allocations: 7.938 kB / 0.5058 GB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.1135, allocations: 0 / 0.5058 GB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.1135, allocations: 4 kB / 0.5059 GB, free: 7.848 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001499/0.115, allocations: 1.181 MB / 0.507 GB, free: 6.559 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.115, allocations: 8 kB / 0.507 GB, free: 6.551 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001945/0.1152, allocations: 35.92 kB / 0.507 GB, free: 6.516 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/0.1152, allocations: 4 kB / 0.5071 GB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.89e-05/0.1153, allocations: 19.92 kB / 0.5071 GB, free: 6.492 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.99e-06/0.1153, allocations: 4 kB / 0.5071 GB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.1153, allocations: 7.938 kB / 0.5071 GB, free: 6.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007596/0.116, allocations: 0.5268 MB / 0.5076 GB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001224/0.1162, allocations: 136.6 kB / 0.5077 GB, free: 5.742 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.482e-05/0.1162, allocations: 19.98 kB / 0.5077 GB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002013/0.1164, allocations: 15.98 kB / 0.5078 GB, free: 5.707 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.77e-05/0.1165, allocations: 31.91 kB / 0.5078 GB, free: 5.676 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.1165, allocations: 12 kB / 0.5078 GB, free: 5.664 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001845/0.1167, allocations: 182 kB / 0.508 GB, free: 5.484 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.392e-06/0.1167, allocations: 0 / 0.508 GB, free: 5.484 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004238/0.1172, allocations: 103.6 kB / 0.5081 GB, free: 5.383 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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,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,producing.growing.useA_rate) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * 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.0009877/0.1182, allocations: 1.094 MB / 0.5091 GB, free: 4.227 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006316/0.1188, allocations: 328.3 kB / 0.5095 GB, free: 3.906 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1188, allocations: 4.062 kB / 0.5095 GB, free: 3.902 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002739/0.1191, allocations: 139.8 kB / 0.5096 GB, free: 3.766 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005516/0.1197, allocations: 85.05 kB / 0.5097 GB, free: 3.684 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004531/0.1242, allocations: 3.364 MB / 0.513 GB, free: 96 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004552/0.1247, allocations: 0.7922 MB / 0.5137 GB, free: 15.28 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001988/0.1249, allocations: 51.25 kB / 0.5138 GB, free: 15.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001719/0.1251, allocations: 119.4 kB / 0.5139 GB, free: 15.11 MB / 398.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1251, allocations: 0 / 0.5139 GB, free: 15.11 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02359/0.1487, allocations: 6.37 MB / 0.5201 GB, free: 8.883 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.871/8.019, allocations: 15.38 kB / 0.5201 GB, free: 8.871 MB / 398.1 MB (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1)