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.001371/0.001371, allocations: 113.6 kB / 16.42 MB, free: 6.508 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.001167/0.001167, allocations: 183.9 kB / 17.34 MB, free: 5.758 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.309/1.309, allocations: 222.9 MB / 241.1 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2489/0.2489, allocations: 31.18 MB / 322.4 MB, free: 184 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 75.88 kB / 447.4 MB, free: 1.781 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0951/0.09634, allocations: 56.36 MB / 0.492 GB, free: 9.379 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.006176/0.1025, allocations: 5.394 MB / 0.4972 GB, free: 3.957 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001279/0.1038, allocations: 0.6034 MB / 0.4978 GB, free: 3.352 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000262/0.1041, allocations: 11.94 kB / 0.4978 GB, free: 3.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002613/0.1044, allocations: 83.27 kB / 0.4979 GB, free: 3.258 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002006/0.1046, allocations: 71.36 kB / 0.498 GB, free: 3.188 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005439/0.1052, allocations: 183.5 kB / 0.4981 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004834/0.1057, allocations: 467.1 kB / 0.4986 GB, free: 2.551 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003169/0.106, allocations: 230.1 kB / 0.4988 GB, free: 2.324 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002284/0.1062, allocations: 191.3 kB / 0.499 GB, free: 2.137 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002413/0.1065, allocations: 195.1 kB / 0.4992 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.363e-05/0.1066, allocations: 48 kB / 0.4992 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.719e-05/0.1067, allocations: 48 kB / 0.4993 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000101/0.1068, allocations: 111.7 kB / 0.4994 GB, free: 1.742 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001829/0.107, allocations: 211 kB / 0.4996 GB, free: 1.535 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004917/0.1075, allocations: 462 kB / 0.5 GB, free: 1.082 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.1075, allocations: 4 kB / 0.5 GB, free: 1.078 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1075, allocations: 0 / 0.5 GB, free: 1.078 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.162e-05/0.1075, allocations: 0 / 0.5 GB, free: 1.078 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.001078/0.1086, allocations: 0.6978 MB / 0.5007 GB, free: 340 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.1086, allocations: 8.031 kB / 0.5007 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003057/0.1089, allocations: 72.61 kB / 0.5008 GB, free: 260 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1825/0.2915, allocations: 323.2 kB / 0.5011 GB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.387e-05/0.2915, allocations: 37.78 kB / 0.5011 GB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.372e-05/0.2916, allocations: 48.58 kB / 0.5012 GB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007139/0.2923, allocations: 419.5 kB / 0.5016 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.2924, allocations: 6.375 kB / 0.5016 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.57e-05/0.2924, allocations: 17.94 kB / 0.5016 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.369e-05/0.2924, allocations: 16.97 kB / 0.5016 GB, free: 13.03 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005176/0.293, allocations: 249.9 kB / 0.5018 GB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001674/0.2946, allocations: 1.658 MB / 0.5035 GB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004969/0.2952, allocations: 253.7 kB / 0.5037 GB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002644/0.2954, allocations: 156.9 kB / 0.5039 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.191e-05/0.2955, allocations: 5.188 kB / 0.5039 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.829e-05/0.2955, allocations: 46.62 kB / 0.5039 GB, free: 11.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 2.284e-06/0.2955, allocations: 0 / 0.5039 GB, free: 11.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007501/0.2962, allocations: 346.6 kB / 0.5042 GB, free: 11.86 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.257e-05/0.2963, allocations: 160.6 kB / 0.5044 GB, free: 11.67 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002443/0.2965, allocations: 270.6 kB / 0.5047 GB, free: 11.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.135e-05/0.2966, allocations: 38.7 kB / 0.5047 GB, free: 11.54 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.369e-05/0.2967, allocations: 218.8 kB / 0.5049 GB, free: 11.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.262e-05/0.2967, allocations: 91.02 kB / 0.505 GB, free: 11.36 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/0.2969, allocations: 98.38 kB / 0.5051 GB, free: 11.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.64e-05/0.2969, allocations: 345 kB / 0.5054 GB, free: 11.03 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002979/0.2972, allocations: 140.8 kB / 0.5055 GB, free: 11.03 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003317/0.2976, allocations: 245.8 kB / 0.5058 GB, free: 10.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004901/0.2981, allocations: 353.8 kB / 0.5061 GB, free: 10.79 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.2981, allocations: 0 / 0.5061 GB, free: 10.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007573/0.2989, allocations: 458.4 kB / 0.5065 GB, free: 10.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.2989, allocations: 10.5 kB / 0.5066 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.2989, allocations: 3.594 kB / 0.5066 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.052e-05/0.2989, allocations: 5.969 kB / 0.5066 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002502/0.2992, allocations: 61.83 kB / 0.5066 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/0.2992, allocations: 13.11 kB / 0.5066 GB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002496/0.2994, allocations: 56.56 kB / 0.5067 GB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.233e-05/0.2995, allocations: 19.11 kB / 0.5067 GB, free: 10.7 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.0001516/0.2996, allocations: 191.9 kB / 0.5069 GB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.726e-05/0.2997, allocations: 30.64 kB / 0.5069 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.296e-05/0.2998, allocations: 35.44 kB / 0.507 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.2998, allocations: 2.656 kB / 0.507 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.2998, allocations: 0 / 0.507 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.142e-05/0.2999, allocations: 130 kB / 0.5071 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.057e-05/0.3, allocations: 7.875 kB / 0.5071 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002695/0.3003, allocations: 20.28 kB / 0.5071 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.605e-05/0.3003, allocations: 32.62 kB / 0.5071 GB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007718/0.3011, allocations: 0.612 MB / 0.5077 GB, free: 10.08 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007841/0.3019, allocations: 0.7807 MB / 0.5085 GB, free: 9.621 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002378/0.3022, allocations: 132 kB / 0.5086 GB, free: 9.617 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001509/0.3023, allocations: 178.6 kB / 0.5088 GB, free: 9.535 MB / 382.1 MB Notification: Performance of Backend: time 4.31e-07/0.3023, allocations: 0 / 0.5088 GB, free: 9.535 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009896/0.3033, allocations: 324.9 kB / 0.5091 GB, free: 9.449 MB / 382.1 MB Notification: Performance of SimCode: time 0.001031/0.3044, allocations: 1.073 MB / 0.5102 GB, free: 8.652 MB / 382.1 MB Notification: Performance of Templates: time 0.008707/0.3131, allocations: 4.378 MB / 0.5144 GB, free: 8.395 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)