Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_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-main/package.mo", uses=false) Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/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_dev_BusinessSimulation.Examples.SimpleProductionChain") translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01126/0.01126, allocations: 99.86 kB / 15.73 MB, free: 6.055 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.002152/0.002153, allocations: 192.1 kB / 16.67 MB, free: 5.969 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.44/1.44, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.3074/0.3074, allocations: 31.17 MB / 321.7 MB, free: 156 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 63.91 kB / 446.7 MB, free: 1.754 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1251/0.1264, allocations: 56.35 MB / 0.4913 GB, free: 9.371 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.00697/0.1334, allocations: 5.395 MB / 0.4965 GB, free: 3.949 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001521/0.1349, allocations: 0.6151 MB / 0.4971 GB, free: 3.332 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003976/0.1354, allocations: 11.94 kB / 0.4971 GB, free: 3.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003135/0.1357, allocations: 83.27 kB / 0.4972 GB, free: 3.238 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003488/0.1361, allocations: 59.38 kB / 0.4973 GB, free: 3.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00068/0.1368, allocations: 191.5 kB / 0.4975 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005715/0.1373, allocations: 463.1 kB / 0.4979 GB, free: 2.539 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003453/0.1377, allocations: 234.1 kB / 0.4981 GB, free: 2.309 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002525/0.138, allocations: 187.3 kB / 0.4983 GB, free: 2.125 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002999/0.1383, allocations: 195.1 kB / 0.4985 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.322e-05/0.1384, allocations: 44 kB / 0.4985 GB, free: 1.891 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001107/0.1385, allocations: 52 kB / 0.4986 GB, free: 1.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001069/0.1386, allocations: 111.7 kB / 0.4987 GB, free: 1.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001918/0.1388, allocations: 210.9 kB / 0.4989 GB, free: 1.523 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005288/0.1393, allocations: 462 kB / 0.4993 GB, free: 1.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.1393, allocations: 0 / 0.4993 GB, free: 1.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.1394, allocations: 4 kB / 0.4993 GB, free: 1.066 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.545e-05/0.1394, allocations: 0 / 0.4993 GB, free: 1.066 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.001234/0.1406, allocations: 0.6978 MB / 0.5 GB, free: 328 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.1407, allocations: 8.031 kB / 0.5 GB, free: 320 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000336/0.141, allocations: 72.61 kB / 0.5001 GB, free: 248 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.258/0.399, allocations: 324.6 kB / 0.5004 GB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.021e-05/0.3991, allocations: 39.09 kB / 0.5004 GB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.712e-05/0.3992, allocations: 49.77 kB / 0.5005 GB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008391/0.4001, allocations: 417.3 kB / 0.5009 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.4001, allocations: 0 / 0.5009 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.354e-05/0.4002, allocations: 17.89 kB / 0.5009 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.227e-05/0.4002, allocations: 14.89 kB / 0.5009 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005559/0.4008, allocations: 252.1 kB / 0.5012 GB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001808/0.4026, allocations: 1.657 MB / 0.5028 GB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005027/0.4031, allocations: 256.8 kB / 0.503 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002489/0.4034, allocations: 155.8 kB / 0.5032 GB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/0.4034, allocations: 5.281 kB / 0.5032 GB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.4034, allocations: 45.36 kB / 0.5032 GB, free: 11.86 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.963e-06/0.4034, allocations: 0 / 0.5032 GB, free: 11.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008079/0.4042, allocations: 346 kB / 0.5035 GB, free: 11.8 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.494e-05/0.4043, allocations: 162.3 kB / 0.5037 GB, free: 11.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002728/0.4046, allocations: 271.8 kB / 0.504 GB, free: 11.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.395e-05/0.4046, allocations: 44.98 kB / 0.504 GB, free: 11.47 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001138/0.4047, allocations: 213 kB / 0.5042 GB, free: 11.35 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.464e-05/0.4048, allocations: 93.75 kB / 0.5043 GB, free: 11.3 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001357/0.405, allocations: 96.17 kB / 0.5044 GB, free: 11.28 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.462e-05/0.405, allocations: 348.3 kB / 0.5047 GB, free: 10.96 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002975/0.4053, allocations: 135.7 kB / 0.5049 GB, free: 10.96 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003421/0.4057, allocations: 249.7 kB / 0.5051 GB, free: 10.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005195/0.4062, allocations: 347.7 kB / 0.5054 GB, free: 10.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.4062, allocations: 4.406 kB / 0.5054 GB, free: 10.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007832/0.407, allocations: 453.3 kB / 0.5059 GB, free: 10.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.407, allocations: 8.094 kB / 0.5059 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.4071, allocations: 12.19 kB / 0.5059 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/0.4071, allocations: 6.25 kB / 0.5059 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002494/0.4073, allocations: 62.23 kB / 0.5059 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.334e-05/0.4074, allocations: 8.578 kB / 0.5059 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002465/0.4076, allocations: 58.52 kB / 0.506 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.507e-05/0.4077, allocations: 17.41 kB / 0.506 GB, free: 10.64 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.0001854/0.4079, allocations: 194.2 kB / 0.5062 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.721e-05/0.408, allocations: 29.36 kB / 0.5062 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.515e-05/0.408, allocations: 37.2 kB / 0.5063 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.408, allocations: 4.281 kB / 0.5063 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.408, allocations: 1.094 kB / 0.5063 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.4081, allocations: 3.344 kB / 0.5063 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001348/0.4094, allocations: 1.19 MB / 0.5074 GB, free: 9.766 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.4094, allocations: 2.656 kB / 0.5074 GB, free: 9.766 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001926/0.4096, allocations: 44.03 kB / 0.5075 GB, free: 9.762 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.593e-06/0.4096, allocations: 4.312 kB / 0.5075 GB, free: 9.762 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.638e-05/0.4097, allocations: 11.78 kB / 0.5075 GB, free: 9.762 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.011e-06/0.4097, allocations: 5.531 kB / 0.5075 GB, free: 9.762 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/0.4097, allocations: 7.812 kB / 0.5075 GB, free: 9.758 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007381/0.4104, allocations: 0.5421 MB / 0.508 GB, free: 9.484 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.604e-05/0.4105, allocations: 130.2 kB / 0.5082 GB, free: 9.375 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.284e-05/0.4106, allocations: 11.39 kB / 0.5082 GB, free: 9.375 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001908/0.4108, allocations: 26.31 kB / 0.5082 GB, free: 9.367 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.926e-05/0.4109, allocations: 33.3 kB / 0.5082 GB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.827e-05/0.4109, allocations: 10.34 kB / 0.5082 GB, free: 9.363 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001628/0.4111, allocations: 178.7 kB / 0.5084 GB, free: 9.281 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4111, allocations: 0 / 0.5084 GB, free: 9.281 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000407/0.4115, allocations: 94.81 kB / 0.5085 GB, free: 9.266 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.0001089/0.4116, allocations: 124.2 kB / 0.5086 GB, free: 9.164 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006389/0.4122, allocations: 325.9 kB / 0.5089 GB, free: 9.141 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4123, allocations: 0 / 0.5089 GB, free: 9.141 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002664/0.4125, allocations: 147 kB / 0.5091 GB, free: 9.125 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005475/0.4131, allocations: 92.33 kB / 0.5092 GB, free: 9.117 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.4143, allocations: 0.7303 MB / 0.5099 GB, free: 8.676 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003053/0.4146, allocations: 0.793 MB / 0.5107 GB, free: 7.973 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002035/0.4149, allocations: 55.64 kB / 0.5107 GB, free: 7.965 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.99e-05/0.415, allocations: 31.61 kB / 0.5107 GB, free: 7.957 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.415, allocations: 4 kB / 0.5107 GB, free: 7.953 MB / 382.1 MB Notification: Performance of Templates: time 0.00867/0.4236, allocations: 3.782 MB / 0.5144 GB, free: 7.738 MB / 382.1 MB make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.makefile (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.sim & ./BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1)