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.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.0006837/0.0006837, allocations: 72.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0007241/0.0007241, allocations: 177.9 kB / 23.21 MB, free: 1.344 MB / 18.57 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 0.8341/0.8341, allocations: 177.1 MB / 203.5 MB, free: 5.691 MB / 186.7 MB " [Timeout remaining time 179] 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.0973/0.0973, allocations: 24.13 MB / 284.1 MB, free: 5.469 MB / 266.7 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.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_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 1.824e-06/1.824e-06, allocations: 0 / 421.3 MB, free: 8.051 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.289e-05/2.472e-05, allocations: 6.219 kB / 421.3 MB, free: 8.043 MB / 394.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.007686/0.007711, allocations: 6.369 MB / 427.7 MB, free: 1.645 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.002319/0.01003, allocations: 0.9931 MB / 428.7 MB, free: 0.6484 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005186/0.01055, allocations: 27.75 kB / 428.7 MB, free: 0.6211 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000341/0.01089, allocations: 111 kB / 428.8 MB, free: 0.5117 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000295/0.01118, allocations: 83.19 kB / 428.9 MB, free: 440 kB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007679/0.01195, allocations: 235.3 kB / 429.1 MB, free: 204 kB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.000779/0.01273, allocations: 0.5775 MB / 429.7 MB, free: 15.62 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003954/0.01313, allocations: 201.9 kB / 429.9 MB, free: 15.41 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005195/0.01365, allocations: 343.2 kB / 430.2 MB, free: 15.08 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002898/0.01394, allocations: 167.4 kB / 430.4 MB, free: 14.91 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 8.753e-05/0.01402, allocations: 56 kB / 430.4 MB, free: 14.86 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001122/0.01414, allocations: 68 kB / 430.5 MB, free: 14.79 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001224/0.01426, allocations: 135.5 kB / 430.6 MB, free: 14.66 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001569/0.01441, allocations: 175.5 kB / 430.8 MB, free: 14.49 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006669/0.01508, allocations: 0.5879 MB / 431.4 MB, free: 13.9 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.01508, allocations: 3.938 kB / 431.4 MB, free: 13.89 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.01508, allocations: 0 / 431.4 MB, free: 13.89 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.524e-05/0.0151, allocations: 0 / 431.4 MB, free: 13.89 MB / 410.7 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.001596/0.0167, allocations: 0.7267 MB / 432.1 MB, free: 13.14 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.01674, allocations: 8.75 kB / 432.1 MB, free: 13.13 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003129/0.01705, allocations: 88.52 kB / 432.2 MB, free: 13.05 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005736/0.01763, allocations: 333.3 kB / 432.6 MB, free: 12.7 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.848e-05/0.01768, allocations: 45.38 kB / 432.6 MB, free: 12.65 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.721e-05/0.01776, allocations: 56.33 kB / 432.7 MB, free: 12.6 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008398/0.0186, allocations: 0.5497 MB / 433.2 MB, free: 12.01 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.01862, allocations: 0 / 433.2 MB, free: 12.01 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.02e-05/0.01867, allocations: 24 kB / 433.2 MB, free: 11.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/0.01868, allocations: 12 kB / 433.2 MB, free: 11.97 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006573/0.01934, allocations: 307.7 kB / 433.5 MB, free: 11.67 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002132/0.02147, allocations: 1.568 MB / 435.1 MB, free: 10.04 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009236/0.0224, allocations: 299.2 kB / 435.4 MB, free: 9.711 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003016/0.0227, allocations: 167.8 kB / 435.6 MB, free: 9.535 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.02272, allocations: 4.234 kB / 435.6 MB, free: 9.531 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/0.02275, allocations: 38.8 kB / 435.6 MB, free: 9.484 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 2.124e-06/0.02275, allocations: 7.938 kB / 435.6 MB, free: 9.477 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.0008578/0.02361, allocations: 375.6 kB / 436 MB, free: 9.105 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.869e-05/0.02369, allocations: 174 kB / 436.1 MB, free: 8.898 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003087/0.024, allocations: 284.5 kB / 436.4 MB, free: 8.613 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.501e-05/0.02404, allocations: 45.7 kB / 436.5 MB, free: 8.562 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001768/0.02422, allocations: 272.9 kB / 436.7 MB, free: 8.293 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.678e-05/0.0243, allocations: 87.23 kB / 436.8 MB, free: 8.207 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001532/0.02445, allocations: 106.3 kB / 436.9 MB, free: 8.098 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.0246, allocations: 343 kB / 437.3 MB, free: 7.754 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00033/0.02493, allocations: 153.2 kB / 437.4 MB, free: 7.602 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003856/0.02531, allocations: 284.7 kB / 437.7 MB, free: 7.281 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004837/0.02579, allocations: 367.8 kB / 438 MB, free: 6.879 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.0258, allocations: 0 / 438 MB, free: 6.879 MB / 410.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0005249/0.02632, allocations: 477 kB / 438.5 MB, free: 6.406 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.605e-05/0.02634, allocations: 8 kB / 438.5 MB, free: 6.398 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.02635, allocations: 4 kB / 438.5 MB, free: 6.395 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.02636, allocations: 4 kB / 438.5 MB, free: 6.391 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001487/0.02651, allocations: 72.23 kB / 438.6 MB, free: 6.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.727e-06/0.02652, allocations: 11.94 kB / 438.6 MB, free: 6.309 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001314/0.02665, allocations: 55.64 kB / 438.7 MB, free: 6.254 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.045e-05/0.02667, allocations: 23.94 kB / 438.7 MB, free: 6.23 MB / 410.7 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.0001456/0.02681, allocations: 195 kB / 438.9 MB, free: 6.031 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.549e-05/0.02687, allocations: 35.75 kB / 438.9 MB, free: 5.996 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.007e-05/0.02692, allocations: 43.08 kB / 439 MB, free: 5.949 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.02692, allocations: 4 kB / 439 MB, free: 5.945 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.02693, allocations: 7.938 kB / 439 MB, free: 5.938 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.02693, allocations: 4 kB / 439 MB, free: 5.934 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009388/0.02787, allocations: 1.084 MB / 440.1 MB, free: 4.773 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.02788, allocations: 0 / 440.1 MB, free: 4.773 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001115/0.02799, allocations: 51.91 kB / 440.1 MB, free: 4.723 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.02799, allocations: 8.281 kB / 440.1 MB, free: 4.715 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.02801, allocations: 8 kB / 440.1 MB, free: 4.707 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.02801, allocations: 7.938 kB / 440.1 MB, free: 4.699 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.02801, allocations: 4 kB / 440.1 MB, free: 4.695 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006745/0.02869, allocations: 0.539 MB / 440.7 MB, free: 4.113 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001477/0.02883, allocations: 67.72 kB / 440.7 MB, free: 4.047 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.214e-05/0.02889, allocations: 11.98 kB / 440.7 MB, free: 4.035 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002011/0.02909, allocations: 23.92 kB / 440.8 MB, free: 4.012 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.541e-05/0.02915, allocations: 35.89 kB / 440.8 MB, free: 3.977 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.202e-05/0.02917, allocations: 8 kB / 440.8 MB, free: 3.969 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001242/0.02929, allocations: 199 kB / 441 MB, free: 3.773 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02929, allocations: 0 / 441 MB, free: 3.773 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002674/0.02956, allocations: 119.6 kB / 441.1 MB, free: 3.656 MB / 410.7 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 9.22e-05/0.02965, allocations: 116.6 kB / 441.2 MB, free: 3.535 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004238/0.03007, allocations: 334.8 kB / 441.6 MB, free: 3.203 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.03007, allocations: 0 / 441.6 MB, free: 3.203 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000164/0.03024, allocations: 144 kB / 441.7 MB, free: 3.066 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003709/0.03061, allocations: 113.6 kB / 441.8 MB, free: 2.961 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008763/0.03149, allocations: 0.8141 MB / 442.6 MB, free: 2.086 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001477/0.03163, allocations: 223.9 kB / 442.9 MB, free: 1.844 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.105e-05/0.03171, allocations: 40.5 kB / 442.9 MB, free: 1.805 MB / 410.7 MB Notification: Performance of SimCode: time 6.01e-07/0.03172, allocations: 0 / 442.9 MB, free: 1.805 MB / 410.7 MB Notification: Performance of Templates: time 0.1415/0.1732, allocations: 5.356 MB / 448.2 MB, free: 64.23 MB / 410.7 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 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 5.614270184189081] Failed to read output from testmodel.py, exit status != 0: 0.1792649095878005 0.18873163 0.17137242500000002 Calling exit ...