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.001376/0.001376, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001764/0.001764, allocations: 212.3 kB / 22.25 MB, free: 4.859 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.422/1.422, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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.1765/0.1765, allocations: 31.54 MB / 344 MB, free: 3.777 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.002337/0.002337, allocations: 59.91 kB / 481.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.327/0.3293, allocations: 60.72 MB / 0.5292 GB, free: 7.867 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.006468/0.3358, allocations: 6.36 MB / 0.5354 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001622/0.3374, allocations: 0.9985 MB / 0.5364 GB, free: 2.859 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002784/0.3377, allocations: 29.22 kB / 0.5364 GB, free: 2.844 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002728/0.338, allocations: 104.4 kB / 0.5365 GB, free: 2.785 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001922/0.3382, allocations: 80.45 kB / 0.5366 GB, free: 2.723 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005391/0.3387, allocations: 231.5 kB / 0.5368 GB, free: 2.586 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005146/0.3392, allocations: 0.5693 MB / 0.5374 GB, free: 2.289 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003217/0.3396, allocations: 202.6 kB / 0.5376 GB, free: 2.184 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002154/0.3398, allocations: 239.6 kB / 0.5378 GB, free: 2.055 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002113/0.34, allocations: 213.2 kB / 0.538 GB, free: 1.91 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.859e-05/0.34, allocations: 56.5 kB / 0.5381 GB, free: 1.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001/0.3401, allocations: 64.88 kB / 0.5381 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.312e-05/0.3402, allocations: 132.2 kB / 0.5383 GB, free: 1.797 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001279/0.3404, allocations: 211.1 kB / 0.5385 GB, free: 1.648 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004615/0.3408, allocations: 0.5823 MB / 0.539 GB, free: 1.199 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3408, allocations: 1.125 kB / 0.539 GB, free: 1.199 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3408, allocations: 0 / 0.539 GB, free: 1.199 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.498e-05/0.3408, allocations: 0 / 0.539 GB, free: 1.199 MB / 382.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.001029/0.3419, allocations: 0.7263 MB / 0.5397 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/0.3419, allocations: 11.22 kB / 0.5398 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002845/0.3422, allocations: 82.47 kB / 0.5398 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004744/0.3427, allocations: 332.9 kB / 0.5402 GB, free: 288 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.606e-05/0.3427, allocations: 49.61 kB / 0.5402 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.221e-05/0.3428, allocations: 58.44 kB / 0.5403 GB, free: 244 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007671/0.3435, allocations: 0.541 MB / 0.5408 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.3436, allocations: 1.375 kB / 0.5408 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.908e-05/0.3436, allocations: 20.12 kB / 0.5408 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.158e-05/0.3436, allocations: 13.75 kB / 0.5408 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006237/0.3442, allocations: 312.5 kB / 0.5411 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002145/0.3464, allocations: 1.569 MB / 0.5426 GB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006437/0.347, allocations: 294.1 kB / 0.5429 GB, free: 14.14 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003176/0.3473, allocations: 167.6 kB / 0.5431 GB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.068e-05/0.3474, allocations: 5.547 kB / 0.5431 GB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.97e-05/0.3474, allocations: 46.11 kB / 0.5431 GB, free: 13.99 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.573e-06/0.3474, allocations: 0 / 0.5431 GB, free: 13.99 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008599/0.3483, allocations: 395.5 kB / 0.5435 GB, free: 13.78 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.703e-05/0.3484, allocations: 158.8 kB / 0.5437 GB, free: 13.59 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003082/0.3487, allocations: 291 kB / 0.5439 GB, free: 13.39 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.957e-05/0.3487, allocations: 43.8 kB / 0.544 GB, free: 13.35 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001979/0.3489, allocations: 260.9 kB / 0.5442 GB, free: 13.12 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.932e-05/0.349, allocations: 108.8 kB / 0.5443 GB, free: 13.03 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001462/0.3491, allocations: 107.3 kB / 0.5444 GB, free: 12.95 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.3493, allocations: 348.1 kB / 0.5448 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003232/0.3496, allocations: 143 kB / 0.5449 GB, free: 12.55 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004373/0.3501, allocations: 289.1 kB / 0.5452 GB, free: 12.31 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006195/0.3507, allocations: 368.7 kB / 0.5455 GB, free: 12.05 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.3507, allocations: 1.594 kB / 0.5455 GB, free: 12.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0008595/0.3516, allocations: 472.1 kB / 0.546 GB, free: 11.82 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.3516, allocations: 5.938 kB / 0.546 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.3516, allocations: 7.75 kB / 0.546 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.822e-05/0.3516, allocations: 5.75 kB / 0.546 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002713/0.3519, allocations: 74.42 kB / 0.5461 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.238e-05/0.3519, allocations: 13.61 kB / 0.5461 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002638/0.3521, allocations: 57.52 kB / 0.5461 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.188e-05/0.3522, allocations: 18.28 kB / 0.5462 GB, free: 11.73 MB / 398.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.0002278/0.3524, allocations: 197.3 kB / 0.5464 GB, free: 11.57 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001113/0.3525, allocations: 31.09 kB / 0.5464 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.807e-05/0.3526, allocations: 45.02 kB / 0.5464 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.3526, allocations: 3.344 kB / 0.5464 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.3526, allocations: 4 kB / 0.5464 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.3526, allocations: 1.906 kB / 0.5464 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001609/0.3542, allocations: 1.085 MB / 0.5475 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.3542, allocations: 2.5 kB / 0.5475 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002127/0.3544, allocations: 50.34 kB / 0.5475 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.3545, allocations: 3.719 kB / 0.5475 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.758e-05/0.3545, allocations: 13.62 kB / 0.5476 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.037e-06/0.3545, allocations: 11.7 kB / 0.5476 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.3545, allocations: 2.344 kB / 0.5476 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008938/0.3554, allocations: 0.5529 MB / 0.5481 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001381/0.3555, allocations: 59.5 kB / 0.5482 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.722e-05/0.3556, allocations: 10 kB / 0.5482 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001965/0.3558, allocations: 16.14 kB / 0.5482 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.3559, allocations: 40.44 kB / 0.5482 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-05/0.3559, allocations: 9.5 kB / 0.5482 GB, free: 10.09 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002066/0.3561, allocations: 190.7 kB / 0.5484 GB, free: 9.965 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3561, allocations: 0 / 0.5484 GB, free: 9.965 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004327/0.3565, allocations: 116.2 kB / 0.5485 GB, free: 9.926 MB / 398.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 0.0001402/0.3567, allocations: 119.4 kB / 0.5486 GB, free: 9.816 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000744/0.3574, allocations: 336.8 kB / 0.549 GB, free: 9.668 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.3574, allocations: 1.438 kB / 0.549 GB, free: 9.668 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003226/0.3578, allocations: 145.5 kB / 0.5491 GB, free: 9.605 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006168/0.3584, allocations: 103.2 kB / 0.5492 GB, free: 9.555 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001415/0.3598, allocations: 0.8486 MB / 0.55 GB, free: 8.934 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002395/0.36, allocations: 225.8 kB / 0.5503 GB, free: 8.785 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000221/0.3602, allocations: 55.41 kB / 0.5503 GB, free: 8.758 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.896e-05/0.3603, allocations: 36.28 kB / 0.5503 GB, free: 8.746 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3603, allocations: 0 / 0.5503 GB, free: 8.746 MB / 398.1 MB Notification: Performance of Templates: time 0.0101/0.3704, allocations: 4.825 MB / 0.5551 GB, free: 5.973 MB / 398.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 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.821007024496794] Failed to read output from testmodel.py, exit status != 0: 0.379258468747139 0.39322924800000003 0.049415405 Calling exit ...