Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.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.001503/0.001503, allocations: 80.3 kB / 19.18 MB, free: 2.516 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.00161/0.00161, allocations: 160 kB / 22.46 MB, free: 5.375 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.33/1.33, allocations: 177.1 MB / 202.8 MB, free: 9.176 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.2454/0.2454, allocations: 24.13 MB / 283.3 MB, free: 9.008 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.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain") translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.202e-06/1.202e-06, allocations: 0 / 420.5 MB, free: 12.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.402e-05/1.522e-05, allocations: 2.281 kB / 420.5 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.006016/0.006032, allocations: 5.094 MB / 425.6 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001082/0.007114, allocations: 0.615 MB / 426.3 MB, free: 6.949 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001685/0.007282, allocations: 11.94 kB / 426.3 MB, free: 6.938 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002273/0.00751, allocations: 83.2 kB / 426.3 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001859/0.007696, allocations: 75.36 kB / 426.4 MB, free: 6.781 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005023/0.008198, allocations: 187.4 kB / 426.6 MB, free: 6.598 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005049/0.008703, allocations: 475 kB / 427.1 MB, free: 6.133 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002523/0.008955, allocations: 142.9 kB / 427.2 MB, free: 5.992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003234/0.009278, allocations: 283.4 kB / 427.5 MB, free: 5.715 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002109/0.009489, allocations: 139.6 kB / 427.6 MB, free: 5.578 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.49e-05/0.009554, allocations: 44 kB / 427.7 MB, free: 5.535 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001071/0.009661, allocations: 59.92 kB / 427.7 MB, free: 5.477 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001164/0.009778, allocations: 111.6 kB / 427.8 MB, free: 5.367 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00015/0.009928, allocations: 147.6 kB / 428 MB, free: 5.223 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005009/0.01043, allocations: 470.5 kB / 428.4 MB, free: 4.762 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.664e-06/0.01043, allocations: 4 kB / 428.4 MB, free: 4.758 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.81e-07/0.01043, allocations: 0 / 428.4 MB, free: 4.758 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.01044, allocations: 0 / 428.4 MB, free: 4.758 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001048/0.01149, allocations: 0.6094 MB / 429 MB, free: 4.117 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.103e-05/0.01152, allocations: 16.75 kB / 429.1 MB, free: 4.102 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000303/0.01182, allocations: 72.61 kB / 429.1 MB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004198/0.01224, allocations: 268.9 kB / 429.4 MB, free: 3.742 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.197e-05/0.01228, allocations: 37.38 kB / 429.4 MB, free: 3.707 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.37e-05/0.01236, allocations: 48.38 kB / 429.5 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007253/0.01308, allocations: 479 kB / 429.9 MB, free: 3.152 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.0131, allocations: 0 / 429.9 MB, free: 3.152 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.486e-05/0.01313, allocations: 16 kB / 430 MB, free: 3.137 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.948e-06/0.01314, allocations: 8 kB / 430 MB, free: 3.129 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005595/0.0137, allocations: 255.7 kB / 430.2 MB, free: 2.879 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00187/0.01557, allocations: 1.405 MB / 431.6 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005586/0.01613, allocations: 242.3 kB / 431.9 MB, free: 1.145 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002797/0.01641, allocations: 155.3 kB / 432 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.53e-05/0.01642, allocations: 4 kB / 432 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/0.01645, allocations: 38.56 kB / 432.1 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.433e-06/0.01645, allocations: 0 / 432.1 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0008147/0.01727, allocations: 339.6 kB / 432.4 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.801e-05/0.01736, allocations: 162.6 kB / 432.5 MB, free: 408 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002642/0.01762, allocations: 257.8 kB / 432.8 MB, free: 140 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.521e-05/0.01767, allocations: 37.7 kB / 432.8 MB, free: 96 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.01784, allocations: 220.6 kB / 433.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.48e-05/0.01791, allocations: 91.17 kB / 433.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/0.01805, allocations: 102.1 kB / 433.2 MB, free: 15.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.01819, allocations: 342.8 kB / 433.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003274/0.01852, allocations: 140.9 kB / 433.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004176/0.01894, allocations: 271 kB / 434 MB, free: 14.88 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005978/0.01954, allocations: 350.7 kB / 434.3 MB, free: 14.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.01954, allocations: 0 / 434.3 MB, free: 14.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008464/0.02038, allocations: 450 kB / 434.8 MB, free: 14.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.0204, allocations: 8 kB / 434.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.02041, allocations: 4 kB / 434.8 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.02042, allocations: 7.938 kB / 434.8 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002562/0.02068, allocations: 67.83 kB / 434.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.02069, allocations: 4 kB / 434.8 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002606/0.02095, allocations: 51.7 kB / 434.9 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.666e-05/0.02098, allocations: 20 kB / 434.9 MB, free: 13.89 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 (60): * Single equations (assignments): 60 * 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.0001962/0.02118, allocations: 199 kB / 435.1 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.02128, allocations: 23.86 kB / 435.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.574e-05/0.02135, allocations: 30.27 kB / 435.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.02135, allocations: 4 kB / 435.2 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.686e-06/0.02136, allocations: 0 / 435.2 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/0.02137, allocations: 11.98 kB / 435.2 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001498/0.02286, allocations: 1.064 MB / 436.2 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.02287, allocations: 0 / 436.2 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002031/0.02307, allocations: 47.84 kB / 436.3 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.491e-06/0.02308, allocations: 4 kB / 436.3 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.722e-05/0.0231, allocations: 15.98 kB / 436.3 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.554e-06/0.02311, allocations: 4.406 kB / 436.3 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.02311, allocations: 8 kB / 436.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008228/0.02394, allocations: 0.5412 MB / 436.9 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.02404, allocations: 51.83 kB / 436.9 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.535e-05/0.02409, allocations: 12 kB / 436.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002049/0.02429, allocations: 15.98 kB / 436.9 MB, free: 11.71 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.625e-05/0.02438, allocations: 39.83 kB / 437 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.097e-05/0.0244, allocations: 16 kB / 437 MB, free: 11.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001605/0.02456, allocations: 157.2 kB / 437.1 MB, free: 11.51 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.02456, allocations: 4 kB / 437.2 MB, free: 11.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003997/0.02496, allocations: 99.73 kB / 437.3 MB, free: 11.41 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * 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,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,producing.growing.useA_rate) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 28 * 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.0001264/0.02509, allocations: 131.8 kB / 437.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006562/0.02574, allocations: 307.9 kB / 437.7 MB, free: 10.97 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.02574, allocations: 0 / 437.7 MB, free: 10.97 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002834/0.02603, allocations: 133.3 kB / 437.8 MB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000559/0.02659, allocations: 88.38 kB / 437.9 MB, free: 10.76 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001137/0.02772, allocations: 0.6943 MB / 438.6 MB, free: 9.992 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001832/0.02791, allocations: 190.8 kB / 438.8 MB, free: 9.785 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001603/0.02807, allocations: 63.22 kB / 438.8 MB, free: 9.723 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.888e-05/0.02815, allocations: 32.5 kB / 438.9 MB, free: 9.691 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.02815, allocations: 0 / 438.9 MB, free: 9.691 MB / 366.1 MB Notification: Performance of Templates: time 0.0083/0.03646, allocations: 3.884 MB / 442.8 MB, free: 5.895 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.makefile [Timeout 660] (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.sim & ./BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.346555955708027] Failed to read output from testmodel.py, exit status != 0: 0.04401563107967377 0.19683034400000002 0.184033681 Calling exit ...