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.001395/0.001395, allocations: 84.73 kB / 19.44 MB, free: 356 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.00163/0.00163, allocations: 157.7 kB / 22.75 MB, free: 1.684 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 1.523/1.523, allocations: 177.1 MB / 203.1 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 178] 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.241/0.241, allocations: 24.12 MB / 283.7 MB, free: 5.293 MB / 266.7 MB " [Timeout remaining time 179] 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.894e-06/1.894e-06, allocations: 0 / 360.4 MB, free: 4.387 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.171e-05/3.36e-05, allocations: 5.828 kB / 360.4 MB, free: 4.383 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.01599/0.01602, allocations: 6.353 MB / 366.8 MB, free: 14 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003913/0.01994, allocations: 1.005 MB / 367.8 MB, free: 12.99 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008008/0.02074, allocations: 27.75 kB / 367.8 MB, free: 12.96 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006378/0.02137, allocations: 103 kB / 367.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005142/0.02189, allocations: 83.12 kB / 368 MB, free: 12.78 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001165/0.02305, allocations: 235.4 kB / 368.2 MB, free: 12.55 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001423/0.02448, allocations: 0.5891 MB / 368.8 MB, free: 11.96 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007251/0.0252, allocations: 201.8 kB / 369 MB, free: 11.76 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009126/0.02611, allocations: 343.2 kB / 369.4 MB, free: 11.43 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005302/0.02664, allocations: 175.4 kB / 369.5 MB, free: 11.25 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001719/0.02682, allocations: 56 kB / 369.6 MB, free: 11.2 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001979/0.02701, allocations: 60 kB / 369.6 MB, free: 11.14 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002467/0.02726, allocations: 135.6 kB / 369.8 MB, free: 11.01 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003862/0.02765, allocations: 175.5 kB / 370 MB, free: 10.84 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001282/0.02893, allocations: 0.5801 MB / 370.5 MB, free: 10.25 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.02894, allocations: 4 kB / 370.5 MB, free: 10.25 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.02894, allocations: 4 kB / 370.5 MB, free: 10.25 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.923e-05/0.02896, allocations: 0 / 370.5 MB, free: 10.25 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.00243/0.03139, allocations: 0.7156 MB / 371.3 MB, free: 9.5 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/0.03143, allocations: 8.75 kB / 371.3 MB, free: 9.492 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007061/0.03214, allocations: 124.5 kB / 371.4 MB, free: 9.371 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001115/0.03325, allocations: 353.3 kB / 371.7 MB, free: 9.004 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.584e-05/0.03335, allocations: 41.38 kB / 371.8 MB, free: 8.961 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001736/0.03352, allocations: 60.38 kB / 371.8 MB, free: 8.902 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001712/0.03524, allocations: 0.5536 MB / 372.4 MB, free: 8.309 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.15e-05/0.03527, allocations: 7.922 kB / 372.4 MB, free: 8.301 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.863e-05/0.03535, allocations: 20 kB / 372.4 MB, free: 8.281 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.431e-05/0.03537, allocations: 12 kB / 372.4 MB, free: 8.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001347/0.03672, allocations: 299.8 kB / 372.7 MB, free: 7.977 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004562/0.04128, allocations: 1.58 MB / 374.3 MB, free: 6.336 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001325/0.0426, allocations: 299.2 kB / 374.6 MB, free: 6.008 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006404/0.04324, allocations: 167.8 kB / 374.8 MB, free: 5.832 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.186e-05/0.04329, allocations: 12.2 kB / 374.8 MB, free: 5.82 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.19e-05/0.04336, allocations: 46.67 kB / 374.8 MB, free: 5.766 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 2.875e-06/0.04336, allocations: 0 / 374.8 MB, free: 5.766 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.001873/0.04523, allocations: 395.7 kB / 375.2 MB, free: 5.375 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002014/0.04543, allocations: 166.2 kB / 375.4 MB, free: 5.176 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006589/0.04609, allocations: 288.4 kB / 375.6 MB, free: 4.887 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.828e-05/0.04619, allocations: 41.69 kB / 375.7 MB, free: 4.84 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000411/0.0466, allocations: 261 kB / 375.9 MB, free: 4.578 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001958/0.0468, allocations: 103.2 kB / 376 MB, free: 4.477 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002963/0.04709, allocations: 102.3 kB / 376.1 MB, free: 4.371 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003176/0.04741, allocations: 346.8 kB / 376.5 MB, free: 4.023 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000509/0.04792, allocations: 145.2 kB / 376.6 MB, free: 3.883 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005863/0.04851, allocations: 288.6 kB / 376.9 MB, free: 3.547 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007697/0.04928, allocations: 367.8 kB / 377.3 MB, free: 3.148 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.04928, allocations: 0 / 377.3 MB, free: 3.148 MB / 346.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001094/0.05038, allocations: 0.4935 MB / 377.7 MB, free: 2.645 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.05039, allocations: 4 kB / 377.8 MB, free: 2.641 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.0504, allocations: 4 kB / 377.8 MB, free: 2.637 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.332e-05/0.05043, allocations: 4 kB / 377.8 MB, free: 2.633 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003057/0.05073, allocations: 71.83 kB / 377.8 MB, free: 2.562 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.37e-05/0.05075, allocations: 7.938 kB / 377.8 MB, free: 2.555 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003081/0.05105, allocations: 67.59 kB / 377.9 MB, free: 2.488 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.424e-05/0.05111, allocations: 28.05 kB / 377.9 MB, free: 2.461 MB / 346.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.0002623/0.05137, allocations: 187 kB / 378.1 MB, free: 2.27 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000135/0.05151, allocations: 47.78 kB / 378.2 MB, free: 2.223 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.106e-05/0.0516, allocations: 39.08 kB / 378.2 MB, free: 2.184 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.0516, allocations: 4 kB / 378.2 MB, free: 2.18 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/0.05161, allocations: 7.938 kB / 378.2 MB, free: 2.172 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.05162, allocations: 0 / 378.2 MB, free: 2.172 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001939/0.05356, allocations: 1.092 MB / 379.3 MB, free: 1.004 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/0.05356, allocations: 4 kB / 379.3 MB, free: 1 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002586/0.05382, allocations: 39.91 kB / 379.3 MB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.654e-06/0.05383, allocations: 4 kB / 379.4 MB, free: 0.957 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.132e-05/0.05386, allocations: 12 kB / 379.4 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.908e-06/0.05387, allocations: 7.938 kB / 379.4 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.05387, allocations: 3.938 kB / 379.4 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.05492, allocations: 0.5625 MB / 379.9 MB, free: 336 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001426/0.05506, allocations: 55.78 kB / 380 MB, free: 280 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.224e-05/0.05512, allocations: 15.98 kB / 380 MB, free: 264 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002333/0.05535, allocations: 19.98 kB / 380 MB, free: 244 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.765e-05/0.05545, allocations: 31.89 kB / 380.1 MB, free: 212 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.541e-05/0.05547, allocations: 12 kB / 380.1 MB, free: 200 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002326/0.05571, allocations: 191.1 kB / 380.3 MB, free: 12 kB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.05571, allocations: 0 / 380.3 MB, free: 12 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005086/0.05621, allocations: 115.7 kB / 380.4 MB, free: 15.89 MB / 362.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 0.0001546/0.05637, allocations: 125.3 kB / 380.5 MB, free: 15.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000827/0.0572, allocations: 335.6 kB / 380.8 MB, free: 15.44 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.0572, allocations: 0 / 380.8 MB, free: 15.44 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003465/0.05754, allocations: 154.8 kB / 381 MB, free: 15.29 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006661/0.05821, allocations: 109.2 kB / 381.1 MB, free: 15.19 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001996/0.06021, allocations: 0.8004 MB / 381.9 MB, free: 14.33 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003671/0.06057, allocations: 231.9 kB / 382.1 MB, free: 14.07 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002437/0.06082, allocations: 51.25 kB / 382.2 MB, free: 14.03 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001358/0.06095, allocations: 36.5 kB / 382.2 MB, free: 13.99 MB / 362.7 MB Notification: Performance of SimCode: time 1.012e-06/0.06095, allocations: 0 / 382.2 MB, free: 13.99 MB / 362.7 MB Notification: Performance of Templates: time 0.01107/0.07203, allocations: 4.486 MB / 386.7 MB, free: 9.621 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=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.895014917012304]