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.001371/0.001371, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001511/0.001511, allocations: 219.1 kB / 23 MB, free: 4.914 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.47/1.47, allocations: 230.6 MB / 256.8 MB, free: 7.832 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.1883/0.1883, allocations: 31.54 MB / 344.7 MB, free: 3.812 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.002051/0.002051, allocations: 71.88 kB / 482 MB, free: 15.12 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3714/0.3735, allocations: 60.73 MB / 0.53 GB, free: 7.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.007606/0.3811, allocations: 6.366 MB / 0.5362 GB, free: 3.531 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002205/0.3833, allocations: 0.9901 MB / 0.5372 GB, free: 2.809 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004017/0.3837, allocations: 33.84 kB / 0.5372 GB, free: 2.789 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003283/0.384, allocations: 104.2 kB / 0.5373 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002355/0.3843, allocations: 84.39 kB / 0.5374 GB, free: 2.664 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006885/0.385, allocations: 232.1 kB / 0.5376 GB, free: 2.527 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006275/0.3856, allocations: 0.5684 MB / 0.5381 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000377/0.386, allocations: 201.5 kB / 0.5383 GB, free: 2.129 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002826/0.3863, allocations: 232.5 kB / 0.5386 GB, free: 2.008 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002575/0.3865, allocations: 211.5 kB / 0.5388 GB, free: 1.879 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.448e-05/0.3866, allocations: 62.06 kB / 0.5388 GB, free: 1.875 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001231/0.3867, allocations: 64.62 kB / 0.5389 GB, free: 1.871 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001118/0.3868, allocations: 136.2 kB / 0.539 GB, free: 1.758 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001461/0.387, allocations: 207.3 kB / 0.5392 GB, free: 1.613 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005519/0.3875, allocations: 0.5785 MB / 0.5398 GB, free: 1.168 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.3875, allocations: 0 / 0.5398 GB, free: 1.168 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3875, allocations: 0 / 0.5398 GB, free: 1.168 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.368e-05/0.3875, allocations: 0 / 0.5398 GB, free: 1.168 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.001098/0.3886, allocations: 0.7335 MB / 0.5405 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.3887, allocations: 10.34 kB / 0.5405 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002956/0.389, allocations: 79.03 kB / 0.5406 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004949/0.3895, allocations: 341.5 kB / 0.5409 GB, free: 248 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.02e-05/0.3895, allocations: 44.75 kB / 0.5409 GB, free: 228 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.644e-05/0.3896, allocations: 62.44 kB / 0.541 GB, free: 204 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008473/0.3904, allocations: 0.5413 MB / 0.5415 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.3905, allocations: 0 / 0.5415 GB, free: 15.81 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.532e-05/0.3905, allocations: 21.84 kB / 0.5416 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.467e-05/0.3905, allocations: 12.97 kB / 0.5416 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006963/0.3912, allocations: 311.7 kB / 0.5419 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002414/0.3936, allocations: 1.565 MB / 0.5434 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006991/0.3943, allocations: 283.8 kB / 0.5437 GB, free: 14.11 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000327/0.3946, allocations: 172.4 kB / 0.5438 GB, free: 14.01 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.459e-05/0.3947, allocations: 4.734 kB / 0.5438 GB, free: 14.01 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.814e-05/0.3947, allocations: 39.3 kB / 0.5439 GB, free: 13.96 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.553e-06/0.3947, allocations: 4 kB / 0.5439 GB, free: 13.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009541/0.3957, allocations: 391 kB / 0.5442 GB, free: 13.76 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/0.3958, allocations: 158 kB / 0.5444 GB, free: 13.57 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003656/0.3961, allocations: 291.6 kB / 0.5447 GB, free: 13.37 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.956e-05/0.3962, allocations: 39.3 kB / 0.5447 GB, free: 13.33 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000233/0.3964, allocations: 273.5 kB / 0.545 GB, free: 13.09 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/0.3965, allocations: 108.8 kB / 0.5451 GB, free: 13 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001811/0.3967, allocations: 103.8 kB / 0.5452 GB, free: 12.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001935/0.3969, allocations: 347.3 kB / 0.5455 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003521/0.3973, allocations: 147.5 kB / 0.5456 GB, free: 12.52 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004733/0.3977, allocations: 287.5 kB / 0.5459 GB, free: 12.28 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007053/0.3984, allocations: 374 kB / 0.5463 GB, free: 12.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.3984, allocations: 1.219 kB / 0.5463 GB, free: 12.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009542/0.3994, allocations: 479.7 kB / 0.5467 GB, free: 11.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.3994, allocations: 7.156 kB / 0.5467 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.3994, allocations: 7.906 kB / 0.5467 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.117e-05/0.3994, allocations: 9.219 kB / 0.5468 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002834/0.3997, allocations: 70.39 kB / 0.5468 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.3997, allocations: 5.688 kB / 0.5468 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002859/0.4, allocations: 61.56 kB / 0.5469 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.634e-05/0.4001, allocations: 18.53 kB / 0.5469 GB, free: 11.7 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.0002533/0.4003, allocations: 193.2 kB / 0.5471 GB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001081/0.4004, allocations: 30.88 kB / 0.5471 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.177e-05/0.4005, allocations: 46.11 kB / 0.5472 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.4005, allocations: 4.094 kB / 0.5472 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.071e-05/0.4005, allocations: 1.5 kB / 0.5472 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.4005, allocations: 5.297 kB / 0.5472 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001738/0.4023, allocations: 1.079 MB / 0.5482 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.4023, allocations: 7.219 kB / 0.5482 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002196/0.4025, allocations: 41.62 kB / 0.5483 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.4025, allocations: 2.75 kB / 0.5483 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.052e-05/0.4025, allocations: 13.33 kB / 0.5483 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.4025, allocations: 3.719 kB / 0.5483 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.4026, allocations: 10.72 kB / 0.5483 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001005/0.4036, allocations: 0.5541 MB / 0.5488 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001319/0.4037, allocations: 56.56 kB / 0.5489 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.889e-05/0.4037, allocations: 9.25 kB / 0.5489 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001988/0.4039, allocations: 20.97 kB / 0.5489 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.743e-05/0.404, allocations: 33.14 kB / 0.549 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-05/0.4041, allocations: 11.91 kB / 0.549 GB, free: 10.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000227/0.4043, allocations: 192 kB / 0.5492 GB, free: 9.938 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4043, allocations: 0 / 0.5492 GB, free: 9.938 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004726/0.4048, allocations: 116.2 kB / 0.5493 GB, free: 9.898 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.0001539/0.4049, allocations: 129.4 kB / 0.5494 GB, free: 9.781 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000749/0.4057, allocations: 342.5 kB / 0.5497 GB, free: 9.629 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.4057, allocations: 0.7812 kB / 0.5497 GB, free: 9.629 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003027/0.406, allocations: 139.5 kB / 0.5498 GB, free: 9.57 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006151/0.4066, allocations: 98.61 kB / 0.5499 GB, free: 9.523 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001507/0.4081, allocations: 0.8689 MB / 0.5508 GB, free: 8.883 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002564/0.4083, allocations: 221.5 kB / 0.551 GB, free: 8.738 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.4085, allocations: 43.14 kB / 0.551 GB, free: 8.723 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4085, allocations: 0 / 0.551 GB, free: 8.723 MB / 398.1 MB Notification: Performance of Templates: time 0.009294/0.4178, allocations: 5.298 MB / 0.5562 GB, free: 5.504 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: 7.669185400009155] Failed to read output from testmodel.py, exit status != 0: 0.4262809050269425 0.44209734799999995 0.05134025499999994 Calling exit ...