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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009344/0.0009344, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009567/0.0009567, allocations: 169 kB / 23.02 MB, free: 1.551 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.001/1.001, allocations: 177.1 MB / 203.4 MB, free: 5.645 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo): time 0.106/0.106, allocations: 24.13 MB / 284.1 MB, free: 5.254 MB / 266.7 MB " [Timeout remaining time 180] Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain") translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 361.2 MB, free: 4.031 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.619e-05/2.787e-05, allocations: 9.969 kB / 361.2 MB, free: 4.023 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.00602/0.006048, allocations: 5.281 MB / 366.5 MB, free: 14.71 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001294/0.007342, allocations: 0.6076 MB / 367.1 MB, free: 14.1 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002648/0.007607, allocations: 15.88 kB / 367.1 MB, free: 14.09 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002791/0.007886, allocations: 83.27 kB / 367.2 MB, free: 14 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002108/0.008097, allocations: 67.31 kB / 367.2 MB, free: 13.94 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005993/0.008696, allocations: 199.4 kB / 367.4 MB, free: 13.74 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007994/0.009495, allocations: 470.9 kB / 367.9 MB, free: 13.28 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000285/0.00978, allocations: 154.8 kB / 368 MB, free: 13.13 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003449/0.01013, allocations: 291.4 kB / 368.3 MB, free: 12.85 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002406/0.01037, allocations: 143.6 kB / 368.5 MB, free: 12.71 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 6.358e-05/0.01043, allocations: 44 kB / 368.5 MB, free: 12.66 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001008/0.01053, allocations: 55.92 kB / 368.5 MB, free: 12.61 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.01064, allocations: 111.6 kB / 368.7 MB, free: 12.5 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001375/0.01077, allocations: 143.6 kB / 368.8 MB, free: 12.36 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004751/0.01125, allocations: 314.8 kB / 369.1 MB, free: 12.05 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.01125, allocations: 0 / 369.1 MB, free: 12.05 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.01125, allocations: 0 / 369.1 MB, free: 12.05 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.01126, allocations: 0 / 369.1 MB, free: 12.05 MB / 346.7 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.000945/0.01221, allocations: 0.7104 MB / 369.8 MB, free: 11.3 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.01225, allocations: 8.75 kB / 369.8 MB, free: 11.3 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002886/0.01254, allocations: 96.62 kB / 369.9 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003986/0.01294, allocations: 287.6 kB / 370.2 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.801e-05/0.01299, allocations: 37.38 kB / 370.2 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.908e-05/0.01307, allocations: 48.36 kB / 370.3 MB, free: 10.81 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005653/0.01363, allocations: 426.3 kB / 370.7 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.01365, allocations: 3.984 kB / 370.7 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.048e-05/0.01368, allocations: 16 kB / 370.7 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.421e-05/0.01369, allocations: 12 kB / 370.7 MB, free: 10.31 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002649/0.01395, allocations: 141.8 kB / 370.9 MB, free: 10.17 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001629/0.01558, allocations: 1.755 MB / 372.6 MB, free: 8.344 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004122/0.016, allocations: 228.2 kB / 372.8 MB, free: 8.07 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000148/0.01614, allocations: 106.2 kB / 373 MB, free: 7.953 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.715e-05/0.01616, allocations: 8 kB / 373 MB, free: 7.945 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.298e-05/0.01619, allocations: 49.33 kB / 373 MB, free: 7.887 MB / 346.7 MB Notification: Performance of pre-optimization done (n=28): time 1.974e-06/0.0162, allocations: 0 / 373 MB, free: 7.887 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.0004607/0.01666, allocations: 230.9 kB / 373.2 MB, free: 7.656 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.501e-05/0.01672, allocations: 162.2 kB / 373.4 MB, free: 7.461 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002399/0.01696, allocations: 296.2 kB / 373.7 MB, free: 7.156 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.592e-05/0.017, allocations: 37.7 kB / 373.7 MB, free: 7.113 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001419/0.01714, allocations: 263.3 kB / 374 MB, free: 6.852 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.758e-05/0.01721, allocations: 91.27 kB / 374.1 MB, free: 6.762 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.01734, allocations: 107.8 kB / 374.2 MB, free: 6.648 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000394/0.01773, allocations: 0.5156 MB / 374.7 MB, free: 6.121 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001668/0.0179, allocations: 64.95 kB / 374.7 MB, free: 6.055 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002324/0.01813, allocations: 249.5 kB / 375 MB, free: 5.75 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000309/0.01844, allocations: 274.4 kB / 375.3 MB, free: 5.422 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.01844, allocations: 0 / 375.3 MB, free: 5.422 MB / 346.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004957/0.01894, allocations: 341.7 kB / 375.6 MB, free: 5.082 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.01895, allocations: 7.062 kB / 375.6 MB, free: 5.078 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.01896, allocations: 8 kB / 375.6 MB, free: 5.07 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.355e-05/0.01899, allocations: 4 kB / 375.6 MB, free: 5.066 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001759/0.01916, allocations: 63.84 kB / 375.7 MB, free: 5.004 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.01917, allocations: 7.938 kB / 375.7 MB, free: 4.996 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001541/0.01933, allocations: 51.66 kB / 375.7 MB, free: 4.945 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.748e-05/0.01935, allocations: 19.98 kB / 375.8 MB, free: 4.926 MB / 346.7 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.0001399/0.01949, allocations: 201.7 kB / 375.9 MB, free: 4.719 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.682e-05/0.01959, allocations: 39.75 kB / 376 MB, free: 4.68 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.962e-05/0.01964, allocations: 42.27 kB / 376 MB, free: 4.641 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.01965, allocations: 4 kB / 376 MB, free: 4.637 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.01965, allocations: 3.984 kB / 376 MB, free: 4.633 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.01966, allocations: 0 / 376 MB, free: 4.633 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001121/0.02078, allocations: 1.154 MB / 377.2 MB, free: 3.375 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.02078, allocations: 8.062 kB / 377.2 MB, free: 3.367 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001341/0.02092, allocations: 31.92 kB / 377.2 MB, free: 3.336 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.597e-06/0.02092, allocations: 7.984 kB / 377.2 MB, free: 3.328 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.62e-05/0.02095, allocations: 16 kB / 377.3 MB, free: 3.312 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.263e-06/0.02096, allocations: 7.938 kB / 377.3 MB, free: 3.305 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.02096, allocations: 4 kB / 377.3 MB, free: 3.301 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004865/0.02145, allocations: 0.499 MB / 377.8 MB, free: 2.727 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.813e-05/0.02154, allocations: 47.72 kB / 377.8 MB, free: 2.68 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.384e-05/0.02157, allocations: 16 kB / 377.8 MB, free: 2.664 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.0217, allocations: 15.98 kB / 377.8 MB, free: 2.648 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.763e-05/0.02178, allocations: 39.83 kB / 377.9 MB, free: 2.609 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.519e-05/0.0218, allocations: 8 kB / 377.9 MB, free: 2.602 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001279/0.02192, allocations: 193.1 kB / 378.1 MB, free: 2.41 MB / 346.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02192, allocations: 0 / 378.1 MB, free: 2.41 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003976/0.02232, allocations: 95.78 kB / 378.2 MB, free: 2.316 MB / 346.7 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.0001166/0.02244, allocations: 113.2 kB / 378.3 MB, free: 2.199 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003934/0.02283, allocations: 228.6 kB / 378.5 MB, free: 1.973 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.02283, allocations: 0 / 378.5 MB, free: 1.973 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001284/0.02296, allocations: 88.77 kB / 378.6 MB, free: 1.883 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004983/0.02346, allocations: 85.64 kB / 378.7 MB, free: 1.805 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009857/0.02445, allocations: 0.7036 MB / 379.4 MB, free: 1.016 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.311e-05/0.02453, allocations: 108.8 kB / 379.5 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001407/0.02467, allocations: 47.2 kB / 379.5 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.022e-05/0.02475, allocations: 32.48 kB / 379.6 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of SimCode: time 8.12e-07/0.02475, allocations: 0 / 379.6 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of Templates: time 0.007832/0.03258, allocations: 3.921 MB / 383.5 MB, free: 12.98 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.makefile [Timeout 660] (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=240 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.1654913648962975]