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: translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001045/0.001044, allocations: 108 kB / 15.6 MB, free: 132 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.001182/0.001182, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.3246/0.3246, allocations: 31.12 MB / 321.5 MB, free: 4.254 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001748/0.001748, allocations: 64.03 kB / 388.9 MB, free: 2.414 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2699/0.2716, allocations: 56.36 MB / 445.3 MB, free: 34.47 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.005845/0.2775, allocations: 6.791 MB / 452 MB, free: 29.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001383/0.2789, allocations: 0.9975 MB / 453 MB, free: 28.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002878/0.2792, allocations: 22.66 kB / 453.1 MB, free: 28.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002329/0.2795, allocations: 105.6 kB / 453.2 MB, free: 28.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001715/0.2796, allocations: 76.47 kB / 453.2 MB, free: 28.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004647/0.2801, allocations: 227.3 kB / 453.5 MB, free: 28.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003804/0.2805, allocations: 0.5637 MB / 454 MB, free: 28.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003312/0.2809, allocations: 302 kB / 454.3 MB, free: 28.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001616/0.281, allocations: 226.2 kB / 454.5 MB, free: 28.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001983/0.2812, allocations: 244 kB / 454.8 MB, free: 27.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.541e-05/0.2813, allocations: 54.59 kB / 454.8 MB, free: 27.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000103/0.2814, allocations: 66.44 kB / 454.9 MB, free: 27.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.897e-05/0.2815, allocations: 132.4 kB / 455 MB, free: 27.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000187/0.2817, allocations: 268.8 kB / 455.3 MB, free: 27.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004329/0.2821, allocations: 0.5489 MB / 455.8 MB, free: 27.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.2822, allocations: 3.938 kB / 455.8 MB, free: 27.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2822, allocations: 0 / 455.8 MB, free: 27.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.868e-06/0.2822, allocations: 1.344 kB / 455.8 MB, free: 27.41 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.001056/0.2832, allocations: 0.783 MB / 456.6 MB, free: 26.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.2833, allocations: 8.469 kB / 456.6 MB, free: 26.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003033/0.2836, allocations: 82.14 kB / 456.7 MB, free: 26.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003866/0.284, allocations: 388.2 kB / 457.1 MB, free: 26.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.609e-05/0.284, allocations: 44.56 kB / 457.1 MB, free: 26.45 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.754e-05/0.2841, allocations: 70.28 kB / 457.2 MB, free: 26.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007215/0.2848, allocations: 498 kB / 457.7 MB, free: 26.17 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.2849, allocations: 1.406 kB / 457.7 MB, free: 26.17 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.62e-05/0.2849, allocations: 20.16 kB / 457.7 MB, free: 26.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.455e-05/0.2849, allocations: 17.56 kB / 457.7 MB, free: 26.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005842/0.2855, allocations: 309.3 kB / 458 MB, free: 26.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001937/0.2875, allocations: 1.868 MB / 459.9 MB, free: 24.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005505/0.288, allocations: 305.1 kB / 460.2 MB, free: 24.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002603/0.2883, allocations: 185.3 kB / 460.4 MB, free: 24.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/0.2883, allocations: 3.688 kB / 460.4 MB, free: 24.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.626e-05/0.2883, allocations: 43.11 kB / 460.4 MB, free: 24.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.473e-06/0.2883, allocations: 0 / 460.4 MB, free: 24.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008146/0.2892, allocations: 387.4 kB / 460.8 MB, free: 24.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.372e-05/0.2892, allocations: 162.6 kB / 461 MB, free: 24.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003/0.2895, allocations: 316.9 kB / 461.3 MB, free: 23.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.479e-05/0.2896, allocations: 42.3 kB / 461.3 MB, free: 23.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001369/0.2897, allocations: 256.9 kB / 461.6 MB, free: 23.6 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.158e-05/0.2898, allocations: 100.4 kB / 461.7 MB, free: 23.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001397/0.2899, allocations: 100.6 kB / 461.8 MB, free: 23.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.458e-05/0.29, allocations: 347.5 kB / 462.1 MB, free: 23.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003251/0.2904, allocations: 144.5 kB / 462.2 MB, free: 23.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003618/0.2907, allocations: 263.4 kB / 462.5 MB, free: 22.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005525/0.2913, allocations: 368.6 kB / 462.9 MB, free: 22.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.2913, allocations: 1.375 kB / 462.9 MB, free: 22.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0008136/0.2921, allocations: 475.8 kB / 463.3 MB, free: 22.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.2921, allocations: 12.03 kB / 463.3 MB, free: 22.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.2922, allocations: 6.703 kB / 463.3 MB, free: 22.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.2922, allocations: 8.484 kB / 463.4 MB, free: 22.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002612/0.2924, allocations: 74.86 kB / 463.4 MB, free: 22.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.2925, allocations: 5.281 kB / 463.4 MB, free: 22.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002486/0.2927, allocations: 68.39 kB / 463.5 MB, free: 22.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.275e-05/0.2928, allocations: 22.84 kB / 463.5 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.0001689/0.2929, allocations: 194.1 kB / 463.7 MB, free: 22.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.2931, allocations: 37.28 kB / 463.7 MB, free: 22.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.875e-05/0.2931, allocations: 42.77 kB / 463.8 MB, free: 22.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.2931, allocations: 3.531 kB / 463.8 MB, free: 22.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.2932, allocations: 2.312 kB / 463.8 MB, free: 22.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.2932, allocations: 1.219 kB / 463.8 MB, free: 22.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001491/0.2947, allocations: 1.221 MB / 465 MB, free: 21.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.2947, allocations: 2.156 kB / 465 MB, free: 21.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000222/0.2949, allocations: 46.84 kB / 465.1 MB, free: 21.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/0.2949, allocations: 2.75 kB / 465.1 MB, free: 21.29 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.83e-05/0.295, allocations: 15.25 kB / 465.1 MB, free: 21.28 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.668e-06/0.295, allocations: 3.297 kB / 465.1 MB, free: 21.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.295, allocations: 7.297 kB / 465.1 MB, free: 21.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007846/0.2958, allocations: 0.5588 MB / 465.6 MB, free: 20.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001071/0.2959, allocations: 141.5 kB / 465.8 MB, free: 20.78 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.073e-05/0.2959, allocations: 12.08 kB / 465.8 MB, free: 20.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002019/0.2961, allocations: 25.48 kB / 465.8 MB, free: 20.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.628e-05/0.2962, allocations: 30.88 kB / 465.9 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.838e-05/0.2963, allocations: 13.03 kB / 465.9 MB, free: 20.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002011/0.2965, allocations: 214.9 kB / 466.1 MB, free: 20.63 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2965, allocations: 0 / 466.1 MB, free: 20.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004087/0.2969, allocations: 111.3 kB / 466.2 MB, free: 20.6 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.0001069/0.297, allocations: 121.3 kB / 466.3 MB, free: 20.49 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007347/0.2977, allocations: 364.7 kB / 466.7 MB, free: 20.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.2978, allocations: 1.125 kB / 466.7 MB, free: 20.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002941/0.2981, allocations: 159.8 kB / 466.8 MB, free: 20.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006045/0.2987, allocations: 101 kB / 466.9 MB, free: 20.28 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001179/0.2999, allocations: 0.8224 MB / 467.7 MB, free: 19.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002737/0.3001, allocations: 0.8316 MB / 468.6 MB, free: 19.03 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002333/0.3004, allocations: 57.03 kB / 468.6 MB, free: 19.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.654e-05/0.3005, allocations: 36.58 kB / 468.7 MB, free: 19.02 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.3005, allocations: 0 / 468.7 MB, free: 19.02 MB / 350.1 MB Notification: Performance of Templates: time 0.01164/0.3121, allocations: 4.334 MB / 473 MB, free: 18.68 MB / 350.1 MB make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.makefile (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 & ./BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1)