Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_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/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.SimpleProductionChain,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_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.004954/0.004954, allocations: 100.7 kB / 15.73 MB, free: 6.504 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.001134/0.001134, allocations: 196.7 kB / 16.68 MB, free: 6.375 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.4022/0.4022, allocations: 31.13 MB / 321.7 MB, free: 4.191 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 68.45 kB / 446.2 MB, free: 30.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09951/0.1008, allocations: 56.37 MB / 0.4908 GB, free: 7.688 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.006346/0.1072, allocations: 5.376 MB / 0.496 GB, free: 2.285 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001444/0.1086, allocations: 0.6189 MB / 0.4966 GB, free: 1.664 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002633/0.1089, allocations: 11.94 kB / 0.4966 GB, free: 1.652 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002625/0.1092, allocations: 79.27 kB / 0.4967 GB, free: 1.574 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000203/0.1095, allocations: 67.38 kB / 0.4968 GB, free: 1.508 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005705/0.11, allocations: 183.6 kB / 0.4969 GB, free: 1.328 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004872/0.1105, allocations: 467.3 kB / 0.4974 GB, free: 0.8711 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000335/0.1109, allocations: 218.2 kB / 0.4976 GB, free: 0.6562 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002184/0.1111, allocations: 195.3 kB / 0.4978 GB, free: 476 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002461/0.1114, allocations: 199.1 kB / 0.498 GB, free: 276 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.348e-05/0.1114, allocations: 47.94 kB / 0.498 GB, free: 228 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.1115, allocations: 52 kB / 0.4981 GB, free: 176 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001031/0.1117, allocations: 103.7 kB / 0.4982 GB, free: 72 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002044/0.1119, allocations: 214.9 kB / 0.4984 GB, free: 15.86 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000455/0.1123, allocations: 462.1 kB / 0.4988 GB, free: 15.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1123, allocations: 7.938 kB / 0.4988 GB, free: 15.4 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1124, allocations: 0 / 0.4988 GB, free: 15.4 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.484e-06/0.1124, allocations: 0 / 0.4988 GB, free: 15.4 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.001066/0.1134, allocations: 0.6788 MB / 0.4995 GB, free: 14.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.1135, allocations: 12.03 kB / 0.4995 GB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.686e-05/0.1136, allocations: 82.66 kB / 0.4996 GB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002901/0.1139, allocations: 68.33 kB / 0.4996 GB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004598/0.1143, allocations: 331.2 kB / 0.5 GB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.31e-05/0.1144, allocations: 41.12 kB / 0.5 GB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.144e-05/0.1145, allocations: 51.91 kB / 0.5 GB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006998/0.1152, allocations: 415.3 kB / 0.5004 GB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.1152, allocations: 0 / 0.5004 GB, free: 13.62 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.621e-05/0.1152, allocations: 20 kB / 0.5005 GB, free: 13.6 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.1153, allocations: 8 kB / 0.5005 GB, free: 13.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005581/0.1158, allocations: 251.7 kB / 0.5007 GB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001994/0.1178, allocations: 1.649 MB / 0.5023 GB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005624/0.1184, allocations: 254.3 kB / 0.5026 GB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000286/0.1187, allocations: 163.7 kB / 0.5027 GB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.143e-05/0.1187, allocations: 7.938 kB / 0.5027 GB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.066e-05/0.1188, allocations: 38.56 kB / 0.5028 GB, free: 11.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.883e-06/0.1188, allocations: 0 / 0.5028 GB, free: 11.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008173/0.1196, allocations: 353.3 kB / 0.5031 GB, free: 10.74 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/0.1197, allocations: 158.2 kB / 0.5032 GB, free: 10.55 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003154/0.12, allocations: 270.5 kB / 0.5035 GB, free: 10.28 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.179e-05/0.1201, allocations: 37.7 kB / 0.5035 GB, free: 10.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.1203, allocations: 220.1 kB / 0.5037 GB, free: 10.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.234e-05/0.1203, allocations: 82.89 kB / 0.5038 GB, free: 9.934 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001495/0.1205, allocations: 98.14 kB / 0.5039 GB, free: 9.832 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.1206, allocations: 350.8 kB / 0.5043 GB, free: 9.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003139/0.121, allocations: 137 kB / 0.5044 GB, free: 9.348 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003827/0.1213, allocations: 249.9 kB / 0.5046 GB, free: 9.059 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005541/0.1219, allocations: 346.7 kB / 0.505 GB, free: 8.676 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.543e-06/0.1219, allocations: 4 kB / 0.505 GB, free: 8.672 MB / 382.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007904/0.1227, allocations: 449.2 kB / 0.5054 GB, free: 8.227 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.1228, allocations: 12.39 kB / 0.5054 GB, free: 8.215 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.659e-06/0.1228, allocations: 8 kB / 0.5054 GB, free: 8.207 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.1228, allocations: 7.938 kB / 0.5054 GB, free: 8.199 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002545/0.1231, allocations: 67.78 kB / 0.5055 GB, free: 8.133 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.191e-05/0.1231, allocations: 4 kB / 0.5055 GB, free: 8.129 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002532/0.1233, allocations: 59.5 kB / 0.5055 GB, free: 8.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.291e-05/0.1234, allocations: 16 kB / 0.5056 GB, free: 8.055 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.0002187/0.1236, allocations: 195.4 kB / 0.5057 GB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.96e-05/0.1237, allocations: 23.72 kB / 0.5058 GB, free: 7.828 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001079/0.1238, allocations: 38.17 kB / 0.5058 GB, free: 7.789 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.1238, allocations: 7.938 kB / 0.5058 GB, free: 7.781 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.1238, allocations: 0 / 0.5058 GB, free: 7.781 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.1239, allocations: 0 / 0.5058 GB, free: 7.781 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001566/0.1254, allocations: 1.177 MB / 0.507 GB, free: 6.496 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.1254, allocations: 11.94 kB / 0.507 GB, free: 6.484 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001984/0.1257, allocations: 39.91 kB / 0.507 GB, free: 6.445 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.214e-06/0.1257, allocations: 4 kB / 0.507 GB, free: 6.441 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.655e-05/0.1257, allocations: 11.94 kB / 0.507 GB, free: 6.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.751e-06/0.1257, allocations: 4 kB / 0.507 GB, free: 6.426 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.1257, allocations: 4 kB / 0.507 GB, free: 6.422 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007603/0.1265, allocations: 0.5329 MB / 0.5075 GB, free: 5.832 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001251/0.1266, allocations: 140.6 kB / 0.5077 GB, free: 5.676 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.441e-05/0.1267, allocations: 15.98 kB / 0.5077 GB, free: 5.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001985/0.1269, allocations: 19.98 kB / 0.5077 GB, free: 5.641 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.89e-05/0.127, allocations: 39.84 kB / 0.5078 GB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.693e-05/0.127, allocations: 8 kB / 0.5078 GB, free: 5.594 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001833/0.1272, allocations: 182 kB / 0.5079 GB, free: 5.414 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.1272, allocations: 0 / 0.5079 GB, free: 5.414 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004129/0.1276, allocations: 95.69 kB / 0.508 GB, free: 5.32 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.001034/0.1286, allocations: 1.085 MB / 0.5091 GB, free: 4.172 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006546/0.1293, allocations: 332.3 kB / 0.5094 GB, free: 3.848 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.1293, allocations: 0 / 0.5094 GB, free: 3.848 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002737/0.1296, allocations: 143.8 kB / 0.5095 GB, free: 3.707 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005785/0.1302, allocations: 102.6 kB / 0.5096 GB, free: 3.609 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004328/0.1345, allocations: 3.357 MB / 0.5129 GB, free: 28 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003766/0.1349, allocations: 0.796 MB / 0.5137 GB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001989/0.1351, allocations: 59.23 kB / 0.5138 GB, free: 15.15 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001733/0.1353, allocations: 111.4 kB / 0.5139 GB, free: 15.04 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1353, allocations: 0 / 0.5139 GB, free: 15.04 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03868/0.174, allocations: 6.372 MB / 0.5201 GB, free: 8.805 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.926/8.1, allocations: 3.625 kB / 0.5201 GB, free: 8.805 MB / 398.1 MB (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1)