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.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.001497/0.001497, allocations: 79.73 kB / 19.76 MB, free: 2.031 MB / 14.72 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.001586/0.001586, allocations: 156.8 kB / 23.01 MB, free: 4.941 MB / 14.72 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.344/1.344, allocations: 177.2 MB / 203.4 MB, free: 8.965 MB / 190.1 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.2099/0.2099, allocations: 24.14 MB / 283.9 MB, free: 8.934 MB / 270.1 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.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") [Timeout 660] "Notification: BusinessSimulation requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002132/0.002132, allocations: 67.89 kB / 421.2 MB, free: 13.8 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1118, allocations: 60.7 MB / 481.9 MB, free: 1 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.2016/0.3134, allocations: 6.361 MB / 488.2 MB, free: 40.51 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00193/0.3153, allocations: 0.9954 MB / 489.2 MB, free: 39.79 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002726/0.3156, allocations: 29.19 kB / 489.2 MB, free: 39.77 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002465/0.3159, allocations: 105 kB / 489.4 MB, free: 39.71 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001807/0.316, allocations: 77.16 kB / 489.4 MB, free: 39.66 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000473/0.3165, allocations: 236.3 kB / 489.7 MB, free: 39.52 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004044/0.3169, allocations: 0.5687 MB / 490.2 MB, free: 39.23 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002618/0.3172, allocations: 204.5 kB / 490.4 MB, free: 39.12 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001699/0.3173, allocations: 234.1 kB / 490.7 MB, free: 39 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001921/0.3175, allocations: 211.1 kB / 490.9 MB, free: 38.89 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.008e-05/0.3176, allocations: 55.19 kB / 490.9 MB, free: 38.89 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.564e-05/0.3177, allocations: 62.84 kB / 491 MB, free: 38.89 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.701e-05/0.3178, allocations: 126.7 kB / 491.1 MB, free: 38.81 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000135/0.3179, allocations: 221 kB / 491.3 MB, free: 38.67 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004286/0.3183, allocations: 0.5804 MB / 491.9 MB, free: 38.4 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.3183, allocations: 0 / 491.9 MB, free: 38.4 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3183, allocations: 1.688 kB / 491.9 MB, free: 38.4 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.806e-06/0.3183, allocations: 0 / 491.9 MB, free: 38.4 MB / 446.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.0009551/0.3193, allocations: 0.7277 MB / 492.6 MB, free: 37.88 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.785e-05/0.3193, allocations: 10.38 kB / 492.6 MB, free: 37.88 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002691/0.3196, allocations: 81.12 kB / 492.7 MB, free: 37.84 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004326/0.32, allocations: 336.7 kB / 493 MB, free: 37.6 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.791e-05/0.3201, allocations: 50.66 kB / 493.1 MB, free: 37.58 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.264e-05/0.3201, allocations: 61.56 kB / 493.2 MB, free: 37.55 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006588/0.3208, allocations: 0.5408 MB / 493.7 MB, free: 37.25 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.3208, allocations: 0 / 493.7 MB, free: 37.25 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.168e-05/0.3208, allocations: 19.31 kB / 493.7 MB, free: 37.23 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.3208, allocations: 13.31 kB / 493.7 MB, free: 37.23 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005348/0.3214, allocations: 306.2 kB / 494 MB, free: 37.13 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001569/0.3229, allocations: 1.573 MB / 495.6 MB, free: 35.96 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005249/0.3235, allocations: 288.8 kB / 495.9 MB, free: 35.78 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002435/0.3237, allocations: 167.7 kB / 496 MB, free: 35.7 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.937e-05/0.3237, allocations: 7.641 kB / 496.1 MB, free: 35.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.078e-05/0.3238, allocations: 42.02 kB / 496.1 MB, free: 35.65 MB / 446.1 MB Notification: Performance of pre-optimization done (n=31): time 1.503e-06/0.3238, allocations: 0 / 496.1 MB, free: 35.65 MB / 446.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007222/0.3245, allocations: 387.6 kB / 496.5 MB, free: 35.49 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.077e-05/0.3245, allocations: 168.3 kB / 496.6 MB, free: 35.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002155/0.3247, allocations: 282.6 kB / 496.9 MB, free: 35.13 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.265e-05/0.3248, allocations: 47.14 kB / 497 MB, free: 35.09 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.3249, allocations: 264.5 kB / 497.2 MB, free: 34.88 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.36e-05/0.3249, allocations: 99.06 kB / 497.3 MB, free: 34.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/0.325, allocations: 110.4 kB / 497.4 MB, free: 34.74 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.684e-05/0.3251, allocations: 345.5 kB / 497.8 MB, free: 34.41 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002742/0.3254, allocations: 145.3 kB / 497.9 MB, free: 34.36 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003094/0.3257, allocations: 285.4 kB / 498.2 MB, free: 34.16 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004723/0.3261, allocations: 366.4 kB / 498.5 MB, free: 33.93 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3262, allocations: 3.938 kB / 498.5 MB, free: 33.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0007079/0.3269, allocations: 474.9 kB / 499 MB, free: 33.73 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.332e-05/0.3269, allocations: 5.812 kB / 499 MB, free: 33.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.3269, allocations: 7.312 kB / 499 MB, free: 33.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.3269, allocations: 6 kB / 499 MB, free: 33.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002384/0.3271, allocations: 71.41 kB / 499.1 MB, free: 33.71 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.158e-06/0.3271, allocations: 10.11 kB / 499.1 MB, free: 33.71 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002319/0.3274, allocations: 59.56 kB / 499.2 MB, free: 33.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.947e-05/0.3274, allocations: 25.44 kB / 499.2 MB, free: 33.67 MB / 446.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.0001524/0.3276, allocations: 190.9 kB / 499.4 MB, free: 33.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.072e-05/0.3276, allocations: 31.28 kB / 499.4 MB, free: 33.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.96e-05/0.3277, allocations: 51.44 kB / 499.5 MB, free: 33.46 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.3277, allocations: 3.156 kB / 499.5 MB, free: 33.46 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.3277, allocations: 0 / 499.5 MB, free: 33.46 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.3277, allocations: 3.188 kB / 499.5 MB, free: 33.46 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00119/0.3289, allocations: 1.088 MB / 0.4888 GB, free: 32.65 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.768e-06/0.3289, allocations: 8.938 kB / 0.4888 GB, free: 32.65 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001966/0.3291, allocations: 43.42 kB / 0.4889 GB, free: 32.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.3291, allocations: 3.25 kB / 0.4889 GB, free: 32.64 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.118e-05/0.3291, allocations: 10.62 kB / 0.4889 GB, free: 32.64 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.3292, allocations: 14.53 kB / 0.4889 GB, free: 32.63 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.3292, allocations: 3.188 kB / 0.4889 GB, free: 32.63 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006761/0.3298, allocations: 0.5484 MB / 0.4894 GB, free: 32.28 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.363e-05/0.3299, allocations: 56.16 kB / 0.4895 GB, free: 32.25 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.763e-05/0.33, allocations: 10.44 kB / 0.4895 GB, free: 32.24 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001861/0.3301, allocations: 24.5 kB / 0.4895 GB, free: 32.23 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.608e-05/0.3302, allocations: 35.97 kB / 0.4896 GB, free: 32.22 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.3302, allocations: 12.97 kB / 0.4896 GB, free: 32.22 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001377/0.3304, allocations: 193.1 kB / 0.4897 GB, free: 32.11 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3304, allocations: 0 / 0.4897 GB, free: 32.11 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003796/0.3307, allocations: 116.7 kB / 0.4899 GB, free: 32.07 MB / 446.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 7.973e-05/0.3308, allocations: 118.4 kB / 0.49 GB, free: 31.97 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005739/0.3314, allocations: 339.9 kB / 0.4903 GB, free: 31.86 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3314, allocations: 0 / 0.4903 GB, free: 31.86 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002497/0.3317, allocations: 153.9 kB / 0.4904 GB, free: 31.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005378/0.3322, allocations: 97.38 kB / 0.4905 GB, free: 31.77 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001023/0.3332, allocations: 0.8383 MB / 0.4914 GB, free: 31.21 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001611/0.3334, allocations: 222.5 kB / 0.4916 GB, free: 31.12 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001727/0.3336, allocations: 67.56 kB / 0.4916 GB, free: 31.11 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.286e-05/0.3336, allocations: 32.97 kB / 0.4917 GB, free: 31.1 MB / 446.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3336, allocations: 0 / 0.4917 GB, free: 31.1 MB / 446.1 MB Notification: Performance of Templates: time 0.00779/0.3414, allocations: 4.482 MB / 0.496 GB, free: 30.55 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.makefile [Timeout 660] (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 -s ida -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.530276658944786] Failed to read output from testmodel.py, exit status != 0: 0.34895786200650036 0.357720101 0.036834423000000005 Calling exit ...