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.002498/0.002498, allocations: 85.48 kB / 19.44 MB, free: 348 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.002912/0.002912, allocations: 177.2 kB / 22.76 MB, free: 1.664 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.669/1.669, allocations: 177.1 MB / 203.1 MB, free: 5.602 MB / 186.7 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.1897/0.1897, allocations: 24.11 MB / 283.7 MB, free: 5.32 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.673e-06/1.673e-06, allocations: 3.938 kB / 360.4 MB, free: 4.395 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.244e-05/3.411e-05, allocations: 2.312 kB / 360.4 MB, free: 4.391 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.01406/0.0141, allocations: 6.517 MB / 367 MB, free: 13.84 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.003312/0.01741, allocations: 0.9893 MB / 367.9 MB, free: 12.85 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000582/0.01799, allocations: 27.75 kB / 368 MB, free: 12.82 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004845/0.01848, allocations: 106.9 kB / 368.1 MB, free: 12.71 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003952/0.01887, allocations: 87.23 kB / 368.2 MB, free: 12.63 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009607/0.01983, allocations: 235.3 kB / 368.4 MB, free: 12.4 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001057/0.02089, allocations: 0.5814 MB / 369 MB, free: 11.82 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005723/0.02146, allocations: 205.8 kB / 369.2 MB, free: 11.62 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006835/0.02215, allocations: 339.3 kB / 369.5 MB, free: 11.29 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006674/0.02281, allocations: 179.4 kB / 369.7 MB, free: 11.11 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001408/0.02295, allocations: 60 kB / 369.7 MB, free: 11.05 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001821/0.02314, allocations: 63.98 kB / 369.8 MB, free: 10.99 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002189/0.02335, allocations: 135.6 kB / 369.9 MB, free: 10.86 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003187/0.02367, allocations: 171.6 kB / 370.1 MB, free: 10.69 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001155/0.02483, allocations: 0.5917 MB / 370.7 MB, free: 10.09 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.02483, allocations: 0 / 370.7 MB, free: 10.09 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.02483, allocations: 0 / 370.7 MB, free: 10.09 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.163e-05/0.02485, allocations: 4 kB / 370.7 MB, free: 10.09 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.002064/0.02691, allocations: 0.8504 MB / 371.5 MB, free: 9.203 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.02696, allocations: 8.75 kB / 371.6 MB, free: 9.195 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006206/0.02758, allocations: 120.5 kB / 371.7 MB, free: 9.078 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009928/0.02858, allocations: 348.1 kB / 372 MB, free: 8.715 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.976e-05/0.02866, allocations: 45.38 kB / 372.1 MB, free: 8.668 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001483/0.02881, allocations: 64.36 kB / 372.1 MB, free: 8.605 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00148/0.03029, allocations: 0.5641 MB / 372.7 MB, free: 7.992 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.393e-05/0.03032, allocations: 0 / 372.7 MB, free: 7.992 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.975e-05/0.03039, allocations: 20 kB / 372.7 MB, free: 7.973 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.969e-05/0.03042, allocations: 19.97 kB / 372.7 MB, free: 7.953 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001023/0.03144, allocations: 275.8 kB / 373 MB, free: 7.684 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004224/0.03566, allocations: 2.068 MB / 375.1 MB, free: 5.539 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008054/0.03647, allocations: 301.2 kB / 375.4 MB, free: 5.195 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003398/0.03681, allocations: 167.2 kB / 375.5 MB, free: 5.016 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.282e-05/0.03684, allocations: 8.234 kB / 375.5 MB, free: 5.008 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.424e-05/0.03689, allocations: 41.62 kB / 375.6 MB, free: 4.957 MB / 346.7 MB Notification: Performance of pre-optimization done (n=31): time 4.338e-06/0.03689, allocations: 3.984 kB / 375.6 MB, free: 4.953 MB / 346.7 MB Notification: Performance of matching and sorting (n=31): time 0.0009875/0.03788, allocations: 347.3 kB / 375.9 MB, free: 4.609 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001301/0.03801, allocations: 166.5 kB / 376.1 MB, free: 4.41 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005217/0.03853, allocations: 398.2 kB / 376.5 MB, free: 4 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.643e-05/0.0386, allocations: 53.62 kB / 376.5 MB, free: 3.941 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002975/0.03889, allocations: 319.7 kB / 376.8 MB, free: 3.621 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001327/0.03903, allocations: 115.2 kB / 376.9 MB, free: 3.508 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002334/0.03926, allocations: 135.9 kB / 377.1 MB, free: 3.367 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003558/0.03962, allocations: 0.5391 MB / 377.6 MB, free: 2.816 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003343/0.03995, allocations: 129.2 kB / 377.7 MB, free: 2.691 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005101/0.04046, allocations: 312.3 kB / 378 MB, free: 2.324 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006734/0.04113, allocations: 383.5 kB / 378.4 MB, free: 1.891 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.04114, allocations: 4 kB / 378.4 MB, free: 1.887 MB / 346.7 MB Notification: Performance of matching and sorting (n=63) (initialization): time 0.0009451/0.04208, allocations: 449 kB / 378.9 MB, free: 1.441 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/0.04211, allocations: 8.766 kB / 378.9 MB, free: 1.434 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.04212, allocations: 4.406 kB / 378.9 MB, free: 1.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.471e-05/0.04214, allocations: 12 kB / 378.9 MB, free: 1.418 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002965/0.04244, allocations: 63.84 kB / 378.9 MB, free: 1.355 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.54e-05/0.04245, allocations: 7.938 kB / 379 MB, free: 1.348 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002594/0.04271, allocations: 55.59 kB / 379 MB, free: 1.293 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.293e-05/0.04275, allocations: 27.92 kB / 379 MB, free: 1.266 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.0002739/0.04303, allocations: 229.8 kB / 379.3 MB, free: 1.031 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001414/0.04317, allocations: 39.81 kB / 379.3 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001192/0.04329, allocations: 47 kB / 379.3 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.04329, allocations: 4 kB / 379.3 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.0433, allocations: 7.938 kB / 379.4 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.04331, allocations: 4 kB / 379.4 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002039/0.04535, allocations: 1.334 MB / 380.7 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.04535, allocations: 0 / 380.7 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002288/0.04558, allocations: 43.91 kB / 380.7 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.203e-06/0.04559, allocations: 8.281 kB / 380.7 MB, free: 15.46 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.533e-05/0.04562, allocations: 12 kB / 380.8 MB, free: 15.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.575e-05/0.04564, allocations: 8 kB / 380.8 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.04564, allocations: 0 / 380.8 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009887/0.04663, allocations: 0.5949 MB / 381.4 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001477/0.04678, allocations: 59.72 kB / 381.4 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.417e-05/0.04683, allocations: 15.98 kB / 381.4 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001869/0.04702, allocations: 19.95 kB / 381.5 MB, free: 14.7 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.04714, allocations: 43.81 kB / 381.5 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.663e-05/0.04717, allocations: 12 kB / 381.5 MB, free: 14.64 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002855/0.04745, allocations: 247 kB / 381.7 MB, free: 14.4 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04745, allocations: 0 / 381.7 MB, free: 14.4 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004954/0.04795, allocations: 111.7 kB / 381.9 MB, free: 14.29 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.0001826/0.04813, allocations: 116.6 kB / 382 MB, free: 14.17 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008111/0.04894, allocations: 339.7 kB / 382.3 MB, free: 13.83 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.04895, allocations: 0 / 382.3 MB, free: 13.83 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002994/0.04925, allocations: 139.4 kB / 382.4 MB, free: 13.69 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006743/0.04992, allocations: 116.3 kB / 382.6 MB, free: 13.58 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001634/0.05155, allocations: 0.8035 MB / 383.4 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002881/0.05184, allocations: 223.9 kB / 383.6 MB, free: 12.46 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002337/0.05208, allocations: 51.25 kB / 383.6 MB, free: 12.41 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001173/0.05219, allocations: 40.5 kB / 383.7 MB, free: 12.38 MB / 362.7 MB Notification: Performance of SimCode: time 9.02e-07/0.05219, allocations: 0 / 383.7 MB, free: 12.38 MB / 362.7 MB Notification: Performance of Templates: time 0.01164/0.06384, allocations: 4.479 MB / 388.1 MB, free: 8.012 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: 5.009477328043431]