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: translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain") translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001528/0.001528, 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.001836/0.001836, allocations: 197 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.413/1.413, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.4234/0.4234, allocations: 31.18 MB / 321.6 MB, free: 4.445 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001349/0.001349, allocations: 63.89 kB / 388.9 MB, free: 2.586 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2834, allocations: 56.36 MB / 445.3 MB, free: 34.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.004943/0.2884, allocations: 5.386 MB / 450.7 MB, free: 30.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009166/0.2893, allocations: 0.6101 MB / 451.3 MB, free: 30.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001777/0.2895, allocations: 11.81 kB / 451.3 MB, free: 30.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002084/0.2897, allocations: 79.41 kB / 451.4 MB, free: 30.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001576/0.2899, allocations: 67.23 kB / 451.4 MB, free: 30.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004259/0.2903, allocations: 187.4 kB / 451.6 MB, free: 30 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003264/0.2907, allocations: 460 kB / 452.1 MB, free: 29.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002562/0.2909, allocations: 214.5 kB / 452.3 MB, free: 29.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001435/0.2911, allocations: 186.8 kB / 452.5 MB, free: 29.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001725/0.2913, allocations: 194.6 kB / 452.7 MB, free: 29.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.4e-05/0.2913, allocations: 45.5 kB / 452.7 MB, free: 29.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.188e-05/0.2914, allocations: 54.59 kB / 452.8 MB, free: 29.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.813e-05/0.2915, allocations: 104 kB / 452.9 MB, free: 29.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000125/0.2916, allocations: 212.5 kB / 453.1 MB, free: 29.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003083/0.2919, allocations: 452.4 kB / 453.5 MB, free: 29.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.292, allocations: 4 kB / 453.5 MB, free: 29.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.292, allocations: 0 / 453.5 MB, free: 29.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.292, allocations: 4 kB / 453.5 MB, free: 29.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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.0008992/0.2929, allocations: 0.6776 MB / 454.2 MB, free: 28.51 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.2929, allocations: 8.062 kB / 454.2 MB, free: 28.51 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002848/0.2932, allocations: 66.97 kB / 454.3 MB, free: 28.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002865/0.2935, allocations: 322 kB / 454.6 MB, free: 28.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.065e-05/0.2936, allocations: 44.92 kB / 454.6 MB, free: 28.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.737e-05/0.2936, allocations: 52.7 kB / 454.7 MB, free: 28.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005275/0.2941, allocations: 423.7 kB / 455.1 MB, free: 27.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.2942, allocations: 0 / 455.1 MB, free: 27.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.88e-05/0.2942, allocations: 18.62 kB / 455.1 MB, free: 27.92 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.836e-06/0.2942, allocations: 10.5 kB / 455.1 MB, free: 27.92 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004485/0.2947, allocations: 250.5 kB / 455.4 MB, free: 27.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001532/0.2962, allocations: 1.654 MB / 457 MB, free: 26.58 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004656/0.2967, allocations: 258 kB / 457.3 MB, free: 26.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002385/0.2969, allocations: 160.1 kB / 457.4 MB, free: 26.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.811e-05/0.297, allocations: 3.875 kB / 457.4 MB, free: 26.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.858e-05/0.297, allocations: 45.5 kB / 457.5 MB, free: 26.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.272e-06/0.297, allocations: 0 / 457.5 MB, free: 26.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0006957/0.2977, allocations: 347.1 kB / 457.8 MB, free: 26.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.459e-05/0.2978, allocations: 166.8 kB / 458 MB, free: 25.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000212/0.298, allocations: 271.8 kB / 458.2 MB, free: 25.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.015e-05/0.298, allocations: 39.23 kB / 458.3 MB, free: 25.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.575e-05/0.2981, allocations: 213.3 kB / 458.5 MB, free: 25.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.087e-05/0.2982, allocations: 85.38 kB / 458.6 MB, free: 25.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/0.2983, allocations: 100.6 kB / 458.7 MB, free: 25.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.574e-05/0.2983, allocations: 338.8 kB / 459 MB, free: 25.12 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002829/0.2986, allocations: 150 kB / 459.1 MB, free: 25.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003029/0.2989, allocations: 238.8 kB / 459.4 MB, free: 24.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004679/0.2994, allocations: 349.7 kB / 459.7 MB, free: 24.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.2994, allocations: 0 / 459.7 MB, free: 24.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0007184/0.3002, allocations: 449.2 kB / 460.2 MB, free: 24.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.3002, allocations: 8.938 kB / 460.2 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.3002, allocations: 7.375 kB / 460.2 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.3002, allocations: 9.719 kB / 460.2 MB, free: 24.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002336/0.3005, allocations: 66.62 kB / 460.2 MB, free: 24.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.136e-05/0.3005, allocations: 6.953 kB / 460.3 MB, free: 24.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002396/0.3007, allocations: 55.78 kB / 460.3 MB, free: 24.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.182e-05/0.3008, allocations: 18.66 kB / 460.3 MB, free: 24.43 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.3009, allocations: 187.5 kB / 460.5 MB, free: 24.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.745e-05/0.301, allocations: 30.25 kB / 460.5 MB, free: 24.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.789e-05/0.3011, allocations: 36.05 kB / 460.6 MB, free: 24.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.3011, allocations: 7.969 kB / 460.6 MB, free: 24.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.3011, allocations: 1.094 kB / 460.6 MB, free: 24.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.3011, allocations: 3.953 kB / 460.6 MB, free: 24.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001295/0.3024, allocations: 1.176 MB / 461.8 MB, free: 23.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.3024, allocations: 3.562 kB / 461.8 MB, free: 23.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001834/0.3026, allocations: 44.86 kB / 461.8 MB, free: 23.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.172e-06/0.3026, allocations: 11.62 kB / 461.8 MB, free: 23.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.484e-05/0.3027, allocations: 12.73 kB / 461.8 MB, free: 23.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.3027, allocations: 8.312 kB / 461.8 MB, free: 23.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.3027, allocations: 4.5 kB / 461.8 MB, free: 23.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000685/0.3034, allocations: 0.5433 MB / 462.4 MB, free: 22.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.3035, allocations: 127.4 kB / 462.5 MB, free: 22.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.564e-05/0.3035, allocations: 20.84 kB / 462.5 MB, free: 22.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001913/0.3037, allocations: 29.94 kB / 462.6 MB, free: 22.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.814e-05/0.3038, allocations: 31.3 kB / 462.6 MB, free: 22.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.822e-05/0.3038, allocations: 12.94 kB / 462.6 MB, free: 22.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001474/0.304, allocations: 185.6 kB / 462.8 MB, free: 22.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.304, allocations: 0 / 462.8 MB, free: 22.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004017/0.3044, allocations: 88.09 kB / 462.9 MB, free: 22.62 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.0001275/0.3046, allocations: 124.9 kB / 463 MB, free: 22.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007115/0.3053, allocations: 329 kB / 463.3 MB, free: 22.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.3053, allocations: 0 / 463.3 MB, free: 22.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002853/0.3056, allocations: 141.4 kB / 463.5 MB, free: 22.37 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005954/0.3062, allocations: 92.89 kB / 463.5 MB, free: 22.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.3074, allocations: 0.7282 MB / 464.3 MB, free: 21.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002811/0.3077, allocations: 0.8011 MB / 465.1 MB, free: 21.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002172/0.3079, allocations: 57.36 kB / 465.1 MB, free: 21.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.807e-05/0.308, allocations: 34.03 kB / 465.2 MB, free: 21.09 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.308, allocations: 1.188 kB / 465.2 MB, free: 21.09 MB / 350.1 MB Notification: Performance of Templates: time 0.00985/0.3178, allocations: 3.727 MB / 468.9 MB, free: 20.82 MB / 350.1 MB make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.makefile (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 & ./BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1)