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: translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001542/0.001542, allocations: 106.9 kB / 16.27 MB, free: 6.414 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.001807/0.001807, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.455/1.455, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.1663/0.1663, allocations: 31.17 MB / 322.2 MB, free: 280 kB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 62.77 kB / 389.6 MB, free: 38.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09621/0.09763, allocations: 56.38 MB / 446 MB, free: 3.121 MB / 318.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.008586/0.1062, allocations: 6.776 MB / 452.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002263/0.1086, allocations: 1.009 MB / 453.8 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006773/0.1093, allocations: 19.88 kB / 453.8 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004423/0.1098, allocations: 107 kB / 453.9 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003921/0.1102, allocations: 67.31 kB / 453.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007818/0.111, allocations: 235.5 kB / 454.2 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000793/0.1118, allocations: 0.5697 MB / 454.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005084/0.1123, allocations: 305.4 kB / 455 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003248/0.1127, allocations: 223.1 kB / 455.3 MB, free: 9.793 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003498/0.113, allocations: 242.8 kB / 455.5 MB, free: 9.555 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001123/0.1131, allocations: 56 kB / 455.6 MB, free: 9.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001423/0.1133, allocations: 64 kB / 455.6 MB, free: 9.438 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001437/0.1135, allocations: 135.6 kB / 455.7 MB, free: 9.305 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002715/0.1137, allocations: 254.7 kB / 456 MB, free: 9.055 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006184/0.1144, allocations: 0.5492 MB / 456.5 MB, free: 8.504 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.1144, allocations: 7.938 kB / 456.6 MB, free: 8.496 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.1144, allocations: 0 / 456.6 MB, free: 8.496 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.489e-05/0.1144, allocations: 3.938 kB / 456.6 MB, free: 8.492 MB / 334.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.001498/0.1159, allocations: 0.7838 MB / 457.3 MB, free: 7.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.116, allocations: 8.031 kB / 457.3 MB, free: 7.652 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003499/0.1163, allocations: 84.16 kB / 457.4 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005713/0.1169, allocations: 388.1 kB / 457.8 MB, free: 7.152 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.829e-05/0.117, allocations: 49.38 kB / 457.9 MB, free: 7.105 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.307e-05/0.1171, allocations: 59.94 kB / 457.9 MB, free: 7.047 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000864/0.1179, allocations: 0.4914 MB / 458.4 MB, free: 6.527 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.391e-05/0.118, allocations: 7.938 kB / 458.4 MB, free: 6.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.027e-05/0.118, allocations: 20 kB / 458.4 MB, free: 6.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.242e-05/0.118, allocations: 12 kB / 458.4 MB, free: 6.488 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006892/0.1187, allocations: 307.8 kB / 458.7 MB, free: 6.188 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002536/0.1213, allocations: 1.867 MB / 460.6 MB, free: 4.223 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006827/0.122, allocations: 305.8 kB / 460.9 MB, free: 3.891 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000328/0.1223, allocations: 185.5 kB / 461.1 MB, free: 3.699 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.1224, allocations: 4.234 kB / 461.1 MB, free: 3.695 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.044e-05/0.1224, allocations: 46.67 kB / 461.1 MB, free: 3.641 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 2.335e-06/0.1224, allocations: 0 / 461.1 MB, free: 3.641 MB / 334.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009598/0.1234, allocations: 383.1 kB / 461.5 MB, free: 3.262 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.975e-05/0.1235, allocations: 162.2 kB / 461.7 MB, free: 3.066 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003687/0.1238, allocations: 324.3 kB / 462 MB, free: 2.742 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.616e-05/0.1239, allocations: 41.7 kB / 462 MB, free: 2.695 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001864/0.1241, allocations: 257 kB / 462.3 MB, free: 2.438 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.731e-05/0.1242, allocations: 98.66 kB / 462.4 MB, free: 2.34 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001512/0.1243, allocations: 102.2 kB / 462.5 MB, free: 2.234 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.1245, allocations: 346.8 kB / 462.8 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003613/0.1249, allocations: 141 kB / 463 MB, free: 1.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004156/0.1253, allocations: 262 kB / 463.2 MB, free: 1.449 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006511/0.126, allocations: 370.7 kB / 463.6 MB, free: 1.043 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.685e-06/0.126, allocations: 0 / 463.6 MB, free: 1.043 MB / 334.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001056/0.127, allocations: 475.4 kB / 464 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.57e-05/0.1271, allocations: 7.938 kB / 464 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.1271, allocations: 4 kB / 464.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.316e-05/0.1271, allocations: 8 kB / 464.1 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003127/0.1274, allocations: 67.83 kB / 464.1 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.423e-05/0.1275, allocations: 11.94 kB / 464.1 MB, free: 484 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003336/0.1278, allocations: 75.66 kB / 464.2 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.419e-05/0.1279, allocations: 23.94 kB / 464.2 MB, free: 384 kB / 334.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.0002457/0.1281, allocations: 183.5 kB / 464.4 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001243/0.1283, allocations: 39.56 kB / 464.5 MB, free: 152 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.842e-05/0.1284, allocations: 47.84 kB / 464.5 MB, free: 104 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.1284, allocations: 4 kB / 464.5 MB, free: 100 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.1284, allocations: 3.938 kB / 464.5 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.1284, allocations: 0 / 464.5 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00176/0.1302, allocations: 1.22 MB / 465.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.501e-06/0.1302, allocations: 4 kB / 465.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002288/0.1304, allocations: 39.91 kB / 465.8 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.1304, allocations: 4 kB / 465.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.1e-05/0.1305, allocations: 15.94 kB / 465.8 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.1305, allocations: 4 kB / 465.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.1305, allocations: 4.266 kB / 465.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009271/0.1314, allocations: 0.5611 MB / 466.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001542/0.1316, allocations: 136.6 kB / 466.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.553e-05/0.1317, allocations: 8 kB / 466.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002142/0.1319, allocations: 19.92 kB / 466.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.509e-05/0.132, allocations: 43.89 kB / 466.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.958e-05/0.132, allocations: 12.12 kB / 466.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002332/0.1323, allocations: 211.1 kB / 466.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1323, allocations: 0 / 466.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004483/0.1327, allocations: 115.5 kB / 466.9 MB, free: 13.55 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.0001322/0.1329, allocations: 120.9 kB / 467 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007851/0.1336, allocations: 368.2 kB / 467.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.1337, allocations: 0 / 467.4 MB, free: 13.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000307/0.134, allocations: 145.1 kB / 467.5 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006316/0.1346, allocations: 107.3 kB / 467.6 MB, free: 12.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001457/0.1361, allocations: 0.8588 MB / 468.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004205/0.1365, allocations: 0.827 MB / 469.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.1366, allocations: 39.42 kB / 469.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1367, allocations: 0 / 469.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of Templates: time 0.00881/0.1455, allocations: 5.197 MB / 474.5 MB, free: 5.844 MB / 350.1 MB make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.makefile (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 & ./BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1)