Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_dev_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.0009964/0.0009964, allocations: 82.05 kB / 19.87 MB, free: 4.617 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.0009772/0.0009772, allocations: 169.7 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 1.028/1.028, allocations: 177.2 MB / 203.7 MB, free: 5.5 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.1032/0.1032, allocations: 24.14 MB / 284.4 MB, free: 5.082 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.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain") translateModel(BusinessSimulation.Examples.SimpleProductionChain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.795e-06/2.795e-06, allocations: 3.938 kB / 361.6 MB, free: 3.73 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.046e-05/3.325e-05, allocations: 2.312 kB / 361.6 MB, free: 3.727 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.007636/0.007669, allocations: 5.234 MB / 366.9 MB, free: 14.46 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001351/0.00902, allocations: 0.6114 MB / 367.5 MB, free: 13.85 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002445/0.009265, allocations: 11.94 kB / 367.5 MB, free: 13.84 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002212/0.009486, allocations: 83.27 kB / 367.6 MB, free: 13.75 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001806/0.009667, allocations: 79.23 kB / 367.6 MB, free: 13.68 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005814/0.01025, allocations: 187.4 kB / 367.8 MB, free: 13.49 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004718/0.01072, allocations: 479 kB / 368.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002204/0.01094, allocations: 146.8 kB / 368.4 MB, free: 12.88 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003262/0.01127, allocations: 295.4 kB / 368.7 MB, free: 12.59 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000192/0.01146, allocations: 135.6 kB / 368.9 MB, free: 12.46 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.083e-05/0.01151, allocations: 48 kB / 368.9 MB, free: 12.41 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.857e-05/0.0116, allocations: 51.94 kB / 369 MB, free: 12.36 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 8.566e-05/0.01168, allocations: 107.6 kB / 369.1 MB, free: 12.26 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 9.955e-05/0.01178, allocations: 139.6 kB / 369.2 MB, free: 12.12 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003141/0.0121, allocations: 302.8 kB / 369.5 MB, free: 11.82 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.0121, allocations: 0 / 369.5 MB, free: 11.82 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.0121, allocations: 0 / 369.5 MB, free: 11.82 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.01211, allocations: 0 / 369.5 MB, free: 11.82 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.0006729/0.01278, allocations: 0.7102 MB / 370.2 MB, free: 11.08 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.01282, allocations: 12.75 kB / 370.2 MB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000199/0.01302, allocations: 92.62 kB / 370.3 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003221/0.01334, allocations: 294.2 kB / 370.6 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.305e-05/0.01338, allocations: 37.38 kB / 370.6 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.018e-05/0.01343, allocations: 48.38 kB / 370.7 MB, free: 10.57 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003712/0.0138, allocations: 398.3 kB / 371.1 MB, free: 10.13 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.219e-05/0.01382, allocations: 7.938 kB / 371.1 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.083e-05/0.01384, allocations: 20 kB / 371.1 MB, free: 10.11 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.01385, allocations: 11.98 kB / 371.1 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001229/0.01397, allocations: 106.8 kB / 371.2 MB, free: 9.988 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001283/0.01525, allocations: 1.74 MB / 372.9 MB, free: 8.184 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001785/0.01543, allocations: 188.2 kB / 373.1 MB, free: 7.953 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.358e-05/0.0155, allocations: 98.11 kB / 373.2 MB, free: 7.844 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.371e-05/0.01552, allocations: 4 kB / 373.2 MB, free: 7.84 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.441e-05/0.01554, allocations: 45.33 kB / 373.3 MB, free: 7.785 MB / 346.7 MB Notification: Performance of pre-optimization done (n=25): time 1.703e-06/0.01554, allocations: 4 kB / 373.3 MB, free: 7.781 MB / 346.7 MB Notification: Performance of matching and sorting (n=25): time 0.0002773/0.01582, allocations: 188.2 kB / 373.5 MB, free: 7.594 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.126e-05/0.01587, allocations: 158.2 kB / 373.6 MB, free: 7.402 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001813/0.01605, allocations: 308 kB / 373.9 MB, free: 7.086 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.821e-05/0.01608, allocations: 41.7 kB / 374 MB, free: 7.039 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001205/0.0162, allocations: 279.1 kB / 374.2 MB, free: 6.762 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.918e-05/0.01625, allocations: 79.36 kB / 374.3 MB, free: 6.684 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.947e-05/0.01635, allocations: 116.1 kB / 374.4 MB, free: 6.562 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.01648, allocations: 0.5157 MB / 374.9 MB, free: 6.035 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.464e-05/0.01657, allocations: 48.95 kB / 375 MB, free: 5.984 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001516/0.01672, allocations: 266.5 kB / 375.2 MB, free: 5.648 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002126/0.01693, allocations: 294 kB / 375.5 MB, free: 5.285 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.01694, allocations: 0 / 375.5 MB, free: 5.285 MB / 346.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0003092/0.01725, allocations: 328.9 kB / 375.9 MB, free: 4.957 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.01726, allocations: 11.94 kB / 375.9 MB, free: 4.945 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.01727, allocations: 4.531 kB / 375.9 MB, free: 4.941 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.01728, allocations: 8 kB / 375.9 MB, free: 4.934 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.0174, allocations: 63.84 kB / 375.9 MB, free: 4.871 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.01741, allocations: 4 kB / 375.9 MB, free: 4.867 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.586e-05/0.01751, allocations: 51.56 kB / 376 MB, free: 4.816 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.051e-05/0.01753, allocations: 15.98 kB / 376 MB, free: 4.801 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (62): * Single equations (assignments): 62 * 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.0001217/0.01765, allocations: 209.7 kB / 376.2 MB, free: 4.586 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.21e-05/0.01771, allocations: 43.73 kB / 376.3 MB, free: 4.543 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.583e-05/0.01775, allocations: 30.27 kB / 376.3 MB, free: 4.516 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.01775, allocations: 4 kB / 376.3 MB, free: 4.512 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.01775, allocations: 0 / 376.3 MB, free: 4.512 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.01776, allocations: 8 kB / 376.3 MB, free: 4.504 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007484/0.0185, allocations: 1.022 MB / 377.3 MB, free: 3.398 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/0.01851, allocations: 4 kB / 377.3 MB, free: 3.395 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.468e-05/0.0186, allocations: 31.86 kB / 377.4 MB, free: 3.363 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.01861, allocations: 7.984 kB / 377.4 MB, free: 3.355 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.01862, allocations: 8.312 kB / 377.4 MB, free: 3.348 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.068e-06/0.01863, allocations: 11.94 kB / 377.4 MB, free: 3.336 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.01863, allocations: 7.938 kB / 377.4 MB, free: 3.328 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003021/0.01893, allocations: 448.9 kB / 377.8 MB, free: 2.828 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.806e-05/0.01899, allocations: 43.73 kB / 377.9 MB, free: 2.785 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.453e-05/0.01902, allocations: 11.94 kB / 377.9 MB, free: 2.773 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.957e-05/0.01909, allocations: 8 kB / 377.9 MB, free: 2.766 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.088e-05/0.01914, allocations: 27.95 kB / 377.9 MB, free: 2.738 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.024e-05/0.01915, allocations: 12 kB / 377.9 MB, free: 2.727 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.666e-05/0.01922, allocations: 185.1 kB / 378.1 MB, free: 2.543 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01922, allocations: 0 / 378.1 MB, free: 2.543 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002639/0.01949, allocations: 91.78 kB / 378.2 MB, free: 2.453 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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,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 (25): * Single equations (assignments): 25 * 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 9.882e-05/0.01959, allocations: 121 kB / 378.3 MB, free: 2.328 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002312/0.01982, allocations: 209 kB / 378.5 MB, free: 2.121 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.01982, allocations: 0 / 378.5 MB, free: 2.121 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 7.386e-05/0.01989, allocations: 71.69 kB / 378.6 MB, free: 2.047 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003071/0.0202, allocations: 72.42 kB / 378.7 MB, free: 1.98 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007091/0.02091, allocations: 0.6637 MB / 379.3 MB, free: 1.238 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.303e-05/0.02097, allocations: 96.61 kB / 379.4 MB, free: 1.125 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001106/0.02108, allocations: 47.25 kB / 379.5 MB, free: 1.078 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001427/0.02123, allocations: 146.2 kB / 379.6 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of SimCode: time 7.01e-07/0.02123, allocations: 0 / 379.6 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of Templates: time 0.006045/0.02727, allocations: 3.739 MB / 383.4 MB, free: 13.3 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.makefile [Timeout 660] (rm -f BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; mkfifo BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe ; head -c 1048576 < BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe >> ../files/BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.sim & ./BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain -abortSlowSimulation -alarm=240 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.896063168067485]