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.001508/0.001508, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.001677/0.001677, allocations: 159.5 kB / 23.01 MB, free: 4.602 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.953 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.2334/0.2334, allocations: 24.13 MB / 283.9 MB, free: 8.973 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.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: 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.002043/0.002043, allocations: 63.89 kB / 421.2 MB, free: 13.84 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1094, allocations: 60.69 MB / 481.8 MB, free: 1.035 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.2044/0.3138, allocations: 5.094 MB / 486.9 MB, free: 41.41 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009027/0.3147, allocations: 0.6117 MB / 487.5 MB, free: 40.98 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001799/0.3149, allocations: 12.97 kB / 487.6 MB, free: 40.98 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002252/0.3151, allocations: 79.41 kB / 487.6 MB, free: 40.93 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001633/0.3153, allocations: 71.56 kB / 487.7 MB, free: 40.88 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004411/0.3157, allocations: 190.9 kB / 487.9 MB, free: 40.77 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003308/0.3161, allocations: 458.1 kB / 488.3 MB, free: 40.55 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002253/0.3163, allocations: 145.2 kB / 488.5 MB, free: 40.48 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001536/0.3164, allocations: 200.5 kB / 488.7 MB, free: 40.38 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002043/0.3166, allocations: 172.6 kB / 488.8 MB, free: 40.29 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.275e-05/0.3167, allocations: 42.12 kB / 488.9 MB, free: 40.29 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.858e-05/0.3168, allocations: 59.48 kB / 488.9 MB, free: 40.29 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.536e-05/0.3169, allocations: 108.6 kB / 489.1 MB, free: 40.21 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001248/0.317, allocations: 165 kB / 489.2 MB, free: 40.11 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003879/0.3174, allocations: 466.9 kB / 489.7 MB, free: 39.9 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.3174, allocations: 7.172 kB / 489.7 MB, free: 39.9 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.3174, allocations: 0 / 489.7 MB, free: 39.9 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.296e-06/0.3174, allocations: 0 / 489.7 MB, free: 39.9 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.0009206/0.3183, allocations: 0.6247 MB / 490.3 MB, free: 39.44 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.691e-05/0.3183, allocations: 10.09 kB / 490.3 MB, free: 39.44 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002697/0.3186, allocations: 67.7 kB / 490.4 MB, free: 39.41 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003285/0.3189, allocations: 275.9 kB / 490.6 MB, free: 39.2 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.125e-05/0.319, allocations: 38.34 kB / 490.7 MB, free: 39.18 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.131e-05/0.319, allocations: 50.53 kB / 490.7 MB, free: 39.16 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005854/0.3196, allocations: 464 kB / 491.2 MB, free: 38.89 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/0.3196, allocations: 0 / 491.2 MB, free: 38.89 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.175e-05/0.3197, allocations: 22.16 kB / 491.2 MB, free: 38.87 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.194e-05/0.3197, allocations: 13.12 kB / 491.2 MB, free: 38.87 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004874/0.3202, allocations: 246.7 kB / 491.5 MB, free: 38.79 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001676/0.3218, allocations: 1.407 MB / 492.9 MB, free: 37.71 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005359/0.3224, allocations: 241.6 kB / 493.1 MB, free: 37.55 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002332/0.3226, allocations: 146.7 kB / 493.3 MB, free: 37.47 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.561e-05/0.3226, allocations: 7.094 kB / 493.3 MB, free: 37.47 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.852e-05/0.3226, allocations: 44.5 kB / 493.3 MB, free: 37.43 MB / 446.1 MB Notification: Performance of pre-optimization done (n=28): time 1.363e-06/0.3226, allocations: 0 / 493.3 MB, free: 37.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=28): time 0.0006569/0.3233, allocations: 343.2 kB / 493.6 MB, free: 37.28 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.731e-05/0.3233, allocations: 157.2 kB / 493.8 MB, free: 37.09 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001894/0.3235, allocations: 256.3 kB / 494 MB, free: 36.93 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.84e-05/0.3236, allocations: 45.44 kB / 494.1 MB, free: 36.89 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.976e-05/0.3236, allocations: 221 kB / 494.3 MB, free: 36.71 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.685e-05/0.3237, allocations: 83.95 kB / 494.4 MB, free: 36.64 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.3238, allocations: 102 kB / 494.5 MB, free: 36.59 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.872e-05/0.3239, allocations: 343.5 kB / 494.8 MB, free: 36.26 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002546/0.3241, allocations: 139.8 kB / 495 MB, free: 36.21 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003073/0.3244, allocations: 271.3 kB / 495.2 MB, free: 36.01 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004306/0.3248, allocations: 349 kB / 495.6 MB, free: 35.78 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3248, allocations: 3.156 kB / 495.6 MB, free: 35.78 MB / 446.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0006366/0.3255, allocations: 447.7 kB / 496 MB, free: 35.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.3255, allocations: 6.438 kB / 496 MB, free: 35.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.3255, allocations: 7.188 kB / 496 MB, free: 35.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.3255, allocations: 3.219 kB / 496 MB, free: 35.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00022/0.3257, allocations: 64.45 kB / 496.1 MB, free: 35.58 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.929e-06/0.3258, allocations: 14.78 kB / 496.1 MB, free: 35.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002187/0.326, allocations: 58.67 kB / 496.2 MB, free: 35.54 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.805e-05/0.326, allocations: 19.86 kB / 496.2 MB, free: 35.54 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 (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.0001419/0.3261, allocations: 183.3 kB / 496.3 MB, free: 35.39 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.591e-05/0.3262, allocations: 28.88 kB / 496.4 MB, free: 35.38 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.282e-05/0.3263, allocations: 36.31 kB / 496.4 MB, free: 35.35 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.3263, allocations: 3.344 kB / 496.4 MB, free: 35.35 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.3263, allocations: 3.938 kB / 496.4 MB, free: 35.35 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.3263, allocations: 3.422 kB / 496.4 MB, free: 35.35 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001082/0.3274, allocations: 1.063 MB / 497.5 MB, free: 34.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.3274, allocations: 6.719 kB / 497.5 MB, free: 34.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001763/0.3276, allocations: 40.59 kB / 497.5 MB, free: 34.53 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.3276, allocations: 10.41 kB / 497.5 MB, free: 34.52 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.257e-05/0.3276, allocations: 10.28 kB / 497.6 MB, free: 34.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.431e-06/0.3276, allocations: 9.031 kB / 497.6 MB, free: 34.52 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.3276, allocations: 7.125 kB / 497.6 MB, free: 34.51 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006268/0.3282, allocations: 0.5306 MB / 498.1 MB, free: 34.14 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.515e-05/0.3283, allocations: 51.19 kB / 498.1 MB, free: 34.12 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.666e-05/0.3283, allocations: 22.17 kB / 498.2 MB, free: 34.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001847/0.3285, allocations: 17.17 kB / 498.2 MB, free: 34.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.671e-05/0.3286, allocations: 39.48 kB / 498.2 MB, free: 34.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.559e-05/0.3286, allocations: 17.66 kB / 498.2 MB, free: 34.08 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001123/0.3287, allocations: 156.9 kB / 498.4 MB, free: 33.98 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3287, allocations: 0 / 498.4 MB, free: 33.98 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003821/0.3291, allocations: 101.8 kB / 498.5 MB, free: 33.95 MB / 446.1 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 8.067e-05/0.3292, allocations: 124.4 kB / 498.6 MB, free: 33.85 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005419/0.3297, allocations: 303.2 kB / 498.9 MB, free: 33.75 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3297, allocations: 3.156 kB / 498.9 MB, free: 33.75 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002277/0.33, allocations: 146.1 kB / 499.1 MB, free: 33.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005242/0.3305, allocations: 86.81 kB / 499.1 MB, free: 33.67 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008951/0.3314, allocations: 0.7295 MB / 499.9 MB, free: 33.16 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001292/0.3315, allocations: 187.1 kB / 0.4883 GB, free: 33.07 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001529/0.3317, allocations: 54.69 kB / 0.4884 GB, free: 33.06 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.237e-05/0.3317, allocations: 30.34 kB / 0.4884 GB, free: 33.05 MB / 446.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3317, allocations: 0 / 0.4884 GB, free: 33.05 MB / 446.1 MB Notification: Performance of Templates: time 0.006768/0.3385, allocations: 3.94 MB / 0.4923 GB, free: 32.56 MB / 446.1 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=480 -s ida -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.567677724990062] Failed to read output from testmodel.py, exit status != 0: 0.345913621946238 0.35466098399999996 0.035143813 Calling exit ...