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.001166/0.001166, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.35/1.35, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.2971/0.2971, allocations: 31.13 MB / 321.5 MB, free: 4.352 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 59.89 kB / 389 MB, free: 2.395 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2631, allocations: 56.35 MB / 445.4 MB, free: 34.53 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.006042/0.2692, allocations: 6.792 MB / 452.1 MB, free: 29.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001735/0.271, allocations: 1.01 MB / 453.2 MB, free: 28.96 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003347/0.2713, allocations: 21 kB / 453.2 MB, free: 28.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002637/0.2716, allocations: 106.9 kB / 453.3 MB, free: 28.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001923/0.2718, allocations: 70.94 kB / 453.4 MB, free: 28.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000526/0.2723, allocations: 226.9 kB / 453.6 MB, free: 28.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000438/0.2728, allocations: 0.5679 MB / 454.1 MB, free: 28.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003736/0.2732, allocations: 302.4 kB / 454.4 MB, free: 28.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002004/0.2734, allocations: 226.5 kB / 454.7 MB, free: 28.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002195/0.2736, allocations: 239.8 kB / 454.9 MB, free: 28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.32e-05/0.2737, allocations: 56.34 kB / 454.9 MB, free: 28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001094/0.2738, allocations: 68.78 kB / 455 MB, free: 27.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001029/0.2739, allocations: 124.9 kB / 455.1 MB, free: 27.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001742/0.2741, allocations: 266.9 kB / 455.4 MB, free: 27.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004491/0.2745, allocations: 0.5541 MB / 456 MB, free: 27.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2746, allocations: 0 / 456 MB, free: 27.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2746, allocations: 0 / 456 MB, free: 27.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.968e-06/0.2746, allocations: 5.562 kB / 456 MB, free: 27.46 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.001145/0.2757, allocations: 0.7799 MB / 456.7 MB, free: 26.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.2758, allocations: 9.875 kB / 456.7 MB, free: 26.87 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.469e-05/0.2759, allocations: 92.59 kB / 456.8 MB, free: 26.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003098/0.2762, allocations: 78.91 kB / 456.9 MB, free: 26.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004303/0.2766, allocations: 388.9 kB / 457.3 MB, free: 26.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.968e-05/0.2767, allocations: 48.41 kB / 457.3 MB, free: 26.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.325e-05/0.2767, allocations: 53.66 kB / 457.4 MB, free: 26.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007151/0.2775, allocations: 0.4915 MB / 457.9 MB, free: 26.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.2775, allocations: 1.344 kB / 457.9 MB, free: 26.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.693e-05/0.2775, allocations: 21 kB / 457.9 MB, free: 26.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.2775, allocations: 12.31 kB / 457.9 MB, free: 26.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006202/0.2782, allocations: 308.7 kB / 458.2 MB, free: 26.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001965/0.2801, allocations: 1.884 MB / 460.1 MB, free: 24.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005886/0.2807, allocations: 302 kB / 460.4 MB, free: 24.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002857/0.281, allocations: 181.1 kB / 460.6 MB, free: 24.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.484e-05/0.2811, allocations: 11.45 kB / 460.6 MB, free: 24.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.174e-05/0.2811, allocations: 42.86 kB / 460.6 MB, free: 24.35 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.753e-06/0.2811, allocations: 3.938 kB / 460.6 MB, free: 24.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008524/0.282, allocations: 384.3 kB / 461 MB, free: 24.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.836e-05/0.282, allocations: 158.6 kB / 461.2 MB, free: 24 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003484/0.2824, allocations: 315.5 kB / 461.5 MB, free: 23.83 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.937e-05/0.2824, allocations: 44.31 kB / 461.5 MB, free: 23.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000148/0.2826, allocations: 258.8 kB / 461.8 MB, free: 23.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.584e-05/0.2827, allocations: 95.48 kB / 461.9 MB, free: 23.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001415/0.2828, allocations: 102.7 kB / 462 MB, free: 23.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.81e-05/0.2829, allocations: 349.1 kB / 462.3 MB, free: 23.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003378/0.2833, allocations: 149.1 kB / 462.4 MB, free: 23.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003916/0.2837, allocations: 255.3 kB / 462.7 MB, free: 22.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005887/0.2843, allocations: 367.5 kB / 463.1 MB, free: 22.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.329e-06/0.2843, allocations: 1.031 kB / 463.1 MB, free: 22.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.000927/0.2852, allocations: 485.9 kB / 463.5 MB, free: 22.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.2852, allocations: 5.969 kB / 463.5 MB, free: 22.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.2852, allocations: 2.656 kB / 463.5 MB, free: 22.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.2853, allocations: 5.625 kB / 463.5 MB, free: 22.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002801/0.2856, allocations: 70.55 kB / 463.6 MB, free: 22.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.643e-05/0.2856, allocations: 9.656 kB / 463.6 MB, free: 22.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002796/0.2859, allocations: 61.95 kB / 463.7 MB, free: 22.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.678e-05/0.2859, allocations: 18.81 kB / 463.7 MB, free: 22.39 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.0002127/0.2861, allocations: 199.8 kB / 463.9 MB, free: 22.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.2862, allocations: 36.02 kB / 463.9 MB, free: 22.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.363e-05/0.2863, allocations: 42.02 kB / 464 MB, free: 22.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.2863, allocations: 3.594 kB / 464 MB, free: 22.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.2864, allocations: 5.062 kB / 464 MB, free: 22.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.325e-06/0.2864, allocations: 2.453 kB / 464 MB, free: 22.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001479/0.2879, allocations: 1.218 MB / 465.2 MB, free: 21.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.2879, allocations: 2.438 kB / 465.2 MB, free: 21.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002208/0.2881, allocations: 46.47 kB / 465.2 MB, free: 21.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.2881, allocations: 3.75 kB / 465.3 MB, free: 21.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.595e-05/0.2881, allocations: 14.34 kB / 465.3 MB, free: 21.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/0.2882, allocations: 12 kB / 465.3 MB, free: 21.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.2882, allocations: 8.109 kB / 465.3 MB, free: 21.26 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008298/0.289, allocations: 0.5544 MB / 465.8 MB, free: 20.9 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001181/0.2891, allocations: 137.3 kB / 466 MB, free: 20.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.175e-05/0.2892, allocations: 11.34 kB / 466 MB, free: 20.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002073/0.2894, allocations: 24.61 kB / 466 MB, free: 20.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.075e-05/0.2895, allocations: 31.5 kB / 466 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.06e-05/0.2895, allocations: 14.61 kB / 466.1 MB, free: 20.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002224/0.2898, allocations: 218.3 kB / 466.3 MB, free: 20.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2898, allocations: 0 / 466.3 MB, free: 20.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004532/0.2902, allocations: 111.2 kB / 466.4 MB, free: 20.59 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.0009912/0.2912, allocations: 1.108 MB / 467.5 MB, free: 19.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007674/0.292, allocations: 374.7 kB / 467.9 MB, free: 19.56 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.292, allocations: 1.125 kB / 467.9 MB, free: 19.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003092/0.2923, allocations: 157.5 kB / 468 MB, free: 19.51 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000639/0.293, allocations: 108.2 kB / 468.1 MB, free: 19.46 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004489/0.2975, allocations: 3.651 MB / 471.8 MB, free: 16.99 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003091/0.2978, allocations: 0.8264 MB / 472.6 MB, free: 16.29 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002598/0.2981, allocations: 67.23 kB / 472.7 MB, free: 16.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002132/0.2983, allocations: 152.7 kB / 472.8 MB, free: 16.16 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.2983, allocations: 0 / 472.8 MB, free: 16.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02713/0.3254, allocations: 7.301 MB / 480.1 MB, free: 14.37 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.308/7.634, allocations: 7.469 kB / 480.1 MB, free: 14.37 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 & python3 -m fmpy simulate --output-file BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 BusinessSimulation_BusinessSimulation_Examples_SimpleProductionChainII.fmu > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1)