Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_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/package.mo", uses=false) Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/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_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_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.00834/0.00834, allocations: 105.4 kB / 15.74 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.001844/0.001844, allocations: 199.9 kB / 16.68 MB, free: 5.93 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.379/1.379, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.3084/0.3084, allocations: 31.12 MB / 321.7 MB, free: 4.094 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 63.64 kB / 446.2 MB, free: 30.61 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09943/0.1008, allocations: 56.37 MB / 0.4908 GB, free: 7.672 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.008884/0.1097, allocations: 6.785 MB / 0.4974 GB, free: 0.8594 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002501/0.1123, allocations: 1.001 MB / 0.4984 GB, free: 15.86 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007012/0.113, allocations: 23.88 kB / 0.4984 GB, free: 15.83 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004413/0.1134, allocations: 107 kB / 0.4985 GB, free: 15.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000472/0.114, allocations: 75.31 kB / 0.4986 GB, free: 15.65 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008474/0.1148, allocations: 231.5 kB / 0.4988 GB, free: 15.43 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008202/0.1157, allocations: 0.5659 MB / 0.4993 GB, free: 14.86 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005486/0.1162, allocations: 313.3 kB / 0.4996 GB, free: 14.54 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004111/0.1166, allocations: 231.1 kB / 0.4999 GB, free: 14.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004081/0.1171, allocations: 238.9 kB / 0.5001 GB, free: 14.08 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001245/0.1172, allocations: 56 kB / 0.5001 GB, free: 14.03 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001505/0.1174, allocations: 68 kB / 0.5002 GB, free: 13.96 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000168/0.1175, allocations: 127.6 kB / 0.5003 GB, free: 13.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002649/0.1178, allocations: 258.7 kB / 0.5006 GB, free: 13.58 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006915/0.1185, allocations: 0.5835 MB / 0.5011 GB, free: 13 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.1185, allocations: 0 / 0.5011 GB, free: 13 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1185, allocations: 0 / 0.5011 GB, free: 13 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.145e-05/0.1186, allocations: 0 / 0.5011 GB, free: 13 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.00161/0.1202, allocations: 0.7798 MB / 0.5019 GB, free: 12.17 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/0.1203, allocations: 16.03 kB / 0.5019 GB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001071/0.1204, allocations: 86.7 kB / 0.502 GB, free: 12.06 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003615/0.1207, allocations: 84.23 kB / 0.5021 GB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007169/0.1215, allocations: 392.2 kB / 0.5025 GB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.608e-05/0.1215, allocations: 53.11 kB / 0.5025 GB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.532e-05/0.1216, allocations: 55.91 kB / 0.5026 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009751/0.1226, allocations: 0.4992 MB / 0.503 GB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.038e-05/0.1226, allocations: 3.938 kB / 0.503 GB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.263e-05/0.1227, allocations: 20 kB / 0.5031 GB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.854e-05/0.1227, allocations: 16 kB / 0.5031 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006861/0.1234, allocations: 307.8 kB / 0.5034 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002455/0.1259, allocations: 1.852 MB / 0.5052 GB, free: 8.637 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006791/0.1266, allocations: 307.2 kB / 0.5055 GB, free: 8.301 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003069/0.1269, allocations: 175.8 kB / 0.5056 GB, free: 8.117 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.726e-05/0.1269, allocations: 12.17 kB / 0.5057 GB, free: 8.105 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/0.127, allocations: 42.67 kB / 0.5057 GB, free: 8.055 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 2.245e-06/0.127, allocations: 0 / 0.5057 GB, free: 8.055 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008831/0.1279, allocations: 385.6 kB / 0.5061 GB, free: 7.676 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.877e-05/0.128, allocations: 166.2 kB / 0.5062 GB, free: 7.477 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003497/0.1283, allocations: 316.4 kB / 0.5065 GB, free: 7.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.911e-05/0.1284, allocations: 41.7 kB / 0.5066 GB, free: 7.113 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001802/0.1286, allocations: 260.5 kB / 0.5068 GB, free: 6.855 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.738e-05/0.1287, allocations: 94.66 kB / 0.5069 GB, free: 6.762 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001574/0.1288, allocations: 106.1 kB / 0.507 GB, free: 6.652 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.129, allocations: 346.8 kB / 0.5073 GB, free: 6.305 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003453/0.1293, allocations: 149 kB / 0.5075 GB, free: 6.16 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003924/0.1297, allocations: 258 kB / 0.5077 GB, free: 5.863 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006016/0.1303, allocations: 362.8 kB / 0.5081 GB, free: 5.469 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.1303, allocations: 11.92 kB / 0.5081 GB, free: 5.457 MB / 382.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0008759/0.1312, allocations: 479.2 kB / 0.5085 GB, free: 4.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.1313, allocations: 4.406 kB / 0.5085 GB, free: 4.977 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.1313, allocations: 8 kB / 0.5085 GB, free: 4.969 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.332e-05/0.1313, allocations: 8 kB / 0.5086 GB, free: 4.961 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002753/0.1316, allocations: 67.83 kB / 0.5086 GB, free: 4.895 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.35e-05/0.1316, allocations: 11.98 kB / 0.5086 GB, free: 4.883 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002755/0.1319, allocations: 59.44 kB / 0.5087 GB, free: 4.824 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.685e-05/0.1319, allocations: 20 kB / 0.5087 GB, free: 4.805 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.000232/0.1322, allocations: 199.5 kB / 0.5089 GB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/0.1323, allocations: 43.41 kB / 0.5089 GB, free: 4.555 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.054e-05/0.1324, allocations: 43.84 kB / 0.509 GB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.579e-06/0.1324, allocations: 4 kB / 0.509 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.1324, allocations: 0 / 0.509 GB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.1324, allocations: 3.938 kB / 0.509 GB, free: 4.504 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001685/0.1341, allocations: 1.219 MB / 0.5102 GB, free: 3.188 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.1341, allocations: 4 kB / 0.5102 GB, free: 3.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002282/0.1344, allocations: 44.19 kB / 0.5102 GB, free: 3.141 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.632e-06/0.1344, allocations: 8 kB / 0.5102 GB, free: 3.133 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.643e-05/0.1344, allocations: 12 kB / 0.5102 GB, free: 3.121 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.271e-06/0.1344, allocations: 7.938 kB / 0.5103 GB, free: 3.113 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.1344, allocations: 0 / 0.5103 GB, free: 3.113 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008981/0.1353, allocations: 0.5576 MB / 0.5108 GB, free: 2.512 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001491/0.1355, allocations: 136.7 kB / 0.5109 GB, free: 2.359 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.102e-05/0.1356, allocations: 15.94 kB / 0.5109 GB, free: 2.344 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002203/0.1358, allocations: 19.89 kB / 0.511 GB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.418e-05/0.1359, allocations: 39.89 kB / 0.511 GB, free: 2.285 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.197e-05/0.1359, allocations: 12 kB / 0.511 GB, free: 2.273 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002393/0.1362, allocations: 215 kB / 0.5112 GB, free: 2.066 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1362, allocations: 0 / 0.5112 GB, free: 2.066 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004714/0.1367, allocations: 115.5 kB / 0.5113 GB, free: 1.953 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.001214/0.1379, allocations: 1.105 MB / 0.5124 GB, free: 0.793 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007764/0.1387, allocations: 346.3 kB / 0.5127 GB, free: 468 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.1387, allocations: 0 / 0.5127 GB, free: 468 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003071/0.139, allocations: 164.8 kB / 0.5129 GB, free: 304 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006192/0.1396, allocations: 98.42 kB / 0.513 GB, free: 212 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005305/0.1449, allocations: 3.623 MB / 0.5165 GB, free: 12.37 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004532/0.1454, allocations: 0.827 MB / 0.5173 GB, free: 11.52 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002228/0.1457, allocations: 59.31 kB / 0.5174 GB, free: 11.46 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002412/0.1459, allocations: 159.4 kB / 0.5175 GB, free: 11.3 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1459, allocations: 7.938 kB / 0.5175 GB, free: 11.29 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03704/0.183, allocations: 7.384 MB / 0.5248 GB, free: 4.055 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.042/8.225, allocations: 0.6875 kB / 0.5248 GB, free: 4.055 MB / 398.1 MB (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1)