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: "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChainII,fileNamePrefix="BusinessSimulation_dev_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.0008166/0.0008169, allocations: 90.67 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.004579/0.004579, allocations: 170.9 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.238/1.238, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 2.736/2.736, allocations: 31.2 MB / 322.6 MB, free: 5.008 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003191/0.0003191, allocations: 8 kB / 390.9 MB, free: 2.035 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3012/0.3016, allocations: 57.39 MB / 448.3 MB, free: 34.03 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.005573/0.3072, allocations: 6.864 MB / 455.1 MB, free: 29.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00239/0.3096, allocations: 1.063 MB / 456.2 MB, free: 28.24 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000526/0.3102, allocations: 32.88 kB / 456.2 MB, free: 28.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002644/0.3104, allocations: 81.53 kB / 456.3 MB, free: 28.19 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002084/0.3107, allocations: 53.2 kB / 456.4 MB, free: 28.15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005341/0.3112, allocations: 191.7 kB / 456.6 MB, free: 28.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004275/0.3116, allocations: 0.5406 MB / 457.1 MB, free: 27.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003238/0.312, allocations: 276.9 kB / 457.4 MB, free: 27.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001573/0.3121, allocations: 166 kB / 457.5 MB, free: 27.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001719/0.3123, allocations: 185.8 kB / 457.7 MB, free: 27.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.98e-05/0.3124, allocations: 21 kB / 457.7 MB, free: 27.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.413e-05/0.3124, allocations: 30.42 kB / 457.8 MB, free: 27.44 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.611e-05/0.3125, allocations: 87.75 kB / 457.8 MB, free: 27.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001379/0.3127, allocations: 229.7 kB / 458.1 MB, free: 27.22 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003628/0.313, allocations: 0.5136 MB / 458.6 MB, free: 27.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.3131, allocations: 0 / 458.6 MB, free: 27.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3131, allocations: 0 / 458.6 MB, free: 27.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.217e-06/0.3131, allocations: 0 / 458.6 MB, free: 27.04 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.000996/0.3141, allocations: 0.693 MB / 459.3 MB, free: 26.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.3141, allocations: 10.81 kB / 459.3 MB, free: 26.5 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.978e-05/0.3142, allocations: 86.59 kB / 459.4 MB, free: 26.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002985/0.3145, allocations: 78.08 kB / 459.5 MB, free: 26.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004137/0.3149, allocations: 394.8 kB / 459.8 MB, free: 26.08 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.094e-05/0.315, allocations: 49.47 kB / 459.9 MB, free: 26.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.599e-05/0.3151, allocations: 58.34 kB / 459.9 MB, free: 26.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00075/0.3158, allocations: 0.4951 MB / 460.4 MB, free: 25.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.3159, allocations: 1.469 kB / 460.4 MB, free: 25.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.843e-05/0.3159, allocations: 20.69 kB / 460.5 MB, free: 25.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.3159, allocations: 12 kB / 460.5 MB, free: 25.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006131/0.3165, allocations: 326.1 kB / 460.8 MB, free: 25.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002014/0.3186, allocations: 1.884 MB / 462.7 MB, free: 24.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005832/0.3192, allocations: 309 kB / 463 MB, free: 24.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000277/0.3194, allocations: 187.4 kB / 463.2 MB, free: 24.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.311e-05/0.3195, allocations: 11.91 kB / 463.2 MB, free: 24.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.357e-05/0.3195, allocations: 46.3 kB / 463.2 MB, free: 23.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.643e-06/0.3195, allocations: 0 / 463.2 MB, free: 23.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.000846/0.3204, allocations: 398.6 kB / 463.6 MB, free: 23.81 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.036e-05/0.3204, allocations: 158.2 kB / 463.8 MB, free: 23.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003211/0.3207, allocations: 315.9 kB / 464.1 MB, free: 23.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.802e-05/0.3208, allocations: 47.67 kB / 464.1 MB, free: 23.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001346/0.3209, allocations: 258.3 kB / 464.4 MB, free: 23.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.484e-05/0.321, allocations: 99.06 kB / 464.5 MB, free: 23.12 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.22e-05/0.3211, allocations: 59.19 kB / 464.5 MB, free: 23.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.422e-05/0.3212, allocations: 344.7 kB / 464.9 MB, free: 22.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000346/0.3215, allocations: 155.2 kB / 465 MB, free: 22.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003944/0.3219, allocations: 264.2 kB / 465.3 MB, free: 22.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005797/0.3225, allocations: 376.2 kB / 465.6 MB, free: 22.3 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.3225, allocations: 1.062 kB / 465.6 MB, free: 22.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0008918/0.3234, allocations: 491.5 kB / 466.1 MB, free: 22.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.3235, allocations: 6.625 kB / 466.1 MB, free: 22.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/0.3235, allocations: 7.75 kB / 466.1 MB, free: 22.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.3235, allocations: 9.062 kB / 466.1 MB, free: 22.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002765/0.3238, allocations: 68.3 kB / 466.2 MB, free: 22.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.337e-05/0.3238, allocations: 11.14 kB / 466.2 MB, free: 22.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002843/0.3241, allocations: 62.28 kB / 466.3 MB, free: 22.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.455e-05/0.3241, allocations: 21.03 kB / 466.3 MB, free: 22.04 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.0001864/0.3243, allocations: 194.5 kB / 466.5 MB, free: 21.87 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000106/0.3244, allocations: 35.97 kB / 466.5 MB, free: 21.85 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.189e-05/0.3245, allocations: 44.55 kB / 466.6 MB, free: 21.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.3245, allocations: 4.406 kB / 466.6 MB, free: 21.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.659e-06/0.3245, allocations: 5.75 kB / 466.6 MB, free: 21.81 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.064e-06/0.3246, allocations: 2.688 kB / 466.6 MB, free: 21.81 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001594/0.3262, allocations: 1.231 MB / 467.8 MB, free: 20.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.3262, allocations: 3.219 kB / 467.8 MB, free: 20.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000224/0.3264, allocations: 44.28 kB / 467.9 MB, free: 20.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.302e-06/0.3264, allocations: 3.906 kB / 467.9 MB, free: 20.92 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.813e-05/0.3265, allocations: 14.05 kB / 467.9 MB, free: 20.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.3265, allocations: 4.094 kB / 467.9 MB, free: 20.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.3265, allocations: 7.5 kB / 467.9 MB, free: 20.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008491/0.3273, allocations: 0.5807 MB / 468.5 MB, free: 20.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/0.3275, allocations: 139 kB / 468.6 MB, free: 20.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.748e-05/0.3275, allocations: 11.53 kB / 468.6 MB, free: 20.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.3277, allocations: 19.36 kB / 468.6 MB, free: 20.4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.133e-05/0.3278, allocations: 36.62 kB / 468.7 MB, free: 20.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.962e-05/0.3278, allocations: 12.34 kB / 468.7 MB, free: 20.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002219/0.3281, allocations: 218.1 kB / 468.9 MB, free: 20.26 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3281, allocations: 1.875 kB / 468.9 MB, free: 20.26 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004468/0.3285, allocations: 110.4 kB / 469 MB, free: 20.23 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.001072/0.3296, allocations: 1.119 MB / 470.1 MB, free: 19.33 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000715/0.3303, allocations: 367.1 kB / 470.5 MB, free: 19.21 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3304, allocations: 3.938 kB / 470.5 MB, free: 19.21 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003044/0.3307, allocations: 163.5 kB / 470.6 MB, free: 19.15 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006994/0.3314, allocations: 105.3 kB / 470.7 MB, free: 19.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004634/0.336, allocations: 3.874 MB / 474.6 MB, free: 16.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000318/0.3364, allocations: 0.8268 MB / 475.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002563/0.3366, allocations: 62.61 kB / 475.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002019/0.3368, allocations: 156.1 kB / 475.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3368, allocations: 0 / 475.7 MB, free: 15.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3448/0.6816, allocations: 7.019 MB / 482.7 MB, free: 14 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001636/0.6818, allocations: 213.2 kB / 482.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.026/2.708, allocations: 3.938 kB / 482.9 MB, free: 13.74 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1)