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.001585/0.001585, allocations: 115.7 kB / 18.89 MB, free: 2.898 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.001528/0.001528, allocations: 200.2 kB / 22.17 MB, free: 5.211 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.467/1.467, allocations: 225.6 MB / 250.9 MB, free: 13.26 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.1756/0.1756, allocations: 31.61 MB / 337.7 MB, free: 9.75 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-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.002001/0.002001, allocations: 67.89 kB / 472.6 MB, free: 6.23 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3652/0.3672, allocations: 59.5 MB / 0.5196 GB, free: 9.008 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.007264/0.3744, allocations: 6.876 MB / 0.5263 GB, free: 4.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002148/0.3766, allocations: 0.9986 MB / 0.5273 GB, free: 3.426 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004166/0.377, allocations: 21.94 kB / 0.5273 GB, free: 3.418 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003222/0.3773, allocations: 104 kB / 0.5274 GB, free: 3.359 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002394/0.3775, allocations: 80.22 kB / 0.5275 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000671/0.3782, allocations: 242.8 kB / 0.5277 GB, free: 3.148 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006022/0.3788, allocations: 0.575 MB / 0.5283 GB, free: 2.852 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003726/0.3792, allocations: 219.9 kB / 0.5285 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002596/0.3795, allocations: 227 kB / 0.5287 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002695/0.3797, allocations: 239.3 kB / 0.529 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.377e-05/0.3798, allocations: 57.84 kB / 0.529 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001111/0.3799, allocations: 62.3 kB / 0.5291 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001195/0.38, allocations: 133.7 kB / 0.5292 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001789/0.3802, allocations: 269.9 kB / 0.5295 GB, free: 2.191 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006821/0.3809, allocations: 0.5734 MB / 0.53 GB, free: 1.914 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.3809, allocations: 0 / 0.53 GB, free: 1.914 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3809, allocations: 0.625 kB / 0.53 GB, free: 1.914 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.579e-05/0.3809, allocations: 4 kB / 0.53 GB, free: 1.91 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.001283/0.3822, allocations: 0.7977 MB / 0.5308 GB, free: 1.293 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.93e-05/0.3822, allocations: 9.281 kB / 0.5308 GB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003323/0.3826, allocations: 81.23 kB / 0.5309 GB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005342/0.3831, allocations: 404.4 kB / 0.5313 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.095e-05/0.3832, allocations: 49.53 kB / 0.5313 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.529e-05/0.3832, allocations: 61.73 kB / 0.5314 GB, free: 0.9023 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008175/0.3841, allocations: 0.4942 MB / 0.5319 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.682e-05/0.3841, allocations: 5.25 kB / 0.5319 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.057e-05/0.3841, allocations: 20.62 kB / 0.5319 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.535e-05/0.3841, allocations: 16.83 kB / 0.5319 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006767/0.3848, allocations: 304 kB / 0.5322 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002559/0.3874, allocations: 1.864 MB / 0.534 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007863/0.3882, allocations: 292.4 kB / 0.5343 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003543/0.3885, allocations: 169.3 kB / 0.5345 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.98e-05/0.3885, allocations: 8.922 kB / 0.5345 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.908e-05/0.3886, allocations: 45.77 kB / 0.5345 GB, free: 14.85 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.004e-06/0.3886, allocations: 0 / 0.5345 GB, free: 14.85 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001017/0.3896, allocations: 384.4 kB / 0.5349 GB, free: 14.7 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/0.3897, allocations: 159.8 kB / 0.535 GB, free: 14.51 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004145/0.3901, allocations: 318.2 kB / 0.5353 GB, free: 14.33 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.369e-05/0.3902, allocations: 44.16 kB / 0.5354 GB, free: 14.29 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002309/0.3904, allocations: 263.2 kB / 0.5356 GB, free: 14.08 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.999e-05/0.3905, allocations: 101 kB / 0.5357 GB, free: 14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001623/0.3907, allocations: 105.5 kB / 0.5358 GB, free: 13.94 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001923/0.3909, allocations: 352.5 kB / 0.5362 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004198/0.3913, allocations: 146.5 kB / 0.5363 GB, free: 13.56 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00046/0.3918, allocations: 262.6 kB / 0.5365 GB, free: 13.38 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006491/0.3924, allocations: 370.2 kB / 0.5369 GB, free: 13.14 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.3924, allocations: 0.9375 kB / 0.5369 GB, free: 13.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009354/0.3933, allocations: 478 kB / 0.5374 GB, free: 12.94 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.3934, allocations: 10.62 kB / 0.5374 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.3934, allocations: 4.188 kB / 0.5374 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.063e-05/0.3934, allocations: 5.578 kB / 0.5374 GB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002924/0.3937, allocations: 70.38 kB / 0.5374 GB, free: 12.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.412e-05/0.3937, allocations: 14.33 kB / 0.5375 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003135/0.394, allocations: 61.2 kB / 0.5375 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.845e-05/0.3941, allocations: 20.09 kB / 0.5375 GB, free: 12.88 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.0002501/0.3943, allocations: 198.5 kB / 0.5377 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.3944, allocations: 41.42 kB / 0.5378 GB, free: 12.69 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.254e-05/0.3945, allocations: 39.83 kB / 0.5378 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.231e-06/0.3945, allocations: 4.719 kB / 0.5378 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.3945, allocations: 5.094 kB / 0.5378 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.664e-06/0.3945, allocations: 2.953 kB / 0.5378 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001908/0.3964, allocations: 1.219 MB / 0.539 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.3964, allocations: 3.406 kB / 0.539 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002268/0.3967, allocations: 44.19 kB / 0.5391 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.3967, allocations: 5.062 kB / 0.5391 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.849e-05/0.3967, allocations: 10.88 kB / 0.5391 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.792e-06/0.3967, allocations: 8.188 kB / 0.5391 GB, free: 11.75 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.3967, allocations: 6.531 kB / 0.5391 GB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009417/0.3977, allocations: 0.5517 MB / 0.5396 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001687/0.3978, allocations: 138.6 kB / 0.5398 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.062e-05/0.3979, allocations: 10.73 kB / 0.5398 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002111/0.3981, allocations: 21.2 kB / 0.5398 GB, free: 11.24 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.042e-05/0.3982, allocations: 39.36 kB / 0.5398 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.379e-05/0.3982, allocations: 14.33 kB / 0.5398 GB, free: 11.22 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002484/0.3985, allocations: 210.2 kB / 0.54 GB, free: 11.11 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3985, allocations: 0 / 0.54 GB, free: 11.11 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004692/0.3989, allocations: 111.5 kB / 0.5401 GB, free: 11.07 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.0001368/0.3991, allocations: 117 kB / 0.5403 GB, free: 10.98 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007562/0.3998, allocations: 336.9 kB / 0.5406 GB, free: 10.87 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3998, allocations: 1.062 kB / 0.5406 GB, free: 10.87 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003571/0.4002, allocations: 149.8 kB / 0.5407 GB, free: 10.82 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006264/0.4008, allocations: 107.5 kB / 0.5408 GB, free: 10.77 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001524/0.4023, allocations: 0.822 MB / 0.5416 GB, free: 10.23 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000546/0.4029, allocations: 0.8264 MB / 0.5424 GB, free: 9.527 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000238/0.4031, allocations: 58.73 kB / 0.5425 GB, free: 9.516 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.802e-05/0.4032, allocations: 34.73 kB / 0.5425 GB, free: 9.508 MB / 398.1 MB Notification: Performance of SimCode: time 4.6e-07/0.4032, allocations: 0 / 0.5425 GB, free: 9.508 MB / 398.1 MB Notification: Performance of Templates: time 0.01054/0.4137, allocations: 4.492 MB / 0.5469 GB, free: 7.766 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 -s cvode -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.001983466092497] Failed to read output from testmodel.py, exit status != 0: 0.42270366474986076 0.43780255599999995 0.0536574 Calling exit ...