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.001394/0.001394, allocations: 115.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.001732/0.001732, allocations: 192.8 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.456/1.456, allocations: 225.6 MB / 250.9 MB, free: 13.27 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.1793/0.1793, allocations: 31.61 MB / 337.7 MB, free: 9.738 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.002009/0.002009, allocations: 63.89 kB / 472.6 MB, free: 6.215 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3234/0.3254, allocations: 59.5 MB / 0.5196 GB, free: 8.945 MB / 382.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.007048/0.3325, allocations: 6.871 MB / 0.5263 GB, free: 4.098 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002277/0.3347, allocations: 1.007 MB / 0.5273 GB, free: 3.355 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005223/0.3353, allocations: 21.28 kB / 0.5273 GB, free: 3.348 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003572/0.3356, allocations: 107.8 kB / 0.5274 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002702/0.3359, allocations: 80.7 kB / 0.5275 GB, free: 3.223 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007881/0.3367, allocations: 247.5 kB / 0.5278 GB, free: 3.07 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007367/0.3374, allocations: 0.5652 MB / 0.5283 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000439/0.3379, allocations: 225 kB / 0.5285 GB, free: 2.652 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003185/0.3382, allocations: 228.1 kB / 0.5287 GB, free: 2.531 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002956/0.3385, allocations: 234.9 kB / 0.529 GB, free: 2.398 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.647e-05/0.3385, allocations: 56.59 kB / 0.529 GB, free: 2.398 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001244/0.3387, allocations: 67.53 kB / 0.5291 GB, free: 2.395 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001115/0.3388, allocations: 132.6 kB / 0.5292 GB, free: 2.305 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001838/0.339, allocations: 266.7 kB / 0.5295 GB, free: 2.121 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006938/0.3397, allocations: 0.5682 MB / 0.53 GB, free: 1.848 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.3397, allocations: 4.688 kB / 0.53 GB, free: 1.844 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.3397, allocations: 0 / 0.53 GB, free: 1.844 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.665e-05/0.3397, allocations: 0 / 0.53 GB, free: 1.844 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.001333/0.341, allocations: 0.7984 MB / 0.5308 GB, free: 1.227 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.3411, allocations: 10.7 kB / 0.5308 GB, free: 1.227 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003797/0.3414, allocations: 84.91 kB / 0.5309 GB, free: 1.191 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005524/0.342, allocations: 400 kB / 0.5313 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.025e-05/0.342, allocations: 52.84 kB / 0.5313 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.203e-05/0.3421, allocations: 62.22 kB / 0.5314 GB, free: 0.832 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008602/0.343, allocations: 497.7 kB / 0.5319 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.768e-05/0.343, allocations: 8.969 kB / 0.5319 GB, free: 0.582 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.326e-05/0.343, allocations: 25.39 kB / 0.5319 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.444e-05/0.3431, allocations: 13 kB / 0.5319 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006717/0.3437, allocations: 308.5 kB / 0.5322 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00259/0.3463, allocations: 1.855 MB / 0.534 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007818/0.3471, allocations: 289 kB / 0.5343 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003664/0.3475, allocations: 172.5 kB / 0.5345 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.431e-05/0.3475, allocations: 8.656 kB / 0.5345 GB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.132e-05/0.3475, allocations: 50.94 kB / 0.5345 GB, free: 14.79 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.824e-06/0.3475, allocations: 0 / 0.5345 GB, free: 14.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.001009/0.3485, allocations: 378.3 kB / 0.5349 GB, free: 14.63 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/0.3487, allocations: 159.9 kB / 0.535 GB, free: 14.45 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003937/0.3491, allocations: 328.1 kB / 0.5353 GB, free: 14.26 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.099e-05/0.3491, allocations: 40.05 kB / 0.5354 GB, free: 14.22 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002261/0.3493, allocations: 258.6 kB / 0.5356 GB, free: 14.02 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001045/0.3494, allocations: 104 kB / 0.5357 GB, free: 13.93 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001595/0.3496, allocations: 103.2 kB / 0.5358 GB, free: 13.88 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.3498, allocations: 347.4 kB / 0.5362 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003743/0.3502, allocations: 145.8 kB / 0.5363 GB, free: 13.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004591/0.3506, allocations: 267.5 kB / 0.5365 GB, free: 13.32 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006866/0.3513, allocations: 370.8 kB / 0.5369 GB, free: 13.08 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.3513, allocations: 1 kB / 0.5369 GB, free: 13.08 MB / 398.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009515/0.3523, allocations: 473.7 kB / 0.5374 GB, free: 12.88 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.3523, allocations: 10.88 kB / 0.5374 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.3523, allocations: 6.531 kB / 0.5374 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.946e-05/0.3523, allocations: 7.203 kB / 0.5374 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002938/0.3526, allocations: 74.23 kB / 0.5374 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.029e-05/0.3526, allocations: 13.8 kB / 0.5375 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003112/0.3529, allocations: 60.28 kB / 0.5375 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.832e-05/0.353, allocations: 20.2 kB / 0.5375 GB, free: 12.81 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.0002527/0.3532, allocations: 190.9 kB / 0.5377 GB, free: 12.65 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001238/0.3533, allocations: 44.91 kB / 0.5378 GB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001046/0.3535, allocations: 48.17 kB / 0.5378 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.3535, allocations: 5.469 kB / 0.5378 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/0.3535, allocations: 1.062 kB / 0.5378 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.3535, allocations: 2.453 kB / 0.5378 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002195/0.3557, allocations: 1.218 MB / 0.539 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.608e-06/0.3557, allocations: 3.625 kB / 0.539 GB, free: 11.7 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002391/0.3559, allocations: 41.17 kB / 0.539 GB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.3559, allocations: 3.344 kB / 0.539 GB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.871e-05/0.3559, allocations: 11.5 kB / 0.5391 GB, free: 11.69 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.458e-05/0.356, allocations: 11.33 kB / 0.5391 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.356, allocations: 3.203 kB / 0.5391 GB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00097/0.3569, allocations: 0.5564 MB / 0.5396 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001938/0.3571, allocations: 137.4 kB / 0.5397 GB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.602e-05/0.3572, allocations: 11.2 kB / 0.5398 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002374/0.3574, allocations: 29.73 kB / 0.5398 GB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.77e-05/0.3575, allocations: 35.75 kB / 0.5398 GB, free: 11.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.029e-05/0.3575, allocations: 8.641 kB / 0.5398 GB, free: 11.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002498/0.3578, allocations: 210.7 kB / 0.54 GB, free: 11.04 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3578, allocations: 0 / 0.54 GB, free: 11.04 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004782/0.3583, allocations: 112.5 kB / 0.5401 GB, free: 11.01 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.0001578/0.3584, allocations: 120 kB / 0.5403 GB, free: 10.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007658/0.3592, allocations: 330 kB / 0.5406 GB, free: 10.8 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.3592, allocations: 1.906 kB / 0.5406 GB, free: 10.8 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003443/0.3595, allocations: 155.2 kB / 0.5407 GB, free: 10.75 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006659/0.3602, allocations: 106.8 kB / 0.5408 GB, free: 10.71 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001449/0.3616, allocations: 0.8216 MB / 0.5416 GB, free: 10.17 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000483/0.3621, allocations: 0.8268 MB / 0.5424 GB, free: 9.465 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002211/0.3623, allocations: 61.92 kB / 0.5425 GB, free: 9.449 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001008/0.3624, allocations: 38.58 kB / 0.5425 GB, free: 9.438 MB / 398.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3624, allocations: 1.281 kB / 0.5425 GB, free: 9.438 MB / 398.1 MB Notification: Performance of Templates: time 0.00986/0.3723, allocations: 4.49 MB / 0.5469 GB, free: 7.672 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 gbode -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.052006620913744] Failed to read output from testmodel.py, exit status != 0: 0.380706244148314 0.39496931199999996 0.052126620000000005 Calling exit ...