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.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.002069/0.002069, allocations: 110 kB / 18.93 MB, free: 2.945 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.002973/0.002973, allocations: 186.2 kB / 22.23 MB, free: 5.16 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.473/1.473, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/package.mo): time 0.309/0.309, allocations: 31.6 MB / 337.9 MB, free: 9.633 MB / 270.1 MB " [Timeout remaining time 179] Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation 2.2.0-main/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_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: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 67.89 kB / 472.9 MB, free: 6.086 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3619/0.3638, allocations: 59.54 MB / 0.5199 GB, free: 8.672 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.01071/0.3745, allocations: 6.874 MB / 0.5266 GB, free: 3.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002793/0.3773, allocations: 1.003 MB / 0.5276 GB, free: 3.078 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004699/0.3778, allocations: 30.03 kB / 0.5276 GB, free: 3.062 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004186/0.3782, allocations: 103.6 kB / 0.5277 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003258/0.3785, allocations: 80.62 kB / 0.5278 GB, free: 2.941 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.3796, allocations: 251 kB / 0.5281 GB, free: 2.785 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008439/0.3804, allocations: 0.5691 MB / 0.5286 GB, free: 2.492 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005397/0.381, allocations: 216.6 kB / 0.5288 GB, free: 2.371 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003806/0.3813, allocations: 236.3 kB / 0.529 GB, free: 2.246 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004021/0.3817, allocations: 241.9 kB / 0.5293 GB, free: 2.105 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001304/0.3819, allocations: 56.81 kB / 0.5293 GB, free: 2.105 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001794/0.3821, allocations: 62.27 kB / 0.5294 GB, free: 2.105 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001861/0.3822, allocations: 137.5 kB / 0.5295 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003187/0.3826, allocations: 260.6 kB / 0.5298 GB, free: 1.832 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00105/0.3836, allocations: 0.5718 MB / 0.5303 GB, free: 1.559 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.3836, allocations: 8 kB / 0.5303 GB, free: 1.551 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3836, allocations: 0.9375 kB / 0.5303 GB, free: 1.551 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.164e-05/0.3836, allocations: 0 / 0.5303 GB, free: 1.551 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.001785/0.3854, allocations: 0.7199 MB / 0.531 GB, free: 1.031 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.423e-05/0.3855, allocations: 14.23 kB / 0.531 GB, free: 1.027 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006079/0.3861, allocations: 84.62 kB / 0.5311 GB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000792/0.3869, allocations: 342.5 kB / 0.5315 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.06e-05/0.3869, allocations: 50.19 kB / 0.5315 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001271/0.3871, allocations: 57.52 kB / 0.5316 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001304/0.3884, allocations: 0.4941 MB / 0.532 GB, free: 456 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.093e-05/0.3884, allocations: 0 / 0.532 GB, free: 456 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.044e-05/0.3884, allocations: 26.16 kB / 0.5321 GB, free: 436 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.151e-05/0.3885, allocations: 12.88 kB / 0.5321 GB, free: 436 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001082/0.3895, allocations: 308 kB / 0.5324 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003375/0.3929, allocations: 1.817 MB / 0.5341 GB, free: 15 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008272/0.3937, allocations: 289.1 kB / 0.5344 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004105/0.3942, allocations: 167 kB / 0.5346 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.438e-05/0.3942, allocations: 8.469 kB / 0.5346 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.113e-05/0.3943, allocations: 43.3 kB / 0.5346 GB, free: 14.69 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.084e-06/0.3943, allocations: 0 / 0.5346 GB, free: 14.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001104/0.3954, allocations: 384.2 kB / 0.535 GB, free: 14.53 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.3955, allocations: 159.7 kB / 0.5352 GB, free: 14.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004513/0.3959, allocations: 319.5 kB / 0.5355 GB, free: 14.17 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.138e-05/0.396, allocations: 40 kB / 0.5355 GB, free: 14.13 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002497/0.3963, allocations: 267.8 kB / 0.5357 GB, free: 13.92 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.3964, allocations: 99.62 kB / 0.5358 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001766/0.3965, allocations: 107.9 kB / 0.5359 GB, free: 13.78 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.3967, allocations: 350.8 kB / 0.5363 GB, free: 13.45 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003818/0.3971, allocations: 150.2 kB / 0.5364 GB, free: 13.39 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004851/0.3976, allocations: 260.8 kB / 0.5367 GB, free: 13.22 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007676/0.3984, allocations: 365.4 kB / 0.537 GB, free: 12.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.022e-06/0.3984, allocations: 1.312 kB / 0.537 GB, free: 12.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001027/0.3994, allocations: 485.4 kB / 0.5375 GB, free: 12.78 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.3994, allocations: 11.31 kB / 0.5375 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.3994, allocations: 3.766 kB / 0.5375 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.481e-05/0.3994, allocations: 5.938 kB / 0.5375 GB, free: 12.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000323/0.3998, allocations: 73.52 kB / 0.5376 GB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.436e-05/0.3998, allocations: 7.578 kB / 0.5376 GB, free: 12.76 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003243/0.4001, allocations: 59.86 kB / 0.5376 GB, free: 12.72 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.619e-05/0.4002, allocations: 20.3 kB / 0.5377 GB, free: 12.72 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.0002935/0.4004, allocations: 197.5 kB / 0.5378 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001303/0.4006, allocations: 41.34 kB / 0.5379 GB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001109/0.4007, allocations: 45.3 kB / 0.5379 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.4007, allocations: 3.406 kB / 0.5379 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.522e-05/0.4007, allocations: 5.094 kB / 0.5379 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.458e-06/0.4007, allocations: 3.234 kB / 0.5379 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002081/0.4028, allocations: 1.182 MB / 0.5391 GB, free: 11.64 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-05/0.4028, allocations: 7.219 kB / 0.5391 GB, free: 11.63 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002521/0.4031, allocations: 46.11 kB / 0.5391 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.931e-06/0.4031, allocations: 2.781 kB / 0.5391 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.332e-05/0.4031, allocations: 11.66 kB / 0.5392 GB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.328e-06/0.4031, allocations: 12.22 kB / 0.5392 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/0.4031, allocations: 6.969 kB / 0.5392 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001068/0.4042, allocations: 0.5479 MB / 0.5397 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001455/0.4043, allocations: 65.53 kB / 0.5398 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.916e-05/0.4044, allocations: 11.73 kB / 0.5398 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.4046, allocations: 28.59 kB / 0.5398 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.4047, allocations: 28.33 kB / 0.5398 GB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.612e-05/0.4048, allocations: 13.89 kB / 0.5399 GB, free: 11.19 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002879/0.405, allocations: 210 kB / 0.5401 GB, free: 11.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.405, allocations: 0 / 0.5401 GB, free: 11.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005034/0.4055, allocations: 107.9 kB / 0.5402 GB, free: 11.04 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.000151/0.4057, allocations: 122.7 kB / 0.5403 GB, free: 10.94 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008373/0.4065, allocations: 337.7 kB / 0.5406 GB, free: 10.83 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.4065, allocations: 1.938 kB / 0.5406 GB, free: 10.83 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000339/0.4069, allocations: 152.3 kB / 0.5407 GB, free: 10.77 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006709/0.4075, allocations: 108.5 kB / 0.5408 GB, free: 10.73 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00194/0.4095, allocations: 0.8225 MB / 0.5417 GB, free: 10.18 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007244/0.4102, allocations: 0.8269 MB / 0.5425 GB, free: 9.48 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003236/0.4105, allocations: 62.22 kB / 0.5425 GB, free: 9.465 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.4107, allocations: 44.17 kB / 0.5426 GB, free: 9.449 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4107, allocations: 0 / 0.5426 GB, free: 9.449 MB / 398.1 MB Notification: Performance of Templates: time 0.01395/0.4246, allocations: 4.593 MB / 0.547 GB, free: 7.68 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: 5.313710080459714] Failed to read output from testmodel.py, exit status != 0: 0.4342243429273367 0.45067371100000003 0.063550903 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f5a9fc1d7b0>