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.001024/0.001024, allocations: 93.16 kB / 19.65 MB, free: 292 kB / 13.93 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.001208/0.001208, allocations: 172.9 kB / 23.02 MB, free: 1.562 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.9964/0.9964, allocations: 177.1 MB / 203.4 MB, free: 5.656 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.2214/0.2214, allocations: 24.14 MB / 284.1 MB, free: 5.277 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 2.384e-06/2.384e-06, allocations: 0 / 361.2 MB, free: 4.035 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.725e-05/3.963e-05, allocations: 2.312 kB / 361.2 MB, free: 4.031 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.009237/0.009276, allocations: 6.572 MB / 367.7 MB, free: 13.43 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002386/0.01166, allocations: 1.001 MB / 368.7 MB, free: 12.42 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003765/0.01204, allocations: 27.75 kB / 368.8 MB, free: 12.39 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002749/0.01231, allocations: 111 kB / 368.9 MB, free: 12.29 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004518/0.01276, allocations: 83.17 kB / 369 MB, free: 12.2 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007337/0.0135, allocations: 239.3 kB / 369.2 MB, free: 11.97 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005656/0.01406, allocations: 0.5813 MB / 369.8 MB, free: 11.39 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003279/0.01439, allocations: 201.9 kB / 370 MB, free: 11.19 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003838/0.01478, allocations: 355.1 kB / 370.3 MB, free: 10.84 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002215/0.015, allocations: 171.5 kB / 370.5 MB, free: 10.68 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.648e-05/0.01505, allocations: 52 kB / 370.5 MB, free: 10.62 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.729e-05/0.01515, allocations: 63.92 kB / 370.6 MB, free: 10.56 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.01526, allocations: 131.6 kB / 370.7 MB, free: 10.43 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001352/0.01539, allocations: 163.6 kB / 370.9 MB, free: 10.27 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005539/0.01595, allocations: 366.5 kB / 371.3 MB, free: 9.914 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.01595, allocations: 7.984 kB / 371.3 MB, free: 9.906 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.01596, allocations: 0 / 371.3 MB, free: 9.906 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.668e-06/0.01597, allocations: 0 / 371.3 MB, free: 9.906 MB / 346.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.0009249/0.01689, allocations: 0.8035 MB / 372.1 MB, free: 9.066 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.01693, allocations: 12.75 kB / 372.1 MB, free: 9.055 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00025/0.01718, allocations: 116.5 kB / 372.2 MB, free: 8.941 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004388/0.01762, allocations: 369.7 kB / 372.6 MB, free: 8.559 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.832e-05/0.01767, allocations: 49.31 kB / 372.6 MB, free: 8.512 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.168e-05/0.01773, allocations: 56.38 kB / 372.7 MB, free: 8.457 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005828/0.01832, allocations: 494.3 kB / 373.1 MB, free: 7.918 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.01833, allocations: 0 / 373.1 MB, free: 7.918 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.043e-05/0.01836, allocations: 24 kB / 373.2 MB, free: 7.895 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.442e-05/0.01837, allocations: 12 kB / 373.2 MB, free: 7.883 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002721/0.01865, allocations: 173.8 kB / 373.3 MB, free: 7.719 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001677/0.02032, allocations: 2.003 MB / 375.3 MB, free: 5.629 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002681/0.02059, allocations: 224 kB / 375.6 MB, free: 5.367 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001234/0.02071, allocations: 122.6 kB / 375.7 MB, free: 5.23 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.426e-05/0.02073, allocations: 4 kB / 375.7 MB, free: 5.227 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.129e-05/0.02076, allocations: 41.39 kB / 375.7 MB, free: 5.176 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 2.445e-06/0.02076, allocations: 0 / 375.7 MB, free: 5.176 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.0003967/0.02116, allocations: 241.8 kB / 376 MB, free: 4.934 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.214e-05/0.02124, allocations: 162.2 kB / 376.1 MB, free: 4.738 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002312/0.02147, allocations: 342.5 kB / 376.5 MB, free: 4.387 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.128e-05/0.0215, allocations: 41.7 kB / 376.5 MB, free: 4.34 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001603/0.02166, allocations: 327.6 kB / 376.8 MB, free: 4.012 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.743e-05/0.02172, allocations: 91.22 kB / 376.9 MB, free: 3.922 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001122/0.02183, allocations: 108 kB / 377 MB, free: 3.809 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.02198, allocations: 0.5157 MB / 377.5 MB, free: 3.281 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001321/0.02211, allocations: 77.19 kB / 377.6 MB, free: 3.203 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001996/0.02231, allocations: 290.6 kB / 377.9 MB, free: 2.836 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002873/0.0226, allocations: 335.9 kB / 378.2 MB, free: 2.43 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.157e-06/0.0226, allocations: 4 kB / 378.2 MB, free: 2.426 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0004133/0.02301, allocations: 381.8 kB / 378.6 MB, free: 2.047 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.02303, allocations: 8 kB / 378.6 MB, free: 2.039 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.02304, allocations: 7.984 kB / 378.6 MB, free: 2.031 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.022e-05/0.02306, allocations: 11.94 kB / 378.6 MB, free: 2.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001731/0.02324, allocations: 63.84 kB / 378.7 MB, free: 1.957 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.291e-05/0.02325, allocations: 15.92 kB / 378.7 MB, free: 1.941 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001078/0.02336, allocations: 43.67 kB / 378.7 MB, free: 1.898 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.368e-05/0.02338, allocations: 24 kB / 378.8 MB, free: 1.875 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (65): * Single equations (assignments): 65 * 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.0001417/0.02352, allocations: 210 kB / 379 MB, free: 1.66 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.16e-05/0.02359, allocations: 47.77 kB / 379 MB, free: 1.613 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.95e-05/0.02364, allocations: 38.45 kB / 379.1 MB, free: 1.57 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.02365, allocations: 7.938 kB / 379.1 MB, free: 1.562 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.02365, allocations: 4 kB / 379.1 MB, free: 1.559 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.02366, allocations: 0 / 379.1 MB, free: 1.559 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000888/0.02455, allocations: 1.14 MB / 380.2 MB, free: 344 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.02455, allocations: 0 / 380.2 MB, free: 344 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00012/0.02467, allocations: 39.91 kB / 380.2 MB, free: 304 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.02467, allocations: 0 / 380.2 MB, free: 304 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.656e-05/0.0247, allocations: 12 kB / 380.3 MB, free: 292 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.0247, allocations: 0 / 380.3 MB, free: 292 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.02471, allocations: 4 kB / 380.3 MB, free: 288 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004183/0.02512, allocations: 470 kB / 380.7 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.422e-05/0.02519, allocations: 55.78 kB / 380.8 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.989e-05/0.02522, allocations: 12 kB / 380.8 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.59e-05/0.02529, allocations: 8 kB / 380.8 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.16e-05/0.02537, allocations: 39.81 kB / 380.8 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.02538, allocations: 12 kB / 380.8 MB, free: 15.64 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001218/0.0255, allocations: 211 kB / 381 MB, free: 15.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0255, allocations: 0 / 381 MB, free: 15.43 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002857/0.02578, allocations: 107.6 kB / 381.2 MB, free: 15.33 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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.inflow.stopOutflow,producing.growing.portB.stopOutflow,inventory.outflow.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 (29): * Single equations (assignments): 29 * 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.0001104/0.0259, allocations: 117.2 kB / 381.3 MB, free: 15.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000325/0.02622, allocations: 233 kB / 381.5 MB, free: 14.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.02622, allocations: 0 / 381.5 MB, free: 14.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.756e-05/0.02632, allocations: 99.72 kB / 381.6 MB, free: 14.88 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003605/0.02668, allocations: 97.92 kB / 381.7 MB, free: 14.79 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009396/0.02762, allocations: 0.7534 MB / 382.4 MB, free: 13.97 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.74e-05/0.0277, allocations: 121 kB / 382.6 MB, free: 13.83 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001392/0.02784, allocations: 59.27 kB / 382.6 MB, free: 13.77 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.664e-05/0.0279, allocations: 36.5 kB / 382.7 MB, free: 13.73 MB / 362.7 MB Notification: Performance of SimCode: time 1.523e-06/0.02791, allocations: 0 / 382.7 MB, free: 13.73 MB / 362.7 MB Notification: Performance of Templates: time 0.008136/0.03604, allocations: 4.286 MB / 386.9 MB, free: 9.559 MB / 362.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=240 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.1111234286800027]