Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_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-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.SimpleProductionChain,fileNamePrefix="BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BusinessSimulation.Examples.SimpleProductionChain,fileNamePrefix="BusinessSimulation_dev_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.001114/0.001113, 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.001206/0.001206, allocations: 192.7 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.358/1.358, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.3424/0.3424, allocations: 31.17 MB / 321.3 MB, free: 4.645 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002185/0.002185, allocations: 59.91 kB / 388.6 MB, free: 2.895 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2742, allocations: 56.35 MB / 444.9 MB, free: 34.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.00603/0.2802, allocations: 5.721 MB / 450.6 MB, free: 30.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001778/0.2821, allocations: 0.6603 MB / 451.3 MB, free: 30.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002854/0.2824, allocations: 16.69 kB / 451.3 MB, free: 30.06 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002705/0.2827, allocations: 66.28 kB / 451.4 MB, free: 30.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001729/0.2829, allocations: 55.11 kB / 451.4 MB, free: 29.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004729/0.2834, allocations: 158.9 kB / 451.6 MB, free: 29.89 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003584/0.2837, allocations: 456.4 kB / 452 MB, free: 29.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002906/0.284, allocations: 228.7 kB / 452.2 MB, free: 29.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001546/0.2842, allocations: 187.4 kB / 452.4 MB, free: 29.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001764/0.2844, allocations: 193.5 kB / 452.6 MB, free: 29.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.44e-05/0.2844, allocations: 43.72 kB / 452.7 MB, free: 29.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.779e-05/0.2845, allocations: 50.03 kB / 452.7 MB, free: 29.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.729e-05/0.2846, allocations: 116.8 kB / 452.8 MB, free: 29.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001306/0.2848, allocations: 211.8 kB / 453 MB, free: 29.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003307/0.2851, allocations: 445 kB / 453.5 MB, free: 28.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.2851, allocations: 0 / 453.5 MB, free: 28.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.2851, allocations: 2.625 kB / 453.5 MB, free: 28.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.537e-06/0.2851, allocations: 3.938 kB / 453.5 MB, free: 28.92 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.0009124/0.2861, allocations: 0.6862 MB / 454.2 MB, free: 28.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/0.2861, allocations: 11.88 kB / 454.2 MB, free: 28.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.781e-05/0.2862, allocations: 74.53 kB / 454.2 MB, free: 28.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002606/0.2864, allocations: 68.78 kB / 454.3 MB, free: 28.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002915/0.2867, allocations: 315.5 kB / 454.6 MB, free: 28.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.224e-05/0.2868, allocations: 42.25 kB / 454.7 MB, free: 28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.204e-05/0.2868, allocations: 50.92 kB / 454.7 MB, free: 27.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005828/0.2874, allocations: 414.6 kB / 455.1 MB, free: 27.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.2874, allocations: 2.719 kB / 455.1 MB, free: 27.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.017e-05/0.2875, allocations: 18.91 kB / 455.1 MB, free: 27.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.2875, allocations: 11.56 kB / 455.1 MB, free: 27.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004496/0.2879, allocations: 245 kB / 455.4 MB, free: 27.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001591/0.2895, allocations: 1.667 MB / 457 MB, free: 26.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004982/0.2901, allocations: 245.2 kB / 457.3 MB, free: 26.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000245/0.2903, allocations: 161.4 kB / 457.4 MB, free: 26.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.2903, allocations: 2.812 kB / 457.4 MB, free: 26.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/0.2904, allocations: 44.5 kB / 457.5 MB, free: 26.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.453e-06/0.2904, allocations: 0 / 457.5 MB, free: 26.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0007452/0.2911, allocations: 346.5 kB / 457.8 MB, free: 25.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.68e-05/0.2912, allocations: 161.8 kB / 458 MB, free: 25.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002317/0.2914, allocations: 273.6 kB / 458.3 MB, free: 25.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.453e-05/0.2915, allocations: 43.33 kB / 458.3 MB, free: 25.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.2916, allocations: 212.7 kB / 458.5 MB, free: 25.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.443e-05/0.2916, allocations: 89.61 kB / 458.6 MB, free: 25.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/0.2918, allocations: 102.9 kB / 458.7 MB, free: 25.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.286e-05/0.2918, allocations: 345.9 kB / 459 MB, free: 24.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002825/0.2921, allocations: 135.7 kB / 459.2 MB, free: 24.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003383/0.2925, allocations: 246.4 kB / 459.4 MB, free: 24.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004908/0.293, allocations: 344.3 kB / 459.7 MB, free: 24.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.293, allocations: 0 / 459.7 MB, free: 24.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007281/0.2937, allocations: 462.2 kB / 460.2 MB, free: 24.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.2937, allocations: 8.344 kB / 460.2 MB, free: 24.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.2938, allocations: 3.781 kB / 460.2 MB, free: 24.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.2938, allocations: 9.406 kB / 460.2 MB, free: 24.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002423/0.294, allocations: 63.25 kB / 460.3 MB, free: 24.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.294, allocations: 5.531 kB / 460.3 MB, free: 24.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002327/0.2943, allocations: 51.56 kB / 460.3 MB, free: 24.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.194e-05/0.2943, allocations: 24.08 kB / 460.4 MB, free: 24.24 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 (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.0001504/0.2945, allocations: 185.1 kB / 460.5 MB, free: 24.08 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.533e-05/0.2946, allocations: 30.84 kB / 460.6 MB, free: 24.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.134e-05/0.2946, allocations: 35.48 kB / 460.6 MB, free: 24.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.2947, allocations: 8.406 kB / 460.6 MB, free: 24.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.862e-06/0.2947, allocations: 4.984 kB / 460.6 MB, free: 24.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.2947, allocations: 3.531 kB / 460.6 MB, free: 24.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001334/0.296, allocations: 1.184 MB / 461.8 MB, free: 23.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.296, allocations: 3.375 kB / 461.8 MB, free: 23.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001955/0.2962, allocations: 36.62 kB / 461.8 MB, free: 23.13 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.522e-06/0.2962, allocations: 4.312 kB / 461.8 MB, free: 23.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.649e-05/0.2963, allocations: 21.69 kB / 461.9 MB, free: 23.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.2963, allocations: 5.562 kB / 461.9 MB, free: 23.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.2963, allocations: 11.41 kB / 461.9 MB, free: 23.11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006909/0.297, allocations: 0.5277 MB / 462.4 MB, free: 22.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.379e-05/0.2971, allocations: 131 kB / 462.5 MB, free: 22.61 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.614e-05/0.2972, allocations: 14.97 kB / 462.6 MB, free: 22.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002052/0.2974, allocations: 22.08 kB / 462.6 MB, free: 22.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.24e-05/0.2975, allocations: 39.06 kB / 462.6 MB, free: 22.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.891e-05/0.2975, allocations: 12.25 kB / 462.6 MB, free: 22.58 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000148/0.2976, allocations: 183.3 kB / 462.8 MB, free: 22.47 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2976, allocations: 0 / 462.8 MB, free: 22.47 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004111/0.2981, allocations: 95.69 kB / 462.9 MB, free: 22.44 MB / 350.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.0008185/0.2989, allocations: 1.085 MB / 464 MB, free: 21.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000643/0.2995, allocations: 344.7 kB / 464.3 MB, free: 21.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.2996, allocations: 1.031 kB / 464.3 MB, free: 21.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002603/0.2998, allocations: 141.5 kB / 464.5 MB, free: 21.37 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005722/0.3004, allocations: 103 kB / 464.6 MB, free: 21.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003834/0.3042, allocations: 3.501 MB / 468.1 MB, free: 18.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002323/0.3045, allocations: 0.7914 MB / 468.8 MB, free: 18.08 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002158/0.3047, allocations: 51.86 kB / 468.9 MB, free: 18.07 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001709/0.3049, allocations: 124.6 kB / 469 MB, free: 17.99 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3049, allocations: 0 / 469 MB, free: 17.99 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02639/0.3313, allocations: 6.136 MB / 475.2 MB, free: 17.31 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001369/0.3315, allocations: 207.1 kB / 475.4 MB, free: 17.06 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.859/2.191, allocations: 0 / 475.4 MB, free: 17.06 MB / 350.1 MB (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 BusinessSimulation_dev_BusinessSimulation_Examples_SimpleProductionChain.fmu > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1)