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: translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain") translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006373/0.006373, allocations: 96.31 kB / 15.73 MB, free: 5.996 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.001197/0.001197, allocations: 186 kB / 16.67 MB, free: 5.926 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.467/1.467, 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.3723/0.3723, allocations: 31.12 MB / 321.7 MB, free: 4.184 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 62.78 kB / 446.7 MB, free: 30.54 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1036, allocations: 56.36 MB / 0.4912 GB, free: 7.184 MB / 366.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.00601/0.1097, allocations: 5.392 MB / 0.4965 GB, free: 1.766 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001141/0.1108, allocations: 0.6112 MB / 0.4971 GB, free: 1.152 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001865/0.111, allocations: 11.94 kB / 0.4971 GB, free: 1.141 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002343/0.1113, allocations: 79.27 kB / 0.4972 GB, free: 1.062 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001894/0.1115, allocations: 67.38 kB / 0.4972 GB, free: 0.9961 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004929/0.112, allocations: 183.5 kB / 0.4974 GB, free: 0.8164 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004538/0.1124, allocations: 463.3 kB / 0.4979 GB, free: 372 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003148/0.1128, allocations: 226.2 kB / 0.4981 GB, free: 144 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002087/0.113, allocations: 195.2 kB / 0.4983 GB, free: 15.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002335/0.1132, allocations: 199.1 kB / 0.4985 GB, free: 15.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.65e-05/0.1133, allocations: 48 kB / 0.4985 GB, free: 15.71 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.997e-05/0.1134, allocations: 55.98 kB / 0.4986 GB, free: 15.65 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.394e-05/0.1135, allocations: 103.7 kB / 0.4987 GB, free: 15.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001693/0.1137, allocations: 207 kB / 0.4988 GB, free: 15.35 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004674/0.1142, allocations: 466 kB / 0.4993 GB, free: 14.89 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1142, allocations: 0 / 0.4993 GB, free: 14.89 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.1142, allocations: 4 kB / 0.4993 GB, free: 14.89 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.715e-06/0.1142, allocations: 0 / 0.4993 GB, free: 14.89 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.001106/0.1153, allocations: 0.7016 MB / 0.5 GB, free: 14.14 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.018e-05/0.1153, allocations: 8.031 kB / 0.5 GB, free: 14.13 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003347/0.1157, allocations: 80.61 kB / 0.5001 GB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004143/0.1161, allocations: 331.4 kB / 0.5004 GB, free: 13.69 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.641e-05/0.1162, allocations: 37.38 kB / 0.5004 GB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.732e-05/0.1162, allocations: 51.94 kB / 0.5005 GB, free: 13.6 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007043/0.117, allocations: 415.3 kB / 0.5009 GB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.117, allocations: 0 / 0.5009 GB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.541e-05/0.117, allocations: 16 kB / 0.5009 GB, free: 13.15 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.738e-05/0.117, allocations: 12 kB / 0.5009 GB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005454/0.1176, allocations: 247.7 kB / 0.5011 GB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002048/0.1196, allocations: 1.653 MB / 0.5027 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005653/0.1202, allocations: 254.3 kB / 0.503 GB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002686/0.1205, allocations: 163.7 kB / 0.5031 GB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.1205, allocations: 7.938 kB / 0.5031 GB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.488e-05/0.1206, allocations: 42.56 kB / 0.5032 GB, free: 10.63 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.593e-06/0.1206, allocations: 0 / 0.5032 GB, free: 10.63 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007766/0.1214, allocations: 345.1 kB / 0.5035 GB, free: 10.29 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.753e-05/0.1215, allocations: 162.5 kB / 0.5037 GB, free: 10.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002694/0.1217, allocations: 278.5 kB / 0.5039 GB, free: 9.816 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.806e-05/0.1218, allocations: 37.7 kB / 0.504 GB, free: 9.773 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001428/0.1219, allocations: 216.7 kB / 0.5042 GB, free: 9.559 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.371e-05/0.122, allocations: 91.2 kB / 0.5043 GB, free: 9.469 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001446/0.1222, allocations: 102.2 kB / 0.5044 GB, free: 9.363 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.1223, allocations: 342.8 kB / 0.5047 GB, free: 9.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003313/0.1227, allocations: 137 kB / 0.5048 GB, free: 8.887 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004147/0.1231, allocations: 245.3 kB / 0.5051 GB, free: 8.605 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006449/0.1238, allocations: 350.7 kB / 0.5054 GB, free: 8.219 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.646e-06/0.1238, allocations: 3.938 kB / 0.5054 GB, free: 8.215 MB / 382.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008199/0.1246, allocations: 461.4 kB / 0.5058 GB, free: 7.758 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.1246, allocations: 11.94 kB / 0.5058 GB, free: 7.746 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.1246, allocations: 4 kB / 0.5059 GB, free: 7.742 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.1247, allocations: 4 kB / 0.5059 GB, free: 7.738 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002583/0.1249, allocations: 68.19 kB / 0.5059 GB, free: 7.672 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/0.1249, allocations: 11.98 kB / 0.5059 GB, free: 7.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002519/0.1252, allocations: 51.66 kB / 0.506 GB, free: 7.609 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.276e-05/0.1252, allocations: 20 kB / 0.506 GB, free: 7.59 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.0001884/0.1254, allocations: 187.5 kB / 0.5062 GB, free: 7.395 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.1255, allocations: 31.81 kB / 0.5062 GB, free: 7.363 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.191e-05/0.1256, allocations: 34.17 kB / 0.5062 GB, free: 7.328 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.1256, allocations: 11.94 kB / 0.5063 GB, free: 7.316 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.1256, allocations: 4 kB / 0.5063 GB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/0.1257, allocations: 0 / 0.5063 GB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00155/0.1272, allocations: 1.183 MB / 0.5074 GB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.1272, allocations: 416 / 0.5074 GB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002124/0.1274, allocations: 43.91 kB / 0.5075 GB, free: 5.977 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.921e-06/0.1275, allocations: 4 kB / 0.5075 GB, free: 5.973 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.846e-05/0.1275, allocations: 15.94 kB / 0.5075 GB, free: 5.957 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.089e-06/0.1275, allocations: 4 kB / 0.5075 GB, free: 5.953 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.1275, allocations: 4 kB / 0.5075 GB, free: 5.949 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008098/0.1283, allocations: 0.5345 MB / 0.508 GB, free: 5.359 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.1285, allocations: 136.8 kB / 0.5081 GB, free: 5.207 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.327e-05/0.1285, allocations: 11.98 kB / 0.5081 GB, free: 5.195 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002189/0.1287, allocations: 23.92 kB / 0.5082 GB, free: 5.172 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.476e-05/0.1288, allocations: 35.84 kB / 0.5082 GB, free: 5.137 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.016e-05/0.1289, allocations: 16 kB / 0.5082 GB, free: 5.121 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001723/0.129, allocations: 178 kB / 0.5084 GB, free: 4.945 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1291, allocations: 0 / 0.5084 GB, free: 4.945 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004325/0.1295, allocations: 95.8 kB / 0.5085 GB, free: 4.852 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.0001228/0.1296, allocations: 116.9 kB / 0.5086 GB, free: 4.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006801/0.1303, allocations: 323.5 kB / 0.5089 GB, free: 4.414 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.1303, allocations: 7.938 kB / 0.5089 GB, free: 4.406 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002887/0.1306, allocations: 145.4 kB / 0.509 GB, free: 4.266 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006762/0.1313, allocations: 93.28 kB / 0.5091 GB, free: 4.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.1325, allocations: 0.7339 MB / 0.5098 GB, free: 3.379 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003667/0.1329, allocations: 0.7961 MB / 0.5106 GB, free: 2.559 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000187/0.1331, allocations: 55.23 kB / 0.5107 GB, free: 2.504 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.335e-05/0.1331, allocations: 31.44 kB / 0.5107 GB, free: 2.473 MB / 382.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1332, allocations: 0 / 0.5107 GB, free: 2.473 MB / 382.1 MB Notification: Performance of Templates: time 0.008141/0.1413, allocations: 3.789 MB / 0.5144 GB, free: 14.73 MB / 398.1 MB make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.makefile (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 & ./BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1)