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.001014/0.001014, allocations: 77.14 kB / 19.87 MB, free: 4.621 MB / 18.57 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.00107/0.00107, allocations: 173 kB / 23.28 MB, free: 1.219 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.9716/0.9716, allocations: 177.1 MB / 203.7 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] 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.1115/0.1115, allocations: 24.13 MB / 284.4 MB, free: 5.074 MB / 266.7 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.874e-06/1.874e-06, allocations: 0 / 361.6 MB, free: 3.598 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.297e-05/2.485e-05, allocations: 2.312 kB / 361.6 MB, free: 3.594 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.00547/0.005494, allocations: 6.498 MB / 368.1 MB, free: 13.06 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001474/0.006969, allocations: 1.005 MB / 369.1 MB, free: 12.05 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002942/0.007263, allocations: 27.75 kB / 369.2 MB, free: 12.03 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002341/0.007497, allocations: 111 kB / 369.3 MB, free: 11.92 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001708/0.007668, allocations: 87.11 kB / 369.3 MB, free: 11.83 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004415/0.008109, allocations: 227.4 kB / 369.6 MB, free: 11.61 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004187/0.008528, allocations: 0.589 MB / 370.2 MB, free: 11.02 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002436/0.008772, allocations: 201.9 kB / 370.4 MB, free: 10.82 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002711/0.009043, allocations: 351.2 kB / 370.7 MB, free: 10.48 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001703/0.009213, allocations: 171.5 kB / 370.9 MB, free: 10.31 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.907e-05/0.009272, allocations: 52 kB / 370.9 MB, free: 10.26 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.003e-05/0.009352, allocations: 59.94 kB / 371 MB, free: 10.2 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.453e-05/0.009437, allocations: 135.5 kB / 371.1 MB, free: 10.07 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 9.948e-05/0.009536, allocations: 163.6 kB / 371.3 MB, free: 9.91 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003139/0.00985, allocations: 374.4 kB / 371.6 MB, free: 9.543 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.704e-06/0.009852, allocations: 0 / 371.6 MB, free: 9.543 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.82e-07/0.009853, allocations: 0 / 371.6 MB, free: 9.543 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.978e-06/0.009857, allocations: 4 kB / 371.6 MB, free: 9.539 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.0007042/0.01056, allocations: 0.8073 MB / 372.4 MB, free: 8.695 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.01059, allocations: 8.75 kB / 372.5 MB, free: 8.688 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001956/0.01079, allocations: 124.5 kB / 372.6 MB, free: 8.566 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003655/0.01115, allocations: 365.7 kB / 372.9 MB, free: 8.188 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.607e-05/0.01119, allocations: 49.31 kB / 373 MB, free: 8.141 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.85e-05/0.01125, allocations: 56.38 kB / 373 MB, free: 8.086 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004492/0.0117, allocations: 458.2 kB / 373.5 MB, free: 7.582 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.01171, allocations: 0 / 373.5 MB, free: 7.582 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.528e-05/0.01173, allocations: 20 kB / 373.5 MB, free: 7.562 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.849e-06/0.01174, allocations: 16 kB / 373.5 MB, free: 7.547 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001445/0.01189, allocations: 138.8 kB / 373.7 MB, free: 7.414 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001396/0.01328, allocations: 1.937 MB / 375.6 MB, free: 5.398 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001773/0.01346, allocations: 212.3 kB / 375.8 MB, free: 5.145 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.051e-05/0.01354, allocations: 102.6 kB / 375.9 MB, free: 5.027 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.322e-05/0.01356, allocations: 8 kB / 375.9 MB, free: 5.02 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.01358, allocations: 49.31 kB / 376 MB, free: 4.961 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.382e-06/0.01358, allocations: 0 / 376 MB, free: 4.961 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.0002735/0.01385, allocations: 206.6 kB / 376.2 MB, free: 4.754 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.416e-05/0.01391, allocations: 166.2 kB / 376.3 MB, free: 4.555 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001779/0.01409, allocations: 342.3 kB / 376.7 MB, free: 4.203 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.822e-05/0.01411, allocations: 45.7 kB / 376.7 MB, free: 4.152 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001415/0.01426, allocations: 319.5 kB / 377 MB, free: 3.832 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.09e-05/0.01431, allocations: 99.19 kB / 377.1 MB, free: 3.734 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.832e-05/0.0144, allocations: 111.9 kB / 377.2 MB, free: 3.617 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.01453, allocations: 0.5195 MB / 377.7 MB, free: 3.086 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.391e-05/0.01461, allocations: 53.25 kB / 377.8 MB, free: 3.031 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001659/0.01477, allocations: 286.5 kB / 378.1 MB, free: 2.668 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002212/0.01499, allocations: 311.8 kB / 378.4 MB, free: 2.285 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.01499, allocations: 0 / 378.4 MB, free: 2.285 MB / 346.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0005808/0.01558, allocations: 353.8 kB / 378.7 MB, free: 1.934 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.01559, allocations: 8 kB / 378.7 MB, free: 1.926 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.0156, allocations: 4 kB / 378.7 MB, free: 1.922 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.01561, allocations: 8 kB / 378.7 MB, free: 1.914 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/0.01574, allocations: 63.84 kB / 378.8 MB, free: 1.852 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.355e-06/0.01574, allocations: 11.94 kB / 378.8 MB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.409e-05/0.01584, allocations: 47.66 kB / 378.9 MB, free: 1.793 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.9e-05/0.01586, allocations: 16.28 kB / 378.9 MB, free: 1.777 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,inventory.outflow.stopInflow,producing.cloud.massPort.stopInflow,installedBase.inflow.stopOutflow,inventory.inflow.stopInflow,producing.cloud.massPort.stopOutflow,installedBase.inflow.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,cloud1.massPort.stopInflow,cloud1.massPort.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.0001274/0.01598, allocations: 213.7 kB / 379.1 MB, free: 1.559 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.979e-05/0.01604, allocations: 43.77 kB / 379.1 MB, free: 1.516 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.272e-05/0.01609, allocations: 42.39 kB / 379.2 MB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.01609, allocations: 4 kB / 379.2 MB, free: 1.465 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.01609, allocations: 3.938 kB / 379.2 MB, free: 1.461 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.0161, allocations: 7.984 kB / 379.2 MB, free: 1.453 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007279/0.01683, allocations: 1.05 MB / 380.2 MB, free: 336 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.01683, allocations: 7.984 kB / 380.2 MB, free: 328 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.697e-05/0.01693, allocations: 35.92 kB / 380.3 MB, free: 292 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.01693, allocations: 4 kB / 380.3 MB, free: 288 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.46e-05/0.01695, allocations: 8 kB / 380.3 MB, free: 280 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.828e-06/0.01695, allocations: 7.938 kB / 380.3 MB, free: 272 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.01695, allocations: 4 kB / 380.3 MB, free: 268 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003053/0.01726, allocations: 449.9 kB / 380.7 MB, free: 15.76 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.279e-05/0.01731, allocations: 55.81 kB / 380.8 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.193e-05/0.01733, allocations: 8 kB / 380.8 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.656e-05/0.0174, allocations: 8 kB / 380.8 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.205e-05/0.01745, allocations: 39.88 kB / 380.8 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.147e-06/0.01746, allocations: 8 kB / 380.9 MB, free: 15.64 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.986e-05/0.01755, allocations: 206.9 kB / 381.1 MB, free: 15.45 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01755, allocations: 0 / 381.1 MB, free: 15.45 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002459/0.0178, allocations: 107.6 kB / 381.2 MB, free: 15.34 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 7.778e-05/0.01787, allocations: 116.1 kB / 381.3 MB, free: 15.22 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002325/0.01811, allocations: 224.1 kB / 381.5 MB, free: 15 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.01811, allocations: 0 / 381.5 MB, free: 15 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.622e-05/0.01818, allocations: 80.72 kB / 381.6 MB, free: 14.92 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003235/0.01851, allocations: 110.2 kB / 381.7 MB, free: 14.82 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007636/0.01927, allocations: 0.7495 MB / 382.4 MB, free: 14.01 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.582e-05/0.01935, allocations: 121 kB / 382.5 MB, free: 13.87 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001218/0.01947, allocations: 47.28 kB / 382.6 MB, free: 13.82 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001776/0.01965, allocations: 162.1 kB / 382.8 MB, free: 13.66 MB / 362.7 MB Notification: Performance of SimCode: time 1.052e-06/0.01965, allocations: 4 kB / 382.8 MB, free: 13.66 MB / 362.7 MB Notification: Performance of Templates: time 0.007048/0.0267, allocations: 4.455 MB / 387.2 MB, free: 9.324 MB / 362.7 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=240 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.8864196659997106]