Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_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/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.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII",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.0007142/0.0007173, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004507/0.004507, allocations: 170 kB / 16.26 MB, free: 6.613 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.289/1.289, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 5.4/5.4, allocations: 31.15 MB / 322.6 MB, free: 4.844 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000367/0.000367, allocations: 8 kB / 390.8 MB, free: 1.891 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2898/0.2902, allocations: 57.4 MB / 448.2 MB, free: 33.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.005642/0.2959, allocations: 6.865 MB / 455.1 MB, free: 28.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002315/0.2982, allocations: 1.064 MB / 456.2 MB, free: 28.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005556/0.2988, allocations: 27.72 kB / 456.2 MB, free: 28.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000244/0.2991, allocations: 77.55 kB / 456.3 MB, free: 28.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002008/0.2993, allocations: 55.06 kB / 456.3 MB, free: 27.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005511/0.2998, allocations: 193.5 kB / 456.5 MB, free: 27.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004829/0.3003, allocations: 0.5298 MB / 457 MB, free: 27.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003784/0.3007, allocations: 278.2 kB / 457.3 MB, free: 27.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001822/0.3009, allocations: 176.7 kB / 457.5 MB, free: 27.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001827/0.3011, allocations: 187.8 kB / 457.7 MB, free: 27.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4e-05/0.3012, allocations: 18.97 kB / 457.7 MB, free: 27.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.547e-05/0.3012, allocations: 26.41 kB / 457.7 MB, free: 27.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.108e-05/0.3013, allocations: 83 kB / 457.8 MB, free: 27.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000144/0.3015, allocations: 230.8 kB / 458 MB, free: 27.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003515/0.3018, allocations: 0.5157 MB / 458.5 MB, free: 26.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.3018, allocations: 0 / 458.5 MB, free: 26.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.906e-06/0.3018, allocations: 0 / 458.5 MB, free: 26.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.653e-06/0.3019, allocations: 3.938 kB / 458.5 MB, free: 26.87 MB / 350.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.0009727/0.3028, allocations: 0.6924 MB / 459.2 MB, free: 26.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.3029, allocations: 7.031 kB / 459.2 MB, free: 26.33 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.331e-05/0.303, allocations: 89.41 kB / 459.3 MB, free: 26.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003042/0.3033, allocations: 76.92 kB / 459.4 MB, free: 26.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004292/0.3037, allocations: 391.8 kB / 459.8 MB, free: 25.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.34e-05/0.3038, allocations: 48.44 kB / 459.8 MB, free: 25.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.85e-05/0.3039, allocations: 61.25 kB / 459.9 MB, free: 25.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000751/0.3046, allocations: 0.4962 MB / 460.4 MB, free: 25.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.3046, allocations: 1.375 kB / 460.4 MB, free: 25.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.693e-05/0.3047, allocations: 20.88 kB / 460.4 MB, free: 25.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.3047, allocations: 12.09 kB / 460.4 MB, free: 25.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006138/0.3053, allocations: 323.5 kB / 460.7 MB, free: 25.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001992/0.3073, allocations: 1.889 MB / 462.6 MB, free: 24.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005901/0.3079, allocations: 312.4 kB / 462.9 MB, free: 23.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002903/0.3082, allocations: 190.5 kB / 463.1 MB, free: 23.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.906e-05/0.3083, allocations: 7.703 kB / 463.1 MB, free: 23.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.054e-05/0.3083, allocations: 46.02 kB / 463.2 MB, free: 23.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.643e-06/0.3083, allocations: 0 / 463.2 MB, free: 23.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008265/0.3091, allocations: 396.5 kB / 463.6 MB, free: 23.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.211e-05/0.3092, allocations: 158.7 kB / 463.7 MB, free: 23.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003305/0.3095, allocations: 322.9 kB / 464 MB, free: 23.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.062e-05/0.3096, allocations: 39.98 kB / 464.1 MB, free: 23.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001395/0.3097, allocations: 254.8 kB / 464.3 MB, free: 23.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.611e-05/0.3098, allocations: 96.64 kB / 464.4 MB, free: 22.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.85e-05/0.3099, allocations: 59.72 kB / 464.5 MB, free: 22.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.708e-05/0.31, allocations: 352 kB / 464.8 MB, free: 22.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003338/0.3103, allocations: 149 kB / 465 MB, free: 22.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003954/0.3107, allocations: 264 kB / 465.2 MB, free: 22.37 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006014/0.3113, allocations: 377.2 kB / 465.6 MB, free: 22.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.3113, allocations: 1.062 kB / 465.6 MB, free: 22.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0008721/0.3122, allocations: 490.7 kB / 466.1 MB, free: 21.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.3122, allocations: 6.656 kB / 466.1 MB, free: 21.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.3123, allocations: 11.12 kB / 466.1 MB, free: 21.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.019e-05/0.3123, allocations: 7.375 kB / 466.1 MB, free: 21.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002871/0.3126, allocations: 67.28 kB / 466.2 MB, free: 21.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.536e-05/0.3126, allocations: 14.47 kB / 466.2 MB, free: 21.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002857/0.3129, allocations: 63.47 kB / 466.2 MB, free: 21.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.703e-05/0.3129, allocations: 20.19 kB / 466.3 MB, free: 21.87 MB / 350.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.0002071/0.3132, allocations: 198.7 kB / 466.4 MB, free: 21.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001081/0.3133, allocations: 36.5 kB / 466.5 MB, free: 21.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.574e-05/0.3134, allocations: 40.69 kB / 466.5 MB, free: 21.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.3134, allocations: 4.812 kB / 466.5 MB, free: 21.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.806e-06/0.3134, allocations: 1.531 kB / 466.5 MB, free: 21.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.3134, allocations: 2.016 kB / 466.5 MB, free: 21.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00156/0.315, allocations: 1.232 MB / 467.8 MB, free: 20.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.315, allocations: 1.438 kB / 467.8 MB, free: 20.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002268/0.3152, allocations: 48.39 kB / 467.8 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.3152, allocations: 3.969 kB / 467.8 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.647e-05/0.3153, allocations: 18.27 kB / 467.8 MB, free: 20.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/0.3153, allocations: 5.422 kB / 467.8 MB, free: 20.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.3153, allocations: 6.031 kB / 467.8 MB, free: 20.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008442/0.3161, allocations: 0.575 MB / 468.4 MB, free: 20.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000113/0.3163, allocations: 140.8 kB / 468.6 MB, free: 20.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.495e-05/0.3163, allocations: 10.8 kB / 468.6 MB, free: 20.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002122/0.3165, allocations: 21.47 kB / 468.6 MB, free: 20.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.744e-05/0.3166, allocations: 39.25 kB / 468.6 MB, free: 20.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.945e-05/0.3166, allocations: 12.97 kB / 468.6 MB, free: 20.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002359/0.3169, allocations: 214.8 kB / 468.9 MB, free: 20.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3169, allocations: 0 / 468.9 MB, free: 20.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004646/0.3174, allocations: 112.4 kB / 469 MB, free: 20.06 MB / 350.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.001046/0.3184, allocations: 1.121 MB / 470.1 MB, free: 19.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007342/0.3192, allocations: 367.1 kB / 470.4 MB, free: 19.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3192, allocations: 1.375 kB / 470.4 MB, free: 19.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003207/0.3195, allocations: 166.7 kB / 470.6 MB, free: 18.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006712/0.3202, allocations: 95.83 kB / 470.7 MB, free: 18.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004777/0.325, allocations: 3.871 MB / 474.6 MB, free: 16.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003207/0.3253, allocations: 0.8269 MB / 475.4 MB, free: 15.58 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002763/0.3256, allocations: 62.19 kB / 475.5 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002019/0.3258, allocations: 157.3 kB / 475.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3258, allocations: 0 / 475.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5091/0.835, allocations: 7.014 MB / 482.6 MB, free: 13.83 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001855/0.8352, allocations: 212 kB / 482.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.852/2.687, allocations: 0.5625 kB / 482.8 MB, free: 13.57 MB / 350.1 MB (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1)