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.001569/0.001569, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00115/0.00115, allocations: 188.8 kB / 16.25 MB, free: 6.633 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.395/1.395, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.2805/0.2805, allocations: 31.17 MB / 321.3 MB, free: 4.602 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 59.91 kB / 388.5 MB, free: 2.879 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2513, allocations: 56.36 MB / 444.9 MB, free: 34.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.006183/0.2575, allocations: 7.313 MB / 452.2 MB, free: 29.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002238/0.2598, allocations: 1.079 MB / 453.3 MB, free: 28.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004675/0.2603, allocations: 28.84 kB / 453.3 MB, free: 28.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002879/0.2605, allocations: 81.55 kB / 453.4 MB, free: 28.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002043/0.2608, allocations: 51.41 kB / 453.5 MB, free: 28.26 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005614/0.2614, allocations: 196.4 kB / 453.7 MB, free: 28.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004339/0.2618, allocations: 0.5664 MB / 454.2 MB, free: 27.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003474/0.2622, allocations: 306.6 kB / 454.5 MB, free: 27.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001827/0.2624, allocations: 229.4 kB / 454.7 MB, free: 27.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001772/0.2625, allocations: 238.6 kB / 455 MB, free: 27.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.674e-05/0.2626, allocations: 55.81 kB / 455 MB, free: 27.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.044e-05/0.2627, allocations: 63.09 kB / 455.1 MB, free: 27.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.929e-05/0.2628, allocations: 130.5 kB / 455.2 MB, free: 27.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001573/0.263, allocations: 266.7 kB / 455.5 MB, free: 27.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000431/0.2634, allocations: 0.553 MB / 456 MB, free: 26.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.2634, allocations: 5.375 kB / 456 MB, free: 26.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2634, allocations: 0 / 456 MB, free: 26.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.696e-06/0.2634, allocations: 3.938 kB / 456 MB, free: 26.89 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.00106/0.2645, allocations: 0.7784 MB / 456.8 MB, free: 26.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.2645, allocations: 11.19 kB / 456.8 MB, free: 26.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.085e-05/0.2646, allocations: 100.7 kB / 456.9 MB, free: 26.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002762/0.2649, allocations: 74.45 kB / 457 MB, free: 26.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000382/0.2653, allocations: 387.3 kB / 457.4 MB, free: 25.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.795e-05/0.2653, allocations: 49.78 kB / 457.4 MB, free: 25.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.6e-05/0.2654, allocations: 57.12 kB / 457.5 MB, free: 25.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007417/0.2662, allocations: 0.4911 MB / 458 MB, free: 25.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.2662, allocations: 0 / 458 MB, free: 25.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.91e-05/0.2662, allocations: 21.59 kB / 458 MB, free: 25.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.2662, allocations: 12.53 kB / 458 MB, free: 25.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005873/0.2668, allocations: 306.8 kB / 458.3 MB, free: 25.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00205/0.2689, allocations: 1.883 MB / 460.2 MB, free: 24.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006232/0.2695, allocations: 304.8 kB / 460.5 MB, free: 23.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002807/0.2698, allocations: 185 kB / 460.7 MB, free: 23.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.685e-05/0.2699, allocations: 6.203 kB / 460.7 MB, free: 23.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.2699, allocations: 42.73 kB / 460.7 MB, free: 23.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.354e-06/0.2699, allocations: 3.656 kB / 460.7 MB, free: 23.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008789/0.2708, allocations: 378.6 kB / 461.1 MB, free: 23.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.502e-05/0.2709, allocations: 162.2 kB / 461.2 MB, free: 23.42 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003294/0.2712, allocations: 317.2 kB / 461.6 MB, free: 23.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.881e-05/0.2712, allocations: 41.7 kB / 461.6 MB, free: 23.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.2714, allocations: 257.9 kB / 461.9 MB, free: 23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.522e-05/0.2715, allocations: 98.27 kB / 461.9 MB, free: 22.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/0.2716, allocations: 100.2 kB / 462 MB, free: 22.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.263e-05/0.2717, allocations: 347 kB / 462.4 MB, free: 22.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003177/0.272, allocations: 149.4 kB / 462.5 MB, free: 22.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003628/0.2724, allocations: 257.8 kB / 462.8 MB, free: 22.31 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005517/0.2729, allocations: 369.5 kB / 463.1 MB, free: 22.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.273, allocations: 1.156 kB / 463.1 MB, free: 22.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0008701/0.2738, allocations: 484.6 kB / 463.6 MB, free: 21.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.2739, allocations: 6.062 kB / 463.6 MB, free: 21.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.2739, allocations: 3.75 kB / 463.6 MB, free: 21.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.11e-05/0.2739, allocations: 6.828 kB / 463.6 MB, free: 21.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002737/0.2742, allocations: 73.69 kB / 463.7 MB, free: 21.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.36e-05/0.2742, allocations: 6.375 kB / 463.7 MB, free: 21.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002695/0.2745, allocations: 60 kB / 463.8 MB, free: 21.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.733e-05/0.2745, allocations: 20.31 kB / 463.8 MB, free: 21.81 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.0001957/0.2747, allocations: 194.9 kB / 464 MB, free: 21.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.2748, allocations: 45.44 kB / 464 MB, free: 21.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.981e-05/0.2749, allocations: 44.41 kB / 464.1 MB, free: 21.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.2749, allocations: 5.031 kB / 464.1 MB, free: 21.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/0.275, allocations: 1.094 kB / 464.1 MB, free: 21.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.275, allocations: 2.25 kB / 464.1 MB, free: 21.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001396/0.2764, allocations: 1.219 MB / 465.3 MB, free: 20.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.2764, allocations: 1.469 kB / 465.3 MB, free: 20.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002175/0.2766, allocations: 42.64 kB / 465.3 MB, free: 20.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.2766, allocations: 7.531 kB / 465.3 MB, free: 20.69 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.119e-05/0.2767, allocations: 22.77 kB / 465.4 MB, free: 20.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.643e-06/0.2767, allocations: 4.938 kB / 465.4 MB, free: 20.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.2767, allocations: 6.625 kB / 465.4 MB, free: 20.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007919/0.2775, allocations: 0.5555 MB / 465.9 MB, free: 20.31 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001101/0.2776, allocations: 137.8 kB / 466.1 MB, free: 20.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.903e-05/0.2776, allocations: 15.48 kB / 466.1 MB, free: 20.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002035/0.2779, allocations: 16.78 kB / 466.1 MB, free: 20.17 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.703e-05/0.278, allocations: 32.72 kB / 466.1 MB, free: 20.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.912e-05/0.278, allocations: 8.188 kB / 466.1 MB, free: 20.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002121/0.2782, allocations: 218.5 kB / 466.4 MB, free: 20.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2782, allocations: 0 / 466.4 MB, free: 20.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004252/0.2786, allocations: 116.3 kB / 466.5 MB, free: 20 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.001003/0.2796, allocations: 1.107 MB / 467.6 MB, free: 19.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000803/0.2805, allocations: 372.1 kB / 467.9 MB, free: 18.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.2805, allocations: 1.125 kB / 467.9 MB, free: 18.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000305/0.2808, allocations: 160.3 kB / 468.1 MB, free: 18.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006692/0.2815, allocations: 107 kB / 468.2 MB, free: 18.88 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004674/0.2861, allocations: 3.829 MB / 472 MB, free: 16.21 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/0.2865, allocations: 0.8306 MB / 472.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002735/0.2867, allocations: 58.88 kB / 472.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001987/0.2869, allocations: 156.1 kB / 473.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of SimCode: time 1.072e-06/0.287, allocations: 0 / 473.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01921/0.3062, allocations: 7.102 MB / 480.2 MB, free: 13.9 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000146/0.3064, allocations: 217.9 kB / 480.4 MB, free: 13.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.876/2.182, allocations: 0 / 480.4 MB, free: 13.64 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)