Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.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.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001781/0.001781, allocations: 102 kB / 16.4 MB, free: 6.457 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.001891/0.001891, allocations: 192.2 kB / 17.34 MB, free: 5.715 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.391/1.391, allocations: 222.9 MB / 241 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.1697/0.1697, allocations: 31.17 MB / 322.4 MB, free: 176 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 67.88 kB / 447.4 MB, free: 1.762 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1164, allocations: 56.35 MB / 0.4919 GB, free: 9.363 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.00848/0.1249, allocations: 6.803 MB / 0.4986 GB, free: 2.535 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002708/0.1277, allocations: 1.001 MB / 0.4996 GB, free: 1.531 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008418/0.1286, allocations: 19.88 kB / 0.4996 GB, free: 1.512 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005068/0.1291, allocations: 111 kB / 0.4997 GB, free: 1.402 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004735/0.1297, allocations: 75.31 kB / 0.4997 GB, free: 1.328 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001003/0.1307, allocations: 230.6 kB / 0.5 GB, free: 1.105 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009271/0.1316, allocations: 0.5658 MB / 0.5005 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000553/0.1322, allocations: 313.3 kB / 0.5008 GB, free: 228 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003676/0.1326, allocations: 227.2 kB / 0.501 GB, free: 0 / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.255/0.3876, allocations: 240 kB / 0.5013 GB, free: 6.602 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002643/0.3879, allocations: 57.06 kB / 0.5013 GB, free: 6.602 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000234/0.3882, allocations: 62.55 kB / 0.5014 GB, free: 6.602 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000205/0.3884, allocations: 135.6 kB / 0.5015 GB, free: 6.598 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004017/0.3888, allocations: 257.7 kB / 0.5018 GB, free: 6.516 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001085/0.3899, allocations: 0.5749 MB / 0.5023 GB, free: 6.422 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.804e-06/0.3899, allocations: 0 / 0.5023 GB, free: 6.422 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3899, allocations: 3.469 kB / 0.5023 GB, free: 6.422 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.087e-05/0.39, allocations: 0.5625 kB / 0.5023 GB, free: 6.422 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: 125 * Number of variables: 125 Notification: Performance of Generate backend data structure: time 0.00143/0.3914, allocations: 0.7988 MB / 0.5031 GB, free: 5.902 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.3914, allocations: 8.969 kB / 0.5031 GB, free: 5.902 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004495/0.3919, allocations: 76.95 kB / 0.5032 GB, free: 5.875 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006218/0.3925, allocations: 412.5 kB / 0.5036 GB, free: 5.633 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.812e-05/0.3926, allocations: 46.83 kB / 0.5036 GB, free: 5.633 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001235/0.3927, allocations: 60.42 kB / 0.5037 GB, free: 5.629 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009741/0.3937, allocations: 0.5008 MB / 0.5042 GB, free: 5.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.856e-05/0.3937, allocations: 2.188 kB / 0.5042 GB, free: 5.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.648e-05/0.3938, allocations: 19.62 kB / 0.5042 GB, free: 5.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.237e-05/0.3938, allocations: 13 kB / 0.5042 GB, free: 5.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007188/0.3946, allocations: 313.6 kB / 0.5045 GB, free: 5.512 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002329/0.3969, allocations: 1.862 MB / 0.5063 GB, free: 4.508 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000649/0.3976, allocations: 303 kB / 0.5066 GB, free: 4.414 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003136/0.3979, allocations: 182.2 kB / 0.5068 GB, free: 4.383 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.3979, allocations: 7.109 kB / 0.5068 GB, free: 4.383 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.186e-05/0.3979, allocations: 41.02 kB / 0.5068 GB, free: 4.344 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.914e-06/0.3979, allocations: 0.5 kB / 0.5068 GB, free: 4.344 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009048/0.3989, allocations: 388.3 kB / 0.5072 GB, free: 4.281 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.876e-05/0.3989, allocations: 163.2 kB / 0.5074 GB, free: 4.094 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003538/0.3993, allocations: 319.5 kB / 0.5077 GB, free: 3.973 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.14e-05/0.3993, allocations: 39.77 kB / 0.5077 GB, free: 3.941 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001858/0.3995, allocations: 263.4 kB / 0.5079 GB, free: 3.781 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.3e-05/0.3996, allocations: 103.7 kB / 0.508 GB, free: 3.719 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001447/0.3998, allocations: 109.9 kB / 0.5081 GB, free: 3.691 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.355e-05/0.3998, allocations: 349.3 kB / 0.5085 GB, free: 3.379 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003469/0.4002, allocations: 145.3 kB / 0.5086 GB, free: 3.379 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003788/0.4006, allocations: 256.9 kB / 0.5089 GB, free: 3.258 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00057/0.4012, allocations: 370.2 kB / 0.5092 GB, free: 3.137 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.4012, allocations: 1.219 kB / 0.5092 GB, free: 3.137 MB / 382.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009034/0.4021, allocations: 479.5 kB / 0.5097 GB, free: 3.07 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.4021, allocations: 8.156 kB / 0.5097 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.4021, allocations: 7.031 kB / 0.5097 GB, free: 3.066 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.297e-05/0.4022, allocations: 6.375 kB / 0.5097 GB, free: 3.066 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002949/0.4025, allocations: 73.75 kB / 0.5098 GB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.4025, allocations: 7.031 kB / 0.5098 GB, free: 3.062 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002996/0.4028, allocations: 60.11 kB / 0.5098 GB, free: 3.035 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.399e-05/0.4028, allocations: 25.03 kB / 0.5099 GB, free: 3.031 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 (63): * Single equations (assignments): 63 * 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.0002161/0.403, allocations: 194.5 kB / 0.51 GB, free: 2.914 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001091/0.4032, allocations: 35.16 kB / 0.5101 GB, free: 2.898 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.294e-05/0.4032, allocations: 44.39 kB / 0.5101 GB, free: 2.879 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.4033, allocations: 3.312 kB / 0.5101 GB, free: 2.879 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.166e-05/0.4033, allocations: 2.797 kB / 0.5101 GB, free: 2.879 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.393e-06/0.4033, allocations: 3.969 kB / 0.5101 GB, free: 2.879 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001618/0.4049, allocations: 1.226 MB / 0.5113 GB, free: 2.219 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.4049, allocations: 6.406 kB / 0.5113 GB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000226/0.4052, allocations: 41.7 kB / 0.5114 GB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.775e-06/0.4052, allocations: 3.188 kB / 0.5114 GB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.807e-05/0.4052, allocations: 15.31 kB / 0.5114 GB, free: 2.211 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.55e-06/0.4052, allocations: 3.766 kB / 0.5114 GB, free: 2.211 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/0.4052, allocations: 11.41 kB / 0.5114 GB, free: 2.207 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008351/0.4061, allocations: 0.5597 MB / 0.5119 GB, free: 1.969 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001234/0.4062, allocations: 133.4 kB / 0.5121 GB, free: 1.855 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.221e-05/0.4063, allocations: 14.03 kB / 0.5121 GB, free: 1.855 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002065/0.4065, allocations: 20.67 kB / 0.5121 GB, free: 1.852 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.844e-05/0.4066, allocations: 33.92 kB / 0.5121 GB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.97e-05/0.4066, allocations: 15.12 kB / 0.5122 GB, free: 1.848 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002144/0.4068, allocations: 214.5 kB / 0.5124 GB, free: 1.766 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.52e-07/0.4068, allocations: 0 / 0.5124 GB, free: 1.766 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004775/0.4073, allocations: 113.1 kB / 0.5125 GB, free: 1.742 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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,producing.growing.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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 31 * 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.0001123/0.4074, allocations: 115.2 kB / 0.5126 GB, free: 1.656 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007446/0.4082, allocations: 354.7 kB / 0.5129 GB, free: 1.648 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4082, allocations: 1.438 kB / 0.5129 GB, free: 1.648 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002831/0.4085, allocations: 148 kB / 0.5131 GB, free: 1.648 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006213/0.4091, allocations: 95.88 kB / 0.5131 GB, free: 1.645 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001264/0.4104, allocations: 0.8515 MB / 0.514 GB, free: 1.156 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003474/0.4108, allocations: 0.8265 MB / 0.5148 GB, free: 16.46 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.4109, allocations: 36.62 kB / 0.5148 GB, free: 16.45 MB / 398.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4109, allocations: 5.281 kB / 0.5148 GB, free: 16.45 MB / 398.1 MB Notification: Performance of Templates: time 0.00911/0.42, allocations: 5.272 MB / 0.52 GB, free: 15.94 MB / 398.1 MB make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.makefile (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.sim & ./BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1)