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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 114.5 kB / 18.88 MB, free: 3.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001737/0.001737, allocations: 195.5 kB / 22.17 MB, free: 5.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.512/1.512, allocations: 225.6 MB / 250.9 MB, free: 13.3 MB / 206.1 MB " [Timeout remaining time 178] 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.2021/0.2021, allocations: 31.56 MB / 337.7 MB, free: 9.625 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 71.88 kB / 472.6 MB, free: 6.18 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3949/0.3968, allocations: 59.5 MB / 0.5196 GB, free: 9.023 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.009736/0.4066, allocations: 6.867 MB / 0.5263 GB, free: 4.184 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002664/0.4092, allocations: 1.012 MB / 0.5273 GB, free: 3.438 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004512/0.4097, allocations: 21.88 kB / 0.5273 GB, free: 3.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003731/0.41, allocations: 103.5 kB / 0.5274 GB, free: 3.371 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002662/0.4103, allocations: 76.34 kB / 0.5275 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008152/0.4111, allocations: 247.1 kB / 0.5277 GB, free: 3.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007453/0.4119, allocations: 0.5699 MB / 0.5283 GB, free: 2.867 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004123/0.4123, allocations: 220.1 kB / 0.5285 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003722/0.4127, allocations: 228.5 kB / 0.5287 GB, free: 2.621 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004112/0.4131, allocations: 242.8 kB / 0.5289 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001344/0.4132, allocations: 57.06 kB / 0.529 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001951/0.4134, allocations: 67.36 kB / 0.529 GB, free: 2.477 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001957/0.4136, allocations: 128.5 kB / 0.5292 GB, free: 2.391 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002779/0.4139, allocations: 262.8 kB / 0.5294 GB, free: 2.211 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001124/0.415, allocations: 0.5717 MB / 0.53 GB, free: 1.934 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.825e-06/0.415, allocations: 1.375 kB / 0.53 GB, free: 1.934 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.415, allocations: 4 kB / 0.53 GB, free: 1.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.184e-05/0.415, allocations: 0 / 0.53 GB, free: 1.93 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.001682/0.4167, allocations: 0.8033 MB / 0.5308 GB, free: 1.309 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.869e-05/0.4168, allocations: 9.469 kB / 0.5308 GB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004889/0.4172, allocations: 80.47 kB / 0.5308 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007779/0.418, allocations: 404.6 kB / 0.5312 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.69e-05/0.4181, allocations: 44.84 kB / 0.5313 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001089/0.4182, allocations: 61.44 kB / 0.5313 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009074/0.4191, allocations: 0.49 MB / 0.5318 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.031e-05/0.4191, allocations: 6 kB / 0.5318 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.308e-05/0.4192, allocations: 20.66 kB / 0.5318 GB, free: 0.6562 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.653e-05/0.4192, allocations: 16.5 kB / 0.5319 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007556/0.4199, allocations: 307.6 kB / 0.5321 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002977/0.4229, allocations: 1.865 MB / 0.534 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000925/0.4238, allocations: 292.3 kB / 0.5342 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004177/0.4243, allocations: 167.4 kB / 0.5344 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.911e-05/0.4243, allocations: 4.562 kB / 0.5344 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.626e-05/0.4243, allocations: 46.45 kB / 0.5345 GB, free: 14.88 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.204e-06/0.4243, allocations: 0 / 0.5345 GB, free: 14.88 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001179/0.4255, allocations: 379.5 kB / 0.5348 GB, free: 14.72 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001416/0.4257, allocations: 159.9 kB / 0.535 GB, free: 14.54 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004817/0.4261, allocations: 319.2 kB / 0.5353 GB, free: 14.36 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.653e-05/0.4262, allocations: 51.72 kB / 0.5353 GB, free: 14.31 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000267/0.4265, allocations: 262.4 kB / 0.5356 GB, free: 14.1 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001083/0.4266, allocations: 105.5 kB / 0.5357 GB, free: 14.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001843/0.4268, allocations: 102 kB / 0.5358 GB, free: 13.96 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002202/0.427, allocations: 348.6 kB / 0.5361 GB, free: 13.63 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003981/0.4274, allocations: 149.3 kB / 0.5362 GB, free: 13.58 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005221/0.4279, allocations: 263.2 kB / 0.5365 GB, free: 13.4 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008005/0.4287, allocations: 367.1 kB / 0.5368 GB, free: 13.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.4287, allocations: 1.094 kB / 0.5369 GB, free: 13.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001105/0.4298, allocations: 477.6 kB / 0.5373 GB, free: 12.96 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.909e-05/0.4298, allocations: 13.61 kB / 0.5373 GB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.4299, allocations: 3.406 kB / 0.5373 GB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.891e-05/0.4299, allocations: 5.969 kB / 0.5373 GB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003229/0.4302, allocations: 69.2 kB / 0.5374 GB, free: 12.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.601e-05/0.4302, allocations: 14.19 kB / 0.5374 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003487/0.4306, allocations: 62.44 kB / 0.5375 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.775e-05/0.4306, allocations: 19.08 kB / 0.5375 GB, free: 12.9 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.0003048/0.4309, allocations: 195 kB / 0.5377 GB, free: 12.74 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001328/0.4311, allocations: 40.61 kB / 0.5377 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001104/0.4312, allocations: 41.45 kB / 0.5377 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.116e-06/0.4312, allocations: 3.562 kB / 0.5378 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.674e-05/0.4312, allocations: 10.05 kB / 0.5378 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/0.4312, allocations: 3 kB / 0.5378 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002136/0.4333, allocations: 1.221 MB / 0.539 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.4333, allocations: 2.312 kB / 0.539 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002463/0.4336, allocations: 45.84 kB / 0.539 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.148e-05/0.4336, allocations: 3.562 kB / 0.539 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.285e-05/0.4336, allocations: 11.19 kB / 0.539 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.161e-05/0.4337, allocations: 12.56 kB / 0.539 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.4337, allocations: 6.938 kB / 0.539 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001035/0.4347, allocations: 0.5543 MB / 0.5396 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001864/0.4349, allocations: 142.6 kB / 0.5397 GB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.771e-05/0.4349, allocations: 11.08 kB / 0.5397 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002168/0.4352, allocations: 21.97 kB / 0.5397 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.4353, allocations: 31.44 kB / 0.5398 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.209e-05/0.4353, allocations: 13.28 kB / 0.5398 GB, free: 11.24 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002719/0.4356, allocations: 209.1 kB / 0.54 GB, free: 11.13 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4356, allocations: 0 / 0.54 GB, free: 11.13 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000511/0.4361, allocations: 113.1 kB / 0.5401 GB, free: 11.09 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.0001601/0.4362, allocations: 119.3 kB / 0.5402 GB, free: 10.99 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008432/0.4371, allocations: 334 kB / 0.5405 GB, free: 10.89 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4371, allocations: 0 / 0.5405 GB, free: 10.89 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003455/0.4374, allocations: 153.1 kB / 0.5407 GB, free: 10.83 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006811/0.4381, allocations: 105.1 kB / 0.5408 GB, free: 10.79 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001625/0.4397, allocations: 0.8218 MB / 0.5416 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005663/0.4403, allocations: 0.8339 MB / 0.5424 GB, free: 9.539 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002468/0.4405, allocations: 58.28 kB / 0.5424 GB, free: 9.527 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001069/0.4407, allocations: 35.59 kB / 0.5425 GB, free: 9.52 MB / 398.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4407, allocations: 4 kB / 0.5425 GB, free: 9.516 MB / 398.1 MB Notification: Performance of Templates: time 0.01148/0.4521, allocations: 4.476 MB / 0.5469 GB, free: 7.777 MB / 398.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 gbode -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.266008536797017] Failed to read output from testmodel.py, exit status != 0: 0.4606426768004894 0.47635924100000004 0.057951542 Calling exit ...