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.004942/0.004942, allocations: 102.3 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.001112/0.001113, allocations: 191 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.228/1.228, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2329/0.2329, allocations: 31.17 MB / 321.7 MB, free: 176 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 55.91 kB / 446.7 MB, free: 1.801 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09972/0.1009, allocations: 56.36 MB / 0.4913 GB, free: 9.395 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.005685/0.1066, allocations: 5.387 MB / 0.4965 GB, free: 3.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001245/0.1079, allocations: 0.6228 MB / 0.4971 GB, free: 3.355 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002023/0.1081, allocations: 11.94 kB / 0.4972 GB, free: 3.344 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002642/0.1084, allocations: 79.27 kB / 0.4972 GB, free: 3.266 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001924/0.1086, allocations: 67.38 kB / 0.4973 GB, free: 3.199 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005687/0.1092, allocations: 195.5 kB / 0.4975 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004441/0.1096, allocations: 459.2 kB / 0.4979 GB, free: 2.559 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003178/0.11, allocations: 226.1 kB / 0.4981 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002019/0.1102, allocations: 191.3 kB / 0.4983 GB, free: 2.148 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002161/0.1104, allocations: 203.1 kB / 0.4985 GB, free: 1.949 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.815e-05/0.1105, allocations: 44 kB / 0.4985 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.797e-05/0.1105, allocations: 48 kB / 0.4986 GB, free: 1.859 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.728e-05/0.1106, allocations: 103.7 kB / 0.4987 GB, free: 1.758 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001688/0.1108, allocations: 211 kB / 0.4989 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004079/0.1112, allocations: 466.3 kB / 0.4993 GB, free: 1.094 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.1112, allocations: 0 / 0.4993 GB, free: 1.094 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1113, allocations: 4 kB / 0.4993 GB, free: 1.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.1113, allocations: 0 / 0.4993 GB, free: 1.09 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.001021/0.1123, allocations: 0.6827 MB / 0.5 GB, free: 368 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.1123, allocations: 8.031 kB / 0.5 GB, free: 360 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003003/0.1126, allocations: 68.34 kB / 0.5001 GB, free: 292 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2048/0.3174, allocations: 330.5 kB / 0.5004 GB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.132e-05/0.3175, allocations: 41.75 kB / 0.5004 GB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.846e-05/0.3176, allocations: 48 kB / 0.5005 GB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007061/0.3183, allocations: 413.3 kB / 0.5009 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.3183, allocations: 2.75 kB / 0.5009 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.362e-05/0.3184, allocations: 19.59 kB / 0.5009 GB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.336e-05/0.3184, allocations: 14.16 kB / 0.5009 GB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004921/0.3189, allocations: 247.3 kB / 0.5011 GB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001634/0.3205, allocations: 1.65 MB / 0.5028 GB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004753/0.321, allocations: 251.2 kB / 0.503 GB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002354/0.3213, allocations: 165.6 kB / 0.5032 GB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.498e-05/0.3213, allocations: 3.375 kB / 0.5032 GB, free: 11.9 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.131e-05/0.3213, allocations: 40.84 kB / 0.5032 GB, free: 11.86 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.683e-06/0.3213, allocations: 0 / 0.5032 GB, free: 11.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007055/0.322, allocations: 352.8 kB / 0.5035 GB, free: 11.8 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.258e-05/0.3221, allocations: 165.8 kB / 0.5037 GB, free: 11.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002412/0.3223, allocations: 267.4 kB / 0.5039 GB, free: 11.51 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.477e-05/0.3224, allocations: 39.75 kB / 0.504 GB, free: 11.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.571e-05/0.3225, allocations: 211.5 kB / 0.5042 GB, free: 11.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.974e-05/0.3225, allocations: 90.77 kB / 0.5043 GB, free: 11.29 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/0.3227, allocations: 103 kB / 0.5044 GB, free: 11.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.428e-05/0.3227, allocations: 347.5 kB / 0.5047 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002787/0.323, allocations: 135.8 kB / 0.5048 GB, free: 10.95 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003104/0.3233, allocations: 246.2 kB / 0.5051 GB, free: 10.83 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004654/0.3238, allocations: 347 kB / 0.5054 GB, free: 10.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.3238, allocations: 1.125 kB / 0.5054 GB, free: 10.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007283/0.3246, allocations: 448.3 kB / 0.5058 GB, free: 10.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.3246, allocations: 9.125 kB / 0.5058 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.413e-06/0.3246, allocations: 3.688 kB / 0.5058 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.3246, allocations: 6.156 kB / 0.5058 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002338/0.3249, allocations: 64.81 kB / 0.5059 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.3249, allocations: 6.312 kB / 0.5059 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002328/0.3251, allocations: 62.55 kB / 0.506 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.027e-05/0.3251, allocations: 20.33 kB / 0.506 GB, free: 10.63 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.0001501/0.3253, allocations: 189.6 kB / 0.5062 GB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.377e-05/0.3254, allocations: 28.47 kB / 0.5062 GB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.179e-05/0.3255, allocations: 36.44 kB / 0.5062 GB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.3255, allocations: 7.531 kB / 0.5062 GB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.3255, allocations: 5.844 kB / 0.5062 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.3255, allocations: 2.188 kB / 0.5063 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001209/0.3267, allocations: 1.188 MB / 0.5074 GB, free: 9.777 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.571e-06/0.3267, allocations: 6.5 kB / 0.5074 GB, free: 9.777 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001862/0.3269, allocations: 38.08 kB / 0.5075 GB, free: 9.773 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.3269, allocations: 8.094 kB / 0.5075 GB, free: 9.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.258e-05/0.327, allocations: 12.39 kB / 0.5075 GB, free: 9.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.362e-06/0.327, allocations: 9.734 kB / 0.5075 GB, free: 9.766 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.327, allocations: 2.5 kB / 0.5075 GB, free: 9.766 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006731/0.3277, allocations: 0.5422 MB / 0.508 GB, free: 9.492 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.52e-05/0.3278, allocations: 128.4 kB / 0.5081 GB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.217e-05/0.3278, allocations: 12.25 kB / 0.5081 GB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001919/0.328, allocations: 18.09 kB / 0.5082 GB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.52e-05/0.3281, allocations: 41.58 kB / 0.5082 GB, free: 9.371 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.703e-05/0.3281, allocations: 10.2 kB / 0.5082 GB, free: 9.371 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001574/0.3283, allocations: 177.4 kB / 0.5084 GB, free: 9.289 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3283, allocations: 0 / 0.5084 GB, free: 9.289 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003805/0.3287, allocations: 94.69 kB / 0.5085 GB, free: 9.273 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 9.433e-05/0.3288, allocations: 119.2 kB / 0.5086 GB, free: 9.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005951/0.3294, allocations: 328.1 kB / 0.5089 GB, free: 9.156 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.3294, allocations: 0 / 0.5089 GB, free: 9.156 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000252/0.3296, allocations: 139.8 kB / 0.509 GB, free: 9.145 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005443/0.3302, allocations: 96.41 kB / 0.5091 GB, free: 9.133 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009375/0.3311, allocations: 0.719 MB / 0.5098 GB, free: 8.703 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002323/0.3314, allocations: 0.7965 MB / 0.5106 GB, free: 7.996 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001699/0.3316, allocations: 57.44 kB / 0.5107 GB, free: 7.988 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.995e-05/0.3317, allocations: 30.45 kB / 0.5107 GB, free: 7.98 MB / 382.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3317, allocations: 1.125 kB / 0.5107 GB, free: 7.98 MB / 382.1 MB Notification: Performance of Templates: time 0.007506/0.3392, allocations: 3.792 MB / 0.5144 GB, free: 7.766 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)