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.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.001519/0.001519, allocations: 84.44 kB / 19.76 MB, free: 2.023 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.00161/0.00161, allocations: 154.5 kB / 23.01 MB, free: 4.961 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.347/1.347, allocations: 177.2 MB / 203.4 MB, free: 8.977 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0/package.mo): time 0.1641/0.1641, allocations: 24.14 MB / 283.9 MB, free: 8.957 MB / 270.1 MB " [Timeout remaining time 180] 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.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_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_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.001996/0.001996, allocations: 64.17 kB / 421.2 MB, free: 13.8 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1111, allocations: 60.7 MB / 481.9 MB, free: 0.9844 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.2/0.3111, allocations: 6.367 MB / 488.2 MB, free: 40.54 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001266/0.3124, allocations: 0.9936 MB / 489.2 MB, free: 39.82 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002569/0.3126, allocations: 31.16 kB / 489.3 MB, free: 39.8 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002367/0.3129, allocations: 110.4 kB / 489.4 MB, free: 39.74 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001772/0.313, allocations: 71.61 kB / 489.4 MB, free: 39.68 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004795/0.3135, allocations: 237.8 kB / 489.7 MB, free: 39.55 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003987/0.3139, allocations: 0.564 MB / 490.2 MB, free: 39.26 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002742/0.3142, allocations: 211.1 kB / 490.4 MB, free: 39.15 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001695/0.3144, allocations: 230.2 kB / 490.7 MB, free: 39.03 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001939/0.3146, allocations: 206.6 kB / 490.9 MB, free: 38.93 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 6.081e-05/0.3146, allocations: 57.75 kB / 490.9 MB, free: 38.93 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.009e-05/0.3147, allocations: 67 kB / 491 MB, free: 38.92 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.886e-05/0.3148, allocations: 133.4 kB / 491.1 MB, free: 38.83 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001315/0.3149, allocations: 210.5 kB / 491.3 MB, free: 38.7 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003991/0.3153, allocations: 0.5796 MB / 491.9 MB, free: 38.43 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.3153, allocations: 0 / 491.9 MB, free: 38.43 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3153, allocations: 0 / 491.9 MB, free: 38.43 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.3153, allocations: 0 / 491.9 MB, free: 38.43 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.0009619/0.3163, allocations: 0.7283 MB / 492.6 MB, free: 37.91 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.773e-05/0.3163, allocations: 10.62 kB / 492.6 MB, free: 37.91 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002715/0.3166, allocations: 80.7 kB / 492.7 MB, free: 37.88 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004286/0.317, allocations: 340.2 kB / 493.1 MB, free: 37.63 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.356e-05/0.3171, allocations: 46.38 kB / 493.1 MB, free: 37.61 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.27e-05/0.3171, allocations: 61.84 kB / 493.2 MB, free: 37.59 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006406/0.3178, allocations: 0.5432 MB / 493.7 MB, free: 37.28 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.881e-05/0.3178, allocations: 3.938 kB / 493.7 MB, free: 37.27 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.266e-05/0.3178, allocations: 22.19 kB / 493.7 MB, free: 37.26 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.3178, allocations: 12.31 kB / 493.7 MB, free: 37.26 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005407/0.3184, allocations: 309 kB / 494 MB, free: 37.16 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001537/0.3199, allocations: 1.558 MB / 495.6 MB, free: 36 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005183/0.3204, allocations: 295.2 kB / 495.9 MB, free: 35.82 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002404/0.3207, allocations: 161.7 kB / 496 MB, free: 35.74 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.912e-05/0.3207, allocations: 7.578 kB / 496.1 MB, free: 35.73 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.493e-05/0.3207, allocations: 44.45 kB / 496.1 MB, free: 35.69 MB / 446.1 MB Notification: Performance of pre-optimization done (n=31): time 1.483e-06/0.3207, allocations: 0 / 496.1 MB, free: 35.69 MB / 446.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007068/0.3214, allocations: 389.1 kB / 496.5 MB, free: 35.53 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.399e-05/0.3214, allocations: 161.4 kB / 496.6 MB, free: 35.34 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002103/0.3217, allocations: 291.8 kB / 496.9 MB, free: 35.17 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.923e-05/0.3217, allocations: 40.3 kB / 497 MB, free: 35.13 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.3218, allocations: 268.3 kB / 497.2 MB, free: 34.91 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.559e-05/0.3218, allocations: 104.5 kB / 497.3 MB, free: 34.84 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001069/0.3219, allocations: 100.5 kB / 497.4 MB, free: 34.78 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.247e-05/0.322, allocations: 353.1 kB / 497.8 MB, free: 34.45 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002788/0.3223, allocations: 144.3 kB / 497.9 MB, free: 34.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003057/0.3226, allocations: 281.2 kB / 498.2 MB, free: 34.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004691/0.3231, allocations: 368.6 kB / 498.5 MB, free: 33.97 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.3231, allocations: 3.938 kB / 498.5 MB, free: 33.96 MB / 446.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0006911/0.3237, allocations: 476.7 kB / 499 MB, free: 33.77 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.345e-05/0.3238, allocations: 9.688 kB / 499 MB, free: 33.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.3238, allocations: 6.844 kB / 499 MB, free: 33.76 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.3238, allocations: 6.094 kB / 499 MB, free: 33.76 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002374/0.324, allocations: 73.94 kB / 499.1 MB, free: 33.75 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.857e-06/0.324, allocations: 8.219 kB / 499.1 MB, free: 33.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002262/0.3243, allocations: 60.22 kB / 499.2 MB, free: 33.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.965e-05/0.3243, allocations: 26.92 kB / 499.2 MB, free: 33.7 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.0001446/0.3244, allocations: 188.4 kB / 499.4 MB, free: 33.55 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.912e-05/0.3245, allocations: 32.69 kB / 499.4 MB, free: 33.54 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.714e-05/0.3246, allocations: 43.67 kB / 499.5 MB, free: 33.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.3246, allocations: 3.125 kB / 499.5 MB, free: 33.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3246, allocations: 4 kB / 499.5 MB, free: 33.49 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.3246, allocations: 6.484 kB / 499.5 MB, free: 33.49 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001142/0.3257, allocations: 1.09 MB / 0.4888 GB, free: 32.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.3257, allocations: 5.062 kB / 0.4888 GB, free: 32.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001971/0.3259, allocations: 47.92 kB / 0.4889 GB, free: 32.67 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/0.3259, allocations: 6.312 kB / 0.4889 GB, free: 32.67 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.157e-05/0.326, allocations: 10.56 kB / 0.4889 GB, free: 32.67 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.326, allocations: 6.344 kB / 0.4889 GB, free: 32.67 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.326, allocations: 0 / 0.4889 GB, free: 32.67 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006594/0.3266, allocations: 0.5509 MB / 0.4894 GB, free: 32.31 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.005e-05/0.3267, allocations: 57.55 kB / 0.4895 GB, free: 32.28 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.823e-05/0.3268, allocations: 18.75 kB / 0.4895 GB, free: 32.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000187/0.3269, allocations: 17.3 kB / 0.4895 GB, free: 32.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.409e-05/0.327, allocations: 38.06 kB / 0.4896 GB, free: 32.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.66e-05/0.327, allocations: 13.06 kB / 0.4896 GB, free: 32.25 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.000132/0.3272, allocations: 188.4 kB / 0.4898 GB, free: 32.14 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3272, allocations: 0 / 0.4898 GB, free: 32.14 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000353/0.3275, allocations: 116.5 kB / 0.4899 GB, free: 32.11 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 8.089e-05/0.3276, allocations: 121 kB / 0.49 GB, free: 32 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005617/0.3282, allocations: 335.4 kB / 0.4903 GB, free: 31.89 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.3282, allocations: 3.031 kB / 0.4903 GB, free: 31.89 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002464/0.3284, allocations: 153.3 kB / 0.4905 GB, free: 31.84 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000525/0.3289, allocations: 104.2 kB / 0.4905 GB, free: 31.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009237/0.3299, allocations: 0.8304 MB / 0.4914 GB, free: 31.25 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001478/0.33, allocations: 224.6 kB / 0.4916 GB, free: 31.16 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001627/0.3302, allocations: 51.95 kB / 0.4916 GB, free: 31.15 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.959e-05/0.3303, allocations: 45.25 kB / 0.4917 GB, free: 31.14 MB / 446.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3303, allocations: 3.938 kB / 0.4917 GB, free: 31.13 MB / 446.1 MB Notification: Performance of Templates: time 0.007491/0.3377, allocations: 4.47 MB / 0.496 GB, free: 30.59 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.makefile [Timeout 660] (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 -s ida -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.4644261070061475] Failed to read output from testmodel.py, exit status != 0: 0.34514810505788773 0.35462639 0.036488144 Calling exit ...