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.0009129/0.0009129, allocations: 80.94 kB / 19.94 MB, free: 4.543 MB / 18.57 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.0009748/0.0009748, allocations: 181 kB / 23.36 MB, free: 1.129 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 0.9856/0.9856, allocations: 177.1 MB / 203.8 MB, free: 5.504 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.1178/0.1178, allocations: 24.14 MB / 284.4 MB, free: 5.16 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.513e-06/1.513e-06, allocations: 0 / 308.4 MB, free: 8.969 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.546e-05/2.697e-05, allocations: 6.297 kB / 308.4 MB, free: 8.965 MB / 282.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.006535/0.006562, allocations: 5.252 MB / 313.6 MB, free: 3.715 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001571/0.008132, allocations: 0.6579 MB / 314.3 MB, free: 3.062 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002109/0.008343, allocations: 15.88 kB / 314.3 MB, free: 3.047 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002044/0.008548, allocations: 75.33 kB / 314.4 MB, free: 2.973 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001683/0.008716, allocations: 76.03 kB / 314.4 MB, free: 2.898 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004694/0.009185, allocations: 193.3 kB / 314.6 MB, free: 2.711 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004108/0.009596, allocations: 478.3 kB / 315.1 MB, free: 2.246 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002247/0.009821, allocations: 161.9 kB / 315.2 MB, free: 2.086 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003031/0.01012, allocations: 299.2 kB / 315.5 MB, free: 1.793 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000179/0.0103, allocations: 136.6 kB / 315.7 MB, free: 1.66 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.524e-05/0.01035, allocations: 44 kB / 315.7 MB, free: 1.617 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.974e-05/0.01043, allocations: 52.83 kB / 315.8 MB, free: 1.566 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.449e-05/0.0105, allocations: 107.6 kB / 315.9 MB, free: 1.461 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.07e-05/0.01059, allocations: 139.7 kB / 316 MB, free: 1.324 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003231/0.01092, allocations: 298.8 kB / 316.3 MB, free: 1.031 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.01092, allocations: 0 / 316.3 MB, free: 1.031 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.01092, allocations: 0 / 316.3 MB, free: 1.031 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.01093, allocations: 0 / 316.3 MB, free: 1.031 MB / 282.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.0006735/0.0116, allocations: 0.578 MB / 316.9 MB, free: 444 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.01163, allocations: 8.75 kB / 316.9 MB, free: 436 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000204/0.01184, allocations: 84.84 kB / 317 MB, free: 352 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003135/0.01215, allocations: 257 kB / 317.2 MB, free: 68 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.559e-05/0.01219, allocations: 37.38 kB / 317.3 MB, free: 28 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.94e-05/0.01225, allocations: 48.42 kB / 317.3 MB, free: 15.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003316/0.01258, allocations: 383.6 kB / 317.7 MB, free: 15.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.01259, allocations: 0 / 317.7 MB, free: 15.56 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.892e-05/0.01261, allocations: 16 kB / 317.7 MB, free: 15.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.01262, allocations: 16 kB / 317.7 MB, free: 15.53 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001168/0.01273, allocations: 102.8 kB / 317.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001131/0.01387, allocations: 1.229 MB / 319 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001675/0.01403, allocations: 146.4 kB / 319.2 MB, free: 13.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.685e-05/0.0141, allocations: 75.39 kB / 319.3 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.295e-05/0.01411, allocations: 4 kB / 319.3 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.542e-05/0.01414, allocations: 42.5 kB / 319.3 MB, free: 13.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 2.204e-06/0.01414, allocations: 4 kB / 319.3 MB, free: 13.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=25): time 0.0002381/0.01438, allocations: 149.2 kB / 319.5 MB, free: 13.68 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.168e-05/0.01444, allocations: 166.2 kB / 319.6 MB, free: 13.48 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001424/0.01458, allocations: 256.7 kB / 319.9 MB, free: 13.22 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.214e-05/0.01462, allocations: 41.7 kB / 319.9 MB, free: 13.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.789e-05/0.01471, allocations: 222.3 kB / 320.1 MB, free: 12.96 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.348e-05/0.01476, allocations: 83.3 kB / 320.2 MB, free: 12.88 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.008e-05/0.01485, allocations: 106.1 kB / 320.3 MB, free: 12.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.585e-05/0.01494, allocations: 342.8 kB / 320.6 MB, free: 12.42 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.131e-05/0.01501, allocations: 44.97 kB / 320.7 MB, free: 12.38 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004015/0.01542, allocations: 210 kB / 320.9 MB, free: 12.11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002004/0.01562, allocations: 247.3 kB / 321.1 MB, free: 11.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.01562, allocations: 0 / 321.1 MB, free: 11.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0002478/0.01587, allocations: 264 kB / 321.4 MB, free: 11.55 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.01589, allocations: 8 kB / 321.4 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.0159, allocations: 4 kB / 321.4 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.01591, allocations: 4 kB / 321.4 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/0.01604, allocations: 63.84 kB / 321.5 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.954e-06/0.01605, allocations: 7.938 kB / 321.5 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.883e-05/0.01615, allocations: 55.98 kB / 321.5 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.846e-05/0.01616, allocations: 20 kB / 321.5 MB, free: 11.39 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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,inventory.outflow.stopInflow,producing.cloud.massPort.stopInflow,installedBase.inflow.stopOutflow,inventory.inflow.stopInflow,producing.cloud.massPort.stopOutflow,installedBase.inflow.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,cloud1.massPort.stopInflow,cloud1.massPort.stopOutflow) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * 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.0001236/0.01629, allocations: 161.8 kB / 321.7 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.716e-05/0.01634, allocations: 23.92 kB / 321.7 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.203e-05/0.01639, allocations: 34.27 kB / 321.8 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.01639, allocations: 4 kB / 321.8 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.01639, allocations: 4 kB / 321.8 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.0164, allocations: 11.86 kB / 321.8 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000649/0.01705, allocations: 0.7518 MB / 322.5 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.01705, allocations: 0 / 322.5 MB, free: 10.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.652e-05/0.01715, allocations: 31.92 kB / 322.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.01715, allocations: 0 / 322.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.684e-05/0.01717, allocations: 15.98 kB / 322.6 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.01717, allocations: 4 kB / 322.6 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.01717, allocations: 3.938 kB / 322.6 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002306/0.0174, allocations: 335.6 kB / 322.9 MB, free: 9.906 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.007e-05/0.01745, allocations: 35.73 kB / 323 MB, free: 9.871 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.272e-05/0.01748, allocations: 12 kB / 323 MB, free: 9.859 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.502e-05/0.01754, allocations: 8 kB / 323 MB, free: 9.852 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.03e-05/0.01759, allocations: 27.89 kB / 323 MB, free: 9.824 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.057e-06/0.0176, allocations: 8 kB / 323 MB, free: 9.816 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.845e-05/0.01765, allocations: 70.78 kB / 323.1 MB, free: 9.742 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01765, allocations: 0 / 323.1 MB, free: 9.742 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002465/0.0179, allocations: 91.78 kB / 323.2 MB, free: 9.652 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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.inflow.stopOutflow,producing.growing.portB.stopOutflow,inventory.outflow.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 (25): * Single equations (assignments): 25 * 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.0001039/0.018, allocations: 110.3 kB / 323.3 MB, free: 9.539 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002073/0.01821, allocations: 193.4 kB / 323.5 MB, free: 9.348 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.722e-06/0.01821, allocations: 5.062 kB / 323.5 MB, free: 9.344 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.138e-05/0.01828, allocations: 65.22 kB / 323.5 MB, free: 9.277 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002869/0.01856, allocations: 85.16 kB / 323.6 MB, free: 9.203 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007042/0.01927, allocations: 0.6426 MB / 324.3 MB, free: 8.5 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.994e-05/0.01933, allocations: 97.8 kB / 324.4 MB, free: 8.387 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001079/0.01944, allocations: 43.25 kB / 324.4 MB, free: 8.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001366/0.01957, allocations: 119.3 kB / 324.5 MB, free: 8.223 MB / 298.7 MB Notification: Performance of SimCode: time 6.41e-07/0.01957, allocations: 0 / 324.5 MB, free: 8.223 MB / 298.7 MB Notification: Performance of Templates: time 0.005941/0.02551, allocations: 3.706 MB / 328.2 MB, free: 4.621 MB / 298.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: 2.9914336539804935]