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.001383/0.001383, allocations: 101.1 kB / 16.27 MB, free: 6.414 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.001143/0.001143, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.359/1.359, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2808/0.2808, allocations: 31.12 MB / 322.2 MB, free: 84 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 63.5 kB / 389.5 MB, free: 38.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08622/0.0875, allocations: 56.39 MB / 445.9 MB, free: 3.004 MB / 318.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.006209/0.09375, allocations: 5.376 MB / 451.3 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001194/0.09497, allocations: 0.6228 MB / 451.9 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002125/0.09522, allocations: 11.94 kB / 451.9 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000238/0.09547, allocations: 79.27 kB / 452 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001781/0.09566, allocations: 67.38 kB / 452.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005367/0.0962, allocations: 187.5 kB / 452.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000427/0.09664, allocations: 463.2 kB / 452.7 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003214/0.09697, allocations: 214.5 kB / 452.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001941/0.09718, allocations: 187.3 kB / 453.1 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002192/0.0974, allocations: 195.1 kB / 453.3 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.261e-05/0.09748, allocations: 48 kB / 453.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.832e-05/0.09758, allocations: 48 kB / 453.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001026/0.09769, allocations: 107.7 kB / 453.5 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001754/0.09788, allocations: 214.9 kB / 453.7 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004239/0.09831, allocations: 450.8 kB / 454.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.09832, allocations: 3.938 kB / 454.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.09833, allocations: 0 / 454.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.09834, allocations: 0 / 454.2 MB, free: 10.73 MB / 334.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.001088/0.09943, allocations: 0.6787 MB / 454.8 MB, free: 10.01 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.09948, allocations: 16.03 kB / 454.8 MB, free: 9.992 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003308/0.09981, allocations: 68.42 kB / 454.9 MB, free: 9.926 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003832/0.1002, allocations: 319.2 kB / 455.2 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.631e-05/0.1003, allocations: 37.38 kB / 455.3 MB, free: 9.539 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.333e-05/0.1003, allocations: 51.88 kB / 455.3 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006803/0.101, allocations: 415.3 kB / 455.7 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.101, allocations: 3.938 kB / 455.7 MB, free: 9.051 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.426e-05/0.1011, allocations: 16 kB / 455.7 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.1011, allocations: 12 kB / 455.7 MB, free: 9.023 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005541/0.1017, allocations: 243.8 kB / 456 MB, free: 8.785 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002/0.1037, allocations: 1.672 MB / 457.7 MB, free: 7.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000568/0.1042, allocations: 250.3 kB / 457.9 MB, free: 6.738 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002826/0.1045, allocations: 168 kB / 458.1 MB, free: 6.562 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.618e-05/0.1046, allocations: 0 / 458.1 MB, free: 6.562 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.53e-05/0.1046, allocations: 34.56 kB / 458.1 MB, free: 6.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.292e-06/0.1046, allocations: 3.938 kB / 458.1 MB, free: 6.516 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008282/0.1054, allocations: 347.3 kB / 458.4 MB, free: 6.172 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.587e-05/0.1055, allocations: 162.2 kB / 458.6 MB, free: 5.977 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002752/0.1058, allocations: 270.5 kB / 458.9 MB, free: 5.703 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.917e-05/0.1059, allocations: 41.64 kB / 458.9 MB, free: 5.656 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001385/0.106, allocations: 216.3 kB / 459.1 MB, free: 5.441 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.542e-05/0.1061, allocations: 86.75 kB / 459.2 MB, free: 5.355 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001335/0.1062, allocations: 98.33 kB / 459.3 MB, free: 5.254 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.1064, allocations: 342.8 kB / 459.6 MB, free: 4.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003269/0.1067, allocations: 137 kB / 459.8 MB, free: 4.777 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003812/0.1071, allocations: 249.9 kB / 460 MB, free: 4.488 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005785/0.1077, allocations: 346.7 kB / 460.3 MB, free: 4.105 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.1077, allocations: 4 kB / 460.4 MB, free: 4.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008525/0.1085, allocations: 449.6 kB / 460.8 MB, free: 3.656 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.1086, allocations: 11.98 kB / 460.8 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.1086, allocations: 8 kB / 460.8 MB, free: 3.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.1086, allocations: 4 kB / 460.8 MB, free: 3.633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002578/0.1089, allocations: 67.78 kB / 460.9 MB, free: 3.566 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.1089, allocations: 4 kB / 460.9 MB, free: 3.562 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002631/0.1092, allocations: 59.5 kB / 460.9 MB, free: 3.504 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.978e-05/0.1092, allocations: 20.03 kB / 461 MB, free: 3.484 MB / 334.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.0001963/0.1094, allocations: 192.3 kB / 461.2 MB, free: 3.289 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.1095, allocations: 27.62 kB / 461.2 MB, free: 3.262 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.035e-05/0.1096, allocations: 38.17 kB / 461.2 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.1096, allocations: 7.938 kB / 461.2 MB, free: 3.219 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1096, allocations: 0 / 461.2 MB, free: 3.219 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.1096, allocations: 0 / 461.2 MB, free: 3.219 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001518/0.1111, allocations: 1.184 MB / 462.4 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.1112, allocations: 4 kB / 462.4 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002015/0.1114, allocations: 35.92 kB / 462.4 MB, free: 1.895 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.197e-05/0.1114, allocations: 7.984 kB / 462.5 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.69e-05/0.1114, allocations: 8 kB / 462.5 MB, free: 1.879 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.671e-06/0.1114, allocations: 20.22 kB / 462.5 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.1114, allocations: 8 kB / 462.5 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008049/0.1123, allocations: 0.5362 MB / 463 MB, free: 1.262 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.1124, allocations: 128.8 kB / 463.2 MB, free: 1.117 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.888e-05/0.1124, allocations: 20.05 kB / 463.2 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002094/0.1127, allocations: 23.89 kB / 463.2 MB, free: 1.074 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.343e-05/0.1127, allocations: 31.91 kB / 463.2 MB, free: 1.043 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.861e-05/0.1128, allocations: 12 kB / 463.2 MB, free: 1.031 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001791/0.113, allocations: 189.9 kB / 463.4 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.113, allocations: 0 / 463.4 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004234/0.1134, allocations: 91.69 kB / 463.5 MB, free: 0.7578 MB / 334.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.0001183/0.1135, allocations: 116.9 kB / 463.6 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006964/0.1142, allocations: 343.5 kB / 464 MB, free: 308 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.1142, allocations: 0 / 464 MB, free: 308 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002799/0.1145, allocations: 141.3 kB / 464.1 MB, free: 168 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005816/0.1151, allocations: 86.97 kB / 464.2 MB, free: 84 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.1165, allocations: 0.7639 MB / 464.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004488/0.1169, allocations: 0.7883 MB / 465.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001144/0.1171, allocations: 35.42 kB / 465.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1171, allocations: 0 / 465.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of Templates: time 0.007059/0.1241, allocations: 4.289 MB / 470.1 MB, free: 10.12 MB / 350.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)