Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_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/package.mo", uses=false) Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/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: "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007978/0.007978, allocations: 100.6 kB / 15.73 MB, free: 6.008 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.002026/0.002026, allocations: 189.7 kB / 16.67 MB, free: 5.934 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.412/1.412, 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/package.mo): time 0.4241/0.4241, allocations: 31.13 MB / 321.7 MB, free: 36 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001796, allocations: 63.89 kB / 446.2 MB, free: 2.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09865/0.1005, allocations: 56.36 MB / 0.4908 GB, free: 9.816 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.006547/0.107, allocations: 5.397 MB / 0.496 GB, free: 4.391 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001185/0.1082, allocations: 0.6035 MB / 0.4966 GB, free: 3.785 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001758/0.1084, allocations: 11.94 kB / 0.4966 GB, free: 3.773 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002419/0.1087, allocations: 79.27 kB / 0.4967 GB, free: 3.695 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001824/0.1089, allocations: 67.3 kB / 0.4968 GB, free: 3.629 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004943/0.1094, allocations: 187.5 kB / 0.4969 GB, free: 3.445 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005089/0.1099, allocations: 463.1 kB / 0.4974 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003393/0.1103, allocations: 234.1 kB / 0.4976 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002323/0.1105, allocations: 187.3 kB / 0.4978 GB, free: 2.578 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002529/0.1108, allocations: 195.1 kB / 0.498 GB, free: 2.387 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.571e-05/0.1108, allocations: 48 kB / 0.498 GB, free: 2.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001072/0.111, allocations: 55.98 kB / 0.4981 GB, free: 2.285 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001169/0.1111, allocations: 103.7 kB / 0.4982 GB, free: 2.184 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002018/0.1113, allocations: 214.9 kB / 0.4984 GB, free: 1.973 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005248/0.1118, allocations: 458.1 kB / 0.4988 GB, free: 1.523 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.1118, allocations: 0 / 0.4988 GB, free: 1.523 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.01e-07/0.1118, allocations: 4 kB / 0.4988 GB, free: 1.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.612e-06/0.1119, allocations: 0 / 0.4988 GB, free: 1.52 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.001145/0.113, allocations: 0.7017 MB / 0.4995 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.113, allocations: 12.03 kB / 0.4995 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.702e-05/0.1131, allocations: 78.7 kB / 0.4996 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002913/0.1134, allocations: 64.62 kB / 0.4997 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004322/0.1139, allocations: 339.3 kB / 0.5 GB, free: 244 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.448e-05/0.1139, allocations: 41.12 kB / 0.5 GB, free: 200 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.447e-05/0.114, allocations: 48 kB / 0.5001 GB, free: 152 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1757/0.2897, allocations: 408.9 kB / 0.5005 GB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.27e-05/0.2898, allocations: 2.734 kB / 0.5005 GB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.788e-05/0.2898, allocations: 17.19 kB / 0.5005 GB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.323e-05/0.2899, allocations: 10.12 kB / 0.5005 GB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008742/0.2908, allocations: 250.4 kB / 0.5007 GB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002598/0.2934, allocations: 1.654 MB / 0.5023 GB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007497/0.2941, allocations: 256 kB / 0.5026 GB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003808/0.2945, allocations: 154.4 kB / 0.5027 GB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.641e-05/0.2946, allocations: 4.328 kB / 0.5027 GB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.2946, allocations: 41.39 kB / 0.5028 GB, free: 11.79 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 2.605e-06/0.2946, allocations: 3.469 kB / 0.5028 GB, free: 11.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.001118/0.2958, allocations: 359.9 kB / 0.5031 GB, free: 11.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.711e-05/0.2958, allocations: 159 kB / 0.5033 GB, free: 11.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003656/0.2962, allocations: 264.8 kB / 0.5035 GB, free: 11.44 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.497e-05/0.2963, allocations: 39.7 kB / 0.5036 GB, free: 11.41 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00014/0.2964, allocations: 225.7 kB / 0.5038 GB, free: 11.28 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.614e-05/0.2965, allocations: 90.72 kB / 0.5039 GB, free: 11.24 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001874/0.2967, allocations: 96.92 kB / 0.504 GB, free: 11.22 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.612e-05/0.2968, allocations: 344.4 kB / 0.5043 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000529/0.2973, allocations: 139.1 kB / 0.5044 GB, free: 10.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005272/0.2979, allocations: 249.4 kB / 0.5047 GB, free: 10.79 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007725/0.2986, allocations: 342.2 kB / 0.505 GB, free: 10.67 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.2987, allocations: 1.031 kB / 0.505 GB, free: 10.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001132/0.2998, allocations: 457.6 kB / 0.5054 GB, free: 10.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.2998, allocations: 6.531 kB / 0.5054 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.2999, allocations: 9.094 kB / 0.5054 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.367e-05/0.2999, allocations: 7.875 kB / 0.5054 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003753/0.3003, allocations: 68.03 kB / 0.5055 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.575e-05/0.3003, allocations: 7.641 kB / 0.5055 GB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003927/0.3007, allocations: 62.83 kB / 0.5056 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.773e-05/0.3008, allocations: 19.92 kB / 0.5056 GB, free: 10.59 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.0002302/0.301, allocations: 184.8 kB / 0.5058 GB, free: 10.47 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001676/0.3012, allocations: 26.75 kB / 0.5058 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.103e-05/0.3013, allocations: 40.75 kB / 0.5058 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.3013, allocations: 6.938 kB / 0.5058 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/0.3013, allocations: 1.594 kB / 0.5058 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.3014, allocations: 3.016 kB / 0.5058 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002118/0.3035, allocations: 1.183 MB / 0.507 GB, free: 9.754 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.3035, allocations: 4.219 kB / 0.507 GB, free: 9.754 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000194/0.3037, allocations: 37.75 kB / 0.507 GB, free: 9.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.534e-06/0.3037, allocations: 11.47 kB / 0.507 GB, free: 9.746 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.463e-05/0.3038, allocations: 13.53 kB / 0.5071 GB, free: 9.746 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.64e-06/0.3038, allocations: 9.688 kB / 0.5071 GB, free: 9.742 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.3038, allocations: 2.969 kB / 0.5071 GB, free: 9.742 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007037/0.3045, allocations: 0.5419 MB / 0.5076 GB, free: 9.473 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.254e-05/0.3046, allocations: 132.4 kB / 0.5077 GB, free: 9.355 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.201e-05/0.3046, allocations: 11.31 kB / 0.5077 GB, free: 9.355 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001958/0.3048, allocations: 17.7 kB / 0.5078 GB, free: 9.355 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.786e-05/0.3049, allocations: 38.92 kB / 0.5078 GB, free: 9.348 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.845e-05/0.3049, allocations: 13.62 kB / 0.5078 GB, free: 9.348 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001579/0.3051, allocations: 182.7 kB / 0.508 GB, free: 9.262 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3051, allocations: 0 / 0.508 GB, free: 9.262 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004016/0.3055, allocations: 94.69 kB / 0.5081 GB, free: 9.246 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.0008481/0.3064, allocations: 1.093 MB / 0.5091 GB, free: 8.438 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006338/0.307, allocations: 332.7 kB / 0.5095 GB, free: 8.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.307, allocations: 0.9844 kB / 0.5095 GB, free: 8.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00026/0.3073, allocations: 138.1 kB / 0.5096 GB, free: 8.398 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005669/0.3079, allocations: 92.84 kB / 0.5097 GB, free: 8.395 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003642/0.3115, allocations: 3.359 MB / 0.513 GB, free: 6.527 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002222/0.3118, allocations: 0.7969 MB / 0.5137 GB, free: 5.824 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001831/0.312, allocations: 55.28 kB / 0.5138 GB, free: 5.816 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00015/0.3121, allocations: 116.4 kB / 0.5139 GB, free: 5.809 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3121, allocations: 3.938 kB / 0.5139 GB, free: 5.805 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03678/0.3489, allocations: 6.372 MB / 0.5201 GB, free: 5.121 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.33/8.679, allocations: 3.766 kB / 0.5201 GB, free: 5.121 MB / 382.1 MB (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChain.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1)