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.001383/0.001383, allocations: 108.6 kB / 15.73 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001277/0.001277, allocations: 186.8 kB / 16.66 MB, free: 6.602 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.381/1.381, 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/package.mo): time 0.2734/0.2734, allocations: 31.12 MB / 321.7 MB, free: 4.223 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001828/0.001828, allocations: 61.52 kB / 446.2 MB, free: 30.55 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09474/0.09658, allocations: 56.37 MB / 0.4908 GB, free: 7.684 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.008254/0.1049, allocations: 6.777 MB / 0.4974 GB, free: 0.8789 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002009/0.1069, allocations: 1.013 MB / 0.4984 GB, free: 15.86 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003484/0.1073, allocations: 19.88 kB / 0.4984 GB, free: 15.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003227/0.1076, allocations: 107 kB / 0.4985 GB, free: 15.74 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002181/0.1079, allocations: 71.3 kB / 0.4986 GB, free: 15.67 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006344/0.1085, allocations: 227.5 kB / 0.4988 GB, free: 15.45 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006824/0.1092, allocations: 0.5698 MB / 0.4993 GB, free: 14.87 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004764/0.1097, allocations: 305.3 kB / 0.4996 GB, free: 14.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00031/0.11, allocations: 227.1 kB / 0.4998 GB, free: 14.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003415/0.1103, allocations: 238.9 kB / 0.5001 GB, free: 14.11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.045e-05/0.1104, allocations: 56 kB / 0.5001 GB, free: 14.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001667/0.1106, allocations: 64 kB / 0.5002 GB, free: 13.99 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001577/0.1108, allocations: 131.6 kB / 0.5003 GB, free: 13.86 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002496/0.1111, allocations: 262.7 kB / 0.5006 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006843/0.1118, allocations: 0.5797 MB / 0.5011 GB, free: 13.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.1118, allocations: 0 / 0.5011 GB, free: 13.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1118, allocations: 0 / 0.5011 GB, free: 13.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.1118, allocations: 0 / 0.5011 GB, free: 13.02 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.001334/0.1131, allocations: 0.8104 MB / 0.5019 GB, free: 12.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.1132, allocations: 8.031 kB / 0.5019 GB, free: 12.16 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001036/0.1133, allocations: 86.7 kB / 0.502 GB, free: 12.06 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003163/0.1136, allocations: 88.53 kB / 0.5021 GB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005892/0.1142, allocations: 408.2 kB / 0.5025 GB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.118e-05/0.1143, allocations: 49.12 kB / 0.5025 GB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.1144, allocations: 56 kB / 0.5026 GB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008891/0.1153, allocations: 0.4914 MB / 0.5031 GB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.1153, allocations: 3.938 kB / 0.5031 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.554e-05/0.1154, allocations: 24 kB / 0.5031 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.734e-05/0.1154, allocations: 12 kB / 0.5031 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006924/0.1161, allocations: 303.8 kB / 0.5034 GB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0025/0.1186, allocations: 1.864 MB / 0.5052 GB, free: 8.621 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007066/0.1193, allocations: 307.1 kB / 0.5055 GB, free: 8.285 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003442/0.1197, allocations: 175.8 kB / 0.5057 GB, free: 8.102 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.862e-05/0.1197, allocations: 12.23 kB / 0.5057 GB, free: 8.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.282e-05/0.1198, allocations: 46.66 kB / 0.5057 GB, free: 8.035 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.813e-06/0.1198, allocations: 0 / 0.5057 GB, free: 8.035 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009967/0.1208, allocations: 385.8 kB / 0.5061 GB, free: 7.656 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001272/0.1209, allocations: 162.2 kB / 0.5062 GB, free: 7.461 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003996/0.1213, allocations: 312.5 kB / 0.5065 GB, free: 7.148 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.427e-05/0.1214, allocations: 41.69 kB / 0.5066 GB, free: 7.102 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002475/0.1216, allocations: 265.1 kB / 0.5068 GB, free: 6.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.901e-05/0.1217, allocations: 95.17 kB / 0.5069 GB, free: 6.746 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001832/0.1219, allocations: 110.2 kB / 0.507 GB, free: 6.633 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002143/0.1221, allocations: 350.8 kB / 0.5074 GB, free: 6.281 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003564/0.1225, allocations: 145 kB / 0.5075 GB, free: 6.141 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004656/0.123, allocations: 261.9 kB / 0.5077 GB, free: 5.836 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006961/0.1237, allocations: 370.8 kB / 0.5081 GB, free: 5.434 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.1237, allocations: 0 / 0.5081 GB, free: 5.434 MB / 382.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009578/0.1247, allocations: 475.9 kB / 0.5086 GB, free: 4.961 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.1247, allocations: 12 kB / 0.5086 GB, free: 4.949 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.1247, allocations: 4 kB / 0.5086 GB, free: 4.945 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.1247, allocations: 4 kB / 0.5086 GB, free: 4.941 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002861/0.125, allocations: 71.83 kB / 0.5086 GB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.293e-05/0.1251, allocations: 7.938 kB / 0.5087 GB, free: 4.863 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000275/0.1253, allocations: 67.53 kB / 0.5087 GB, free: 4.797 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.626e-05/0.1254, allocations: 20 kB / 0.5087 GB, free: 4.777 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.0002381/0.1256, allocations: 203.5 kB / 0.5089 GB, free: 4.566 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.1257, allocations: 43.64 kB / 0.509 GB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.807e-05/0.1258, allocations: 39.86 kB / 0.509 GB, free: 4.484 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.1259, allocations: 7.938 kB / 0.509 GB, free: 4.477 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.1259, allocations: 4 kB / 0.509 GB, free: 4.473 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.1259, allocations: 0 / 0.509 GB, free: 4.473 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001804/0.1277, allocations: 1.224 MB / 0.5102 GB, free: 3.152 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.1277, allocations: 0 / 0.5102 GB, free: 3.152 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002492/0.1279, allocations: 52.19 kB / 0.5103 GB, free: 3.102 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.128, allocations: 4 kB / 0.5103 GB, free: 3.098 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.945e-05/0.128, allocations: 11.98 kB / 0.5103 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.758e-06/0.128, allocations: 7.938 kB / 0.5103 GB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.128, allocations: 4 kB / 0.5103 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009535/0.129, allocations: 0.5578 MB / 0.5108 GB, free: 2.473 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001479/0.1291, allocations: 140.8 kB / 0.511 GB, free: 2.316 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.279e-05/0.1292, allocations: 15.92 kB / 0.511 GB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/0.1294, allocations: 19.98 kB / 0.511 GB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.425e-05/0.1295, allocations: 31.91 kB / 0.511 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.062e-05/0.1295, allocations: 12 kB / 0.511 GB, free: 2.238 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002428/0.1298, allocations: 211.1 kB / 0.5112 GB, free: 2.035 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1298, allocations: 4 kB / 0.5113 GB, free: 2.031 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004241/0.1302, allocations: 107.7 kB / 0.5114 GB, free: 1.926 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.00127/0.1315, allocations: 1.112 MB / 0.5124 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007507/0.1323, allocations: 342.3 kB / 0.5128 GB, free: 436 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1323, allocations: 4 kB / 0.5128 GB, free: 432 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003278/0.1326, allocations: 161.1 kB / 0.5129 GB, free: 272 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006056/0.1332, allocations: 107.7 kB / 0.513 GB, free: 172 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005207/0.1385, allocations: 3.642 MB / 0.5166 GB, free: 12.31 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004962/0.139, allocations: 0.827 MB / 0.5174 GB, free: 11.46 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002164/0.1392, allocations: 63.3 kB / 0.5175 GB, free: 11.39 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000238/0.1395, allocations: 163.4 kB / 0.5176 GB, free: 11.23 MB / 398.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1395, allocations: 0 / 0.5176 GB, free: 11.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03223/0.1717, allocations: 7.384 MB / 0.5248 GB, free: 4 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.392/8.564, allocations: 1.547 kB / 0.5248 GB, free: 4 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)