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.005343/0.005343, allocations: 101.2 kB / 15.73 MB, free: 5.988 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.001378/0.001378, allocations: 186.2 kB / 16.67 MB, free: 5.914 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.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.386/0.386, allocations: 31.14 MB / 321.7 MB, free: 4.23 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002667/0.002667, allocations: 64.84 kB / 446.2 MB, free: 30.74 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09872/0.1014, allocations: 56.36 MB / 0.4908 GB, free: 7.746 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.007235/0.1087, allocations: 5.382 MB / 0.4961 GB, free: 2.336 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001444/0.1102, allocations: 0.6112 MB / 0.4967 GB, free: 1.723 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002614/0.1105, allocations: 15.88 kB / 0.4967 GB, free: 1.707 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002734/0.1108, allocations: 79.27 kB / 0.4967 GB, free: 1.629 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002144/0.111, allocations: 63.36 kB / 0.4968 GB, free: 1.566 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005822/0.1116, allocations: 187.6 kB / 0.497 GB, free: 1.383 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005382/0.1121, allocations: 459.3 kB / 0.4974 GB, free: 0.9336 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003709/0.1125, allocations: 242.1 kB / 0.4977 GB, free: 0.6953 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00023/0.1128, allocations: 183.3 kB / 0.4978 GB, free: 0.5156 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002625/0.113, allocations: 199.1 kB / 0.498 GB, free: 328 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.5e-05/0.1131, allocations: 47.94 kB / 0.4981 GB, free: 280 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001126/0.1132, allocations: 52 kB / 0.4981 GB, free: 228 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001164/0.1134, allocations: 103.7 kB / 0.4982 GB, free: 124 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002221/0.1136, allocations: 211 kB / 0.4984 GB, free: 15.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000573/0.1142, allocations: 462.2 kB / 0.4989 GB, free: 15.46 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.1142, allocations: 4 kB / 0.4989 GB, free: 15.46 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1142, allocations: 4 kB / 0.4989 GB, free: 15.45 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.1142, allocations: 0 / 0.4989 GB, free: 15.45 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.00123/0.1154, allocations: 0.6977 MB / 0.4995 GB, free: 14.71 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.1155, allocations: 12.03 kB / 0.4996 GB, free: 14.7 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.604e-05/0.1156, allocations: 86.64 kB / 0.4996 GB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003053/0.1159, allocations: 68.62 kB / 0.4997 GB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004572/0.1164, allocations: 323.5 kB / 0.5 GB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.02e-05/0.1164, allocations: 41.12 kB / 0.5 GB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.302e-05/0.1165, allocations: 51.94 kB / 0.5001 GB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007687/0.1173, allocations: 415.3 kB / 0.5005 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.1173, allocations: 3.938 kB / 0.5005 GB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.598e-05/0.1174, allocations: 20 kB / 0.5005 GB, free: 13.63 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.1174, allocations: 8 kB / 0.5005 GB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005799/0.118, allocations: 251.8 kB / 0.5008 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002196/0.1202, allocations: 1.645 MB / 0.5024 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006291/0.1208, allocations: 258.3 kB / 0.5026 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003129/0.1212, allocations: 163.8 kB / 0.5028 GB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.1212, allocations: 3.938 kB / 0.5028 GB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.402e-05/0.1212, allocations: 38.56 kB / 0.5028 GB, free: 11.12 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 2.475e-06/0.1213, allocations: 0 / 0.5028 GB, free: 11.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008864/0.1221, allocations: 353.3 kB / 0.5032 GB, free: 10.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001103/0.1223, allocations: 158.2 kB / 0.5033 GB, free: 10.58 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000315/0.1226, allocations: 274.5 kB / 0.5036 GB, free: 10.31 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.73e-05/0.1227, allocations: 37.7 kB / 0.5036 GB, free: 10.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001742/0.1228, allocations: 220.7 kB / 0.5038 GB, free: 10.05 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.607e-05/0.1229, allocations: 87.27 kB / 0.5039 GB, free: 9.961 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001516/0.1231, allocations: 106.2 kB / 0.504 GB, free: 9.852 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.1233, allocations: 346.8 kB / 0.5043 GB, free: 9.504 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003382/0.1236, allocations: 137 kB / 0.5045 GB, free: 9.371 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004248/0.1241, allocations: 253.9 kB / 0.5047 GB, free: 9.078 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006145/0.1247, allocations: 338.7 kB / 0.505 GB, free: 8.703 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.165e-06/0.1247, allocations: 4 kB / 0.505 GB, free: 8.699 MB / 382.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009401/0.1256, allocations: 461.6 kB / 0.5055 GB, free: 8.242 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.1257, allocations: 8 kB / 0.5055 GB, free: 8.234 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.28e-05/0.1257, allocations: 8 kB / 0.5055 GB, free: 8.227 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.302e-05/0.1257, allocations: 7.938 kB / 0.5055 GB, free: 8.219 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002846/0.126, allocations: 67.83 kB / 0.5056 GB, free: 8.152 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/0.126, allocations: 4 kB / 0.5056 GB, free: 8.148 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000273/0.1263, allocations: 55.66 kB / 0.5056 GB, free: 8.094 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.621e-05/0.1264, allocations: 24.08 kB / 0.5056 GB, free: 8.07 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.0002397/0.1266, allocations: 183.5 kB / 0.5058 GB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.1267, allocations: 27.81 kB / 0.5058 GB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.229e-05/0.1268, allocations: 38.17 kB / 0.5059 GB, free: 7.812 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.1268, allocations: 7.938 kB / 0.5059 GB, free: 7.805 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.1268, allocations: 0 / 0.5059 GB, free: 7.805 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.1268, allocations: 3.984 kB / 0.5059 GB, free: 7.801 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001712/0.1286, allocations: 1.179 MB / 0.507 GB, free: 6.516 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.1286, allocations: 4 kB / 0.507 GB, free: 6.512 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002033/0.1288, allocations: 39.91 kB / 0.5071 GB, free: 6.473 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.374e-06/0.1288, allocations: 4 kB / 0.5071 GB, free: 6.469 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.878e-05/0.1288, allocations: 11.94 kB / 0.5071 GB, free: 6.457 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.681e-06/0.1288, allocations: 7.938 kB / 0.5071 GB, free: 6.449 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.1289, allocations: 4.406 kB / 0.5071 GB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008847/0.1297, allocations: 0.5383 MB / 0.5076 GB, free: 5.848 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001476/0.1299, allocations: 140.8 kB / 0.5078 GB, free: 5.691 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.484e-05/0.13, allocations: 12.12 kB / 0.5078 GB, free: 5.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002118/0.1302, allocations: 23.92 kB / 0.5078 GB, free: 5.656 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.037e-05/0.1303, allocations: 39.84 kB / 0.5078 GB, free: 5.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.046e-05/0.1303, allocations: 11.98 kB / 0.5078 GB, free: 5.605 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002029/0.1305, allocations: 182 kB / 0.508 GB, free: 5.426 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1305, allocations: 0 / 0.508 GB, free: 5.426 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004155/0.1309, allocations: 95.8 kB / 0.5081 GB, free: 5.332 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.001188/0.1321, allocations: 1.085 MB / 0.5092 GB, free: 4.184 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008151/0.133, allocations: 336 kB / 0.5095 GB, free: 3.855 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.133, allocations: 0 / 0.5095 GB, free: 3.855 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003238/0.1333, allocations: 145.2 kB / 0.5096 GB, free: 3.715 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005797/0.1339, allocations: 109.3 kB / 0.5097 GB, free: 3.609 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004801/0.1387, allocations: 3.361 MB / 0.513 GB, free: 20 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004593/0.1392, allocations: 0.7922 MB / 0.5138 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002021/0.1394, allocations: 51.25 kB / 0.5138 GB, free: 15.15 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001918/0.1396, allocations: 119.4 kB / 0.514 GB, free: 15.04 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1396, allocations: 3.938 kB / 0.514 GB, free: 15.03 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04336/0.183, allocations: 6.367 MB / 0.5202 GB, free: 8.805 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.282/8.465, allocations: 8.375 kB / 0.5202 GB, free: 8.801 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)