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.001153/0.001153, allocations: 108.1 kB / 16.41 MB, free: 6.492 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.001126/0.001126, allocations: 189.6 kB / 17.34 MB, free: 5.762 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.333/1.333, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2512/0.2512, allocations: 31.17 MB / 322.4 MB, free: 216 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 68.03 kB / 447.4 MB, free: 1.801 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09273/0.09405, allocations: 56.36 MB / 0.4919 GB, free: 9.41 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.006533/0.1006, allocations: 5.394 MB / 0.4972 GB, free: 3.988 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.102, allocations: 0.6111 MB / 0.4978 GB, free: 3.375 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002634/0.1023, allocations: 8 kB / 0.4978 GB, free: 3.367 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003031/0.1026, allocations: 79.27 kB / 0.4979 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002219/0.1028, allocations: 75.36 kB / 0.498 GB, free: 3.215 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005384/0.1034, allocations: 187.5 kB / 0.4981 GB, free: 3.031 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005522/0.104, allocations: 467.1 kB / 0.4986 GB, free: 2.574 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003708/0.1044, allocations: 218.2 kB / 0.4988 GB, free: 2.359 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000311/0.1047, allocations: 191.3 kB / 0.499 GB, free: 2.172 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002575/0.1049, allocations: 199.1 kB / 0.4992 GB, free: 1.977 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.94e-05/0.105, allocations: 48 kB / 0.4992 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.55e-05/0.1051, allocations: 48 kB / 0.4992 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.92e-05/0.1052, allocations: 107.6 kB / 0.4994 GB, free: 1.777 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002294/0.1055, allocations: 219 kB / 0.4996 GB, free: 1.562 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004352/0.1059, allocations: 454.3 kB / 0.5 GB, free: 1.117 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.287e-06/0.1059, allocations: 4 kB / 0.5 GB, free: 1.113 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1059, allocations: 0 / 0.5 GB, free: 1.113 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.1059, allocations: 0 / 0.5 GB, free: 1.113 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.001141/0.1071, allocations: 0.6944 MB / 0.5007 GB, free: 380 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.037e-05/0.1071, allocations: 12.03 kB / 0.5007 GB, free: 368 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000353/0.1075, allocations: 68.33 kB / 0.5008 GB, free: 300 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1796/0.2871, allocations: 320.7 kB / 0.5011 GB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.305e-05/0.2872, allocations: 39.58 kB / 0.5011 GB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.63e-05/0.2873, allocations: 46.44 kB / 0.5011 GB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007715/0.2881, allocations: 418.2 kB / 0.5015 GB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.2881, allocations: 1.688 kB / 0.5015 GB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.507e-05/0.2881, allocations: 16.56 kB / 0.5016 GB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.471e-05/0.2882, allocations: 14.34 kB / 0.5016 GB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005297/0.2887, allocations: 249.7 kB / 0.5018 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001789/0.2905, allocations: 1.651 MB / 0.5034 GB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005391/0.2911, allocations: 252.7 kB / 0.5037 GB, free: 11.92 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002456/0.2913, allocations: 150.9 kB / 0.5038 GB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.2913, allocations: 10.02 kB / 0.5038 GB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.627e-05/0.2914, allocations: 41.19 kB / 0.5039 GB, free: 11.85 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 2.004e-06/0.2914, allocations: 3.844 kB / 0.5039 GB, free: 11.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007989/0.2922, allocations: 353 kB / 0.5042 GB, free: 11.79 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.674e-05/0.2922, allocations: 162.1 kB / 0.5043 GB, free: 11.61 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002902/0.2925, allocations: 269 kB / 0.5046 GB, free: 11.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.447e-05/0.2926, allocations: 41.92 kB / 0.5046 GB, free: 11.47 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.2927, allocations: 214.2 kB / 0.5048 GB, free: 11.33 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.349e-05/0.2927, allocations: 88.14 kB / 0.5049 GB, free: 11.28 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001258/0.2929, allocations: 104.4 kB / 0.505 GB, free: 11.26 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.039e-05/0.2929, allocations: 341.6 kB / 0.5054 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003115/0.2932, allocations: 139.2 kB / 0.5055 GB, free: 10.94 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003647/0.2936, allocations: 245.2 kB / 0.5057 GB, free: 10.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004999/0.2941, allocations: 354.7 kB / 0.5061 GB, free: 10.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.2942, allocations: 1.094 kB / 0.5061 GB, free: 10.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007862/0.2949, allocations: 452.5 kB / 0.5065 GB, free: 10.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.295, allocations: 10.16 kB / 0.5065 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.295, allocations: 2.312 kB / 0.5065 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.295, allocations: 12.41 kB / 0.5065 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002856/0.2953, allocations: 60.53 kB / 0.5066 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.2953, allocations: 12.95 kB / 0.5066 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002538/0.2956, allocations: 54.98 kB / 0.5066 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.065e-05/0.2956, allocations: 21.94 kB / 0.5067 GB, free: 10.62 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.0001607/0.2958, allocations: 182.5 kB / 0.5068 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.2959, allocations: 32.08 kB / 0.5069 GB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.546e-05/0.296, allocations: 38.02 kB / 0.5069 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.296, allocations: 8.234 kB / 0.5069 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.78e-06/0.296, allocations: 1.156 kB / 0.5069 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.296, allocations: 5.531 kB / 0.5069 GB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001419/0.2974, allocations: 1.18 MB / 0.5081 GB, free: 9.785 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.2974, allocations: 3.688 kB / 0.5081 GB, free: 9.785 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002049/0.2977, allocations: 46.14 kB / 0.5081 GB, free: 9.777 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.2977, allocations: 5.438 kB / 0.5081 GB, free: 9.777 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.42e-05/0.2977, allocations: 10.23 kB / 0.5081 GB, free: 9.777 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.701e-06/0.2977, allocations: 10.11 kB / 0.5081 GB, free: 9.777 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.2977, allocations: 3.797 kB / 0.5081 GB, free: 9.777 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007503/0.2985, allocations: 0.5411 MB / 0.5087 GB, free: 9.504 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001056/0.2986, allocations: 126.9 kB / 0.5088 GB, free: 9.395 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.435e-05/0.2986, allocations: 11.56 kB / 0.5088 GB, free: 9.395 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002475/0.2989, allocations: 22.05 kB / 0.5088 GB, free: 9.391 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.396e-05/0.299, allocations: 39.08 kB / 0.5089 GB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.758e-05/0.299, allocations: 12.84 kB / 0.5089 GB, free: 9.383 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001549/0.2992, allocations: 177.4 kB / 0.509 GB, free: 9.301 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.2992, allocations: 1.406 kB / 0.509 GB, free: 9.301 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004214/0.2996, allocations: 90.12 kB / 0.5091 GB, free: 9.289 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.0001591/0.2998, allocations: 120.5 kB / 0.5092 GB, free: 9.191 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006382/0.3004, allocations: 333.2 kB / 0.5096 GB, free: 9.164 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3004, allocations: 1.156 kB / 0.5096 GB, free: 9.164 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003039/0.3007, allocations: 139 kB / 0.5097 GB, free: 9.148 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005867/0.3013, allocations: 85.77 kB / 0.5098 GB, free: 9.141 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001083/0.3024, allocations: 0.7493 MB / 0.5105 GB, free: 8.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002138/0.3027, allocations: 0.7955 MB / 0.5113 GB, free: 7.977 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.718e-05/0.3028, allocations: 32.56 kB / 0.5113 GB, free: 7.969 MB / 382.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3028, allocations: 1.312 kB / 0.5113 GB, free: 7.969 MB / 382.1 MB Notification: Performance of Templates: time 0.00703/0.3098, allocations: 4.328 MB / 0.5155 GB, free: 7.586 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)