Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_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.001338/0.001338, 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.001454/0.001454, allocations: 159.6 kB / 22.45 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.411/1.411, allocations: 177.2 MB / 202.8 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/package.mo): time 0.1656/0.1656, allocations: 24.13 MB / 283.3 MB, free: 8.996 MB / 270.1 MB " [Timeout remaining time 180] Using package BusinessSimulation with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BusinessSimulation main/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_dev_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 420.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.561e-05/2.704e-05, allocations: 2.281 kB / 420.5 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.008488/0.008515, allocations: 6.362 MB / 426.9 MB, free: 6.285 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002118/0.01063, allocations: 0.9931 MB / 427.9 MB, free: 5.289 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004665/0.0111, allocations: 31.75 kB / 427.9 MB, free: 5.258 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003636/0.01146, allocations: 107 kB / 428 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002898/0.01175, allocations: 79.23 kB / 428.1 MB, free: 5.074 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007898/0.01254, allocations: 239.3 kB / 428.3 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008065/0.01335, allocations: 0.5775 MB / 428.9 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004336/0.01378, allocations: 197.8 kB / 429.1 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005479/0.01433, allocations: 343.2 kB / 429.5 MB, free: 3.734 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003119/0.01464, allocations: 171.4 kB / 429.6 MB, free: 3.566 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001036/0.01475, allocations: 60 kB / 429.7 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001335/0.01488, allocations: 67.98 kB / 429.7 MB, free: 3.441 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001855/0.01507, allocations: 131.5 kB / 429.9 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002159/0.01528, allocations: 175.6 kB / 430 MB, free: 3.141 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007932/0.01607, allocations: 0.5841 MB / 430.6 MB, free: 2.555 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.01608, allocations: 0 / 430.6 MB, free: 2.555 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.01608, allocations: 0 / 430.6 MB, free: 2.555 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.629e-05/0.01611, allocations: 0 / 430.6 MB, free: 2.555 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.001545/0.01765, allocations: 0.7195 MB / 431.3 MB, free: 1.805 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.01769, allocations: 16.75 kB / 431.4 MB, free: 1.789 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003475/0.01804, allocations: 76.53 kB / 431.4 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000618/0.01866, allocations: 345.2 kB / 431.8 MB, free: 1.348 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.918e-05/0.0187, allocations: 49.38 kB / 431.8 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.01881, allocations: 56.33 kB / 431.9 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009971/0.0198, allocations: 0.5497 MB / 432.4 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.01982, allocations: 4 kB / 432.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.892e-05/0.01987, allocations: 23.98 kB / 432.5 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.721e-05/0.01989, allocations: 19.94 kB / 432.5 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007174/0.0206, allocations: 303.8 kB / 432.8 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00238/0.02298, allocations: 1.556 MB / 434.3 MB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006967/0.02368, allocations: 295.2 kB / 434.6 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003297/0.02401, allocations: 167.8 kB / 434.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.258e-05/0.02403, allocations: 4.234 kB / 434.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.235e-05/0.02408, allocations: 46.72 kB / 434.8 MB, free: 14.13 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 1.934e-06/0.02408, allocations: 0 / 434.8 MB, free: 14.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009583/0.02504, allocations: 387.7 kB / 435.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.02514, allocations: 166.1 kB / 435.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003549/0.0255, allocations: 292.4 kB / 435.7 MB, free: 13.26 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.536e-05/0.02555, allocations: 41.7 kB / 435.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00023/0.02578, allocations: 276.8 kB / 436 MB, free: 12.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001057/0.02589, allocations: 99.16 kB / 436.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001738/0.02606, allocations: 106.3 kB / 436.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001861/0.02625, allocations: 338.8 kB / 436.5 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003718/0.02662, allocations: 153.3 kB / 436.6 MB, free: 12.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005007/0.02712, allocations: 280.7 kB / 436.9 MB, free: 11.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006977/0.02782, allocations: 367.8 kB / 437.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.02782, allocations: 0 / 437.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001037/0.02886, allocations: 477 kB / 437.7 MB, free: 11.04 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.02888, allocations: 8 kB / 437.8 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.104e-05/0.02889, allocations: 4 kB / 437.8 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.17e-05/0.02891, allocations: 4 kB / 437.8 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003055/0.02922, allocations: 71.83 kB / 437.8 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.676e-05/0.02924, allocations: 8.344 kB / 437.8 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002869/0.02952, allocations: 59.7 kB / 437.9 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.895e-05/0.02956, allocations: 16 kB / 437.9 MB, free: 10.88 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.0002608/0.02982, allocations: 202.9 kB / 438.1 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.02994, allocations: 35.77 kB / 438.1 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001024/0.03004, allocations: 43.06 kB / 438.2 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.03004, allocations: 4 kB / 438.2 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.03005, allocations: 3.938 kB / 438.2 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.03006, allocations: 0 / 438.2 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001758/0.03182, allocations: 1.088 MB / 439.3 MB, free: 9.414 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.03182, allocations: 4 kB / 439.3 MB, free: 9.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002361/0.03206, allocations: 43.91 kB / 439.3 MB, free: 9.367 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.913e-06/0.03207, allocations: 4 kB / 439.3 MB, free: 9.363 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.768e-05/0.03209, allocations: 12.28 kB / 439.3 MB, free: 9.352 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.431e-06/0.0321, allocations: 4 kB / 439.4 MB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.828e-06/0.0321, allocations: 4 kB / 439.4 MB, free: 9.344 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.03312, allocations: 0.5652 MB / 439.9 MB, free: 8.738 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001229/0.03324, allocations: 59.73 kB / 440 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.97e-05/0.03329, allocations: 8 kB / 440 MB, free: 8.672 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002174/0.03351, allocations: 23.98 kB / 440 MB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.03361, allocations: 39.83 kB / 440.1 MB, free: 8.609 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.25e-05/0.03363, allocations: 11.98 kB / 440.1 MB, free: 8.598 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002243/0.03385, allocations: 191.1 kB / 440.2 MB, free: 8.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.03385, allocations: 3.938 kB / 440.3 MB, free: 8.406 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004363/0.03429, allocations: 111.7 kB / 440.4 MB, free: 8.297 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.0001516/0.03444, allocations: 113.7 kB / 440.5 MB, free: 8.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007911/0.03523, allocations: 330.9 kB / 440.8 MB, free: 7.855 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.03524, allocations: 0 / 440.8 MB, free: 7.855 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000342/0.03558, allocations: 153.1 kB / 440.9 MB, free: 7.707 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006254/0.0362, allocations: 118.6 kB / 441.1 MB, free: 7.598 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001426/0.03763, allocations: 0.793 MB / 441.9 MB, free: 6.746 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002589/0.03789, allocations: 223.9 kB / 442.1 MB, free: 6.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002173/0.03811, allocations: 55.25 kB / 442.1 MB, free: 6.449 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000114/0.03822, allocations: 32.5 kB / 442.2 MB, free: 6.414 MB / 366.1 MB Notification: Performance of SimCode: time 6.72e-07/0.03822, allocations: 0 / 442.2 MB, free: 6.414 MB / 366.1 MB Notification: Performance of Templates: time 0.01032/0.04854, allocations: 4.453 MB / 446.6 MB, free: 2.059 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.makefile [Timeout 660] (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.sim & ./BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII -abortSlowSimulation -alarm=480 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.541810501366854] Failed to read output from testmodel.py, exit status != 0: 0.057164017111063004 0.23548726 0.21685199700000002 Calling exit ...