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.001258/0.001258, allocations: 78.72 kB / 19.18 MB, free: 2.523 MB / 14.72 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.001858/0.001858, allocations: 166.9 kB / 22.46 MB, free: 5.371 MB / 14.72 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.358/1.358, allocations: 177.2 MB / 202.8 MB, free: 9.172 MB / 190.1 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.165/0.165, allocations: 24.14 MB / 283.3 MB, free: 9.012 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/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.332e-06/1.332e-06, allocations: 0 / 420.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.899e-05/2.032e-05, allocations: 2.281 kB / 420.5 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.007695/0.007716, allocations: 6.362 MB / 426.9 MB, free: 6.281 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001997/0.009713, allocations: 0.997 MB / 427.9 MB, free: 5.281 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004234/0.01014, allocations: 31.75 kB / 427.9 MB, free: 5.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003202/0.01046, allocations: 103 kB / 428 MB, free: 5.148 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002632/0.01072, allocations: 83.23 kB / 428.1 MB, free: 5.066 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006628/0.01138, allocations: 235.3 kB / 428.3 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006644/0.01205, allocations: 0.5814 MB / 428.9 MB, free: 4.254 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003671/0.01241, allocations: 205.8 kB / 429.1 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004232/0.01284, allocations: 347.2 kB / 429.5 MB, free: 3.715 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002504/0.01309, allocations: 159.5 kB / 429.6 MB, free: 3.559 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.42e-05/0.01317, allocations: 60 kB / 429.7 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001237/0.0133, allocations: 71.98 kB / 429.8 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001346/0.01343, allocations: 139.5 kB / 429.9 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001797/0.01361, allocations: 167.6 kB / 430.1 MB, free: 3.129 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006621/0.01427, allocations: 0.5841 MB / 430.6 MB, free: 2.543 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.01428, allocations: 4 kB / 430.6 MB, free: 2.539 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.01428, allocations: 0 / 430.6 MB, free: 2.539 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.38e-05/0.01429, allocations: 0 / 430.6 MB, free: 2.539 MB / 350.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.00126/0.01555, allocations: 0.7156 MB / 431.4 MB, free: 1.793 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.17e-05/0.01558, allocations: 8.75 kB / 431.4 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003331/0.01592, allocations: 84.53 kB / 431.4 MB, free: 1.703 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005673/0.01648, allocations: 345.2 kB / 431.8 MB, free: 1.336 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.322e-05/0.01654, allocations: 45.38 kB / 431.8 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.902e-05/0.01663, allocations: 60.33 kB / 431.9 MB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008959/0.01752, allocations: 0.5458 MB / 432.4 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.01754, allocations: 0 / 432.4 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.996e-05/0.01759, allocations: 31.98 kB / 432.5 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.387e-05/0.0176, allocations: 12 kB / 432.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006956/0.0183, allocations: 311.7 kB / 432.8 MB, free: 308 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002236/0.02053, allocations: 1.564 MB / 434.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006702/0.0212, allocations: 283.2 kB / 434.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003193/0.02152, allocations: 167.8 kB / 434.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.836e-05/0.02155, allocations: 12.16 kB / 434.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/0.02158, allocations: 38.8 kB / 434.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 1.663e-06/0.02158, allocations: 4 kB / 434.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009164/0.0225, allocations: 387.3 kB / 435.2 MB, free: 13.74 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.082e-05/0.02259, allocations: 162.2 kB / 435.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003352/0.02292, allocations: 292.4 kB / 435.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.953e-05/0.02297, allocations: 41.7 kB / 435.7 MB, free: 13.2 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002005/0.02317, allocations: 268.9 kB / 436 MB, free: 12.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.749e-05/0.02326, allocations: 99.52 kB / 436.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000159/0.02342, allocations: 114.3 kB / 436.2 MB, free: 12.72 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.02357, allocations: 342.8 kB / 436.5 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003531/0.02392, allocations: 141.2 kB / 436.6 MB, free: 12.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004475/0.02437, allocations: 292.4 kB / 436.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000658/0.02503, allocations: 371.7 kB / 437.3 MB, free: 11.51 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.02503, allocations: 0 / 437.3 MB, free: 11.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.000946/0.02598, allocations: 473 kB / 437.8 MB, free: 11.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.02599, allocations: 11.94 kB / 437.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.026, allocations: 4 kB / 437.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.02602, allocations: 8.391 kB / 437.8 MB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002943/0.02631, allocations: 67.91 kB / 437.8 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.936e-05/0.02633, allocations: 15.86 kB / 437.9 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002697/0.0266, allocations: 51.72 kB / 437.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.807e-05/0.02664, allocations: 19.98 kB / 437.9 MB, free: 10.86 MB / 366.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.0002427/0.02688, allocations: 198.9 kB / 438.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.02699, allocations: 39.75 kB / 438.2 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.984e-05/0.02708, allocations: 43.08 kB / 438.2 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.02709, allocations: 8 kB / 438.2 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.0271, allocations: 3.938 kB / 438.2 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.0271, allocations: 3.984 kB / 438.2 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001621/0.02872, allocations: 1.075 MB / 439.3 MB, free: 9.406 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.02873, allocations: 288 / 439.3 MB, free: 9.406 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002366/0.02896, allocations: 51.91 kB / 439.3 MB, free: 9.355 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.02897, allocations: 4 kB / 439.4 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.872e-05/0.029, allocations: 11.98 kB / 439.4 MB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.029, allocations: 4 kB / 439.4 MB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.674e-06/0.02901, allocations: 7.938 kB / 439.4 MB, free: 9.328 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000932/0.02994, allocations: 0.5504 MB / 439.9 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.03006, allocations: 63.73 kB / 440 MB, free: 8.672 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.876e-05/0.03011, allocations: 8 kB / 440 MB, free: 8.664 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002088/0.03032, allocations: 15.98 kB / 440 MB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.03042, allocations: 47.81 kB / 440.1 MB, free: 8.602 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.001e-05/0.03044, allocations: 8 kB / 440.1 MB, free: 8.594 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002159/0.03066, allocations: 191.1 kB / 440.3 MB, free: 8.406 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.03066, allocations: 3.938 kB / 440.3 MB, free: 8.402 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004148/0.03107, allocations: 111.7 kB / 440.4 MB, free: 8.293 MB / 366.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.0001252/0.0312, allocations: 117.7 kB / 440.5 MB, free: 8.172 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007326/0.03193, allocations: 326.9 kB / 440.8 MB, free: 7.852 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.03193, allocations: 0 / 440.8 MB, free: 7.852 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000329/0.03226, allocations: 153.1 kB / 440.9 MB, free: 7.703 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000615/0.03287, allocations: 118.7 kB / 441.1 MB, free: 7.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001283/0.03416, allocations: 0.7891 MB / 441.9 MB, free: 6.742 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002332/0.03439, allocations: 223.9 kB / 442.1 MB, free: 6.496 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002041/0.0346, allocations: 59.25 kB / 442.1 MB, free: 6.441 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.0347, allocations: 32.5 kB / 442.2 MB, free: 6.406 MB / 366.1 MB Notification: Performance of SimCode: time 7.71e-07/0.0347, allocations: 0 / 442.2 MB, free: 6.406 MB / 366.1 MB Notification: Performance of Templates: time 0.009672/0.04437, allocations: 4.453 MB / 446.6 MB, free: 2.055 MB / 366.1 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.30808774754405] Failed to read output from testmodel.py, exit status != 0: 0.05208223685622215 0.20724523900000003 0.190482447 Calling exit ...