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.0006711/0.0006711, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009212/0.001592, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.0006692/0.0006692, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008709/0.00154, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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.021/1.021, allocations: 177.2 MB / 189.7 MB, free: 5.234 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09377/1.115, allocations: 53.67 MB / 243.4 MB, free: 15.5 MB / 250.7 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.1719/0.1719, allocations: 24.14 MB / 268.3 MB, free: 6.977 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1084/0.2802, allocations: 7.77 MB / 276.1 MB, free: 0.8281 MB / 266.7 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.242e-06/1.242e-06, allocations: 0 / 277.5 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.516e-06/9.758e-06, allocations: 3.531 kB / 277.5 MB, free: 92 kB / 266.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChain): time 0.004724/0.004734, allocations: 5.321 MB / 282.8 MB, free: 12.58 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009607/0.005694, allocations: 0.6417 MB / 283.5 MB, free: 12.13 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001615/0.005856, allocations: 16.56 kB / 283.5 MB, free: 12.12 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001598/0.006016, allocations: 86.66 kB / 283.6 MB, free: 12.07 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001378/0.006153, allocations: 72.12 kB / 283.6 MB, free: 12.02 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003533/0.006507, allocations: 195.9 kB / 283.8 MB, free: 11.9 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003929/0.0069, allocations: 463.5 kB / 284.3 MB, free: 11.67 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002083/0.007108, allocations: 162.8 kB / 284.4 MB, free: 11.58 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002866/0.007395, allocations: 302.9 kB / 284.7 MB, free: 11.43 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001929/0.007588, allocations: 134.2 kB / 284.9 MB, free: 11.39 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.328e-05/0.007641, allocations: 46.38 kB / 284.9 MB, free: 11.38 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.052e-05/0.007731, allocations: 50.69 kB / 285 MB, free: 11.38 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.359e-05/0.007805, allocations: 76.53 kB / 285 MB, free: 11.37 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.564e-05/0.007901, allocations: 112.1 kB / 285.1 MB, free: 11.35 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003026/0.008203, allocations: 269.6 kB / 285.4 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.089e-05/0.008214, allocations: 0.9844 kB / 285.4 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.008215, allocations: 3.062 kB / 285.4 MB, free: 11.24 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.231e-05/0.008227, allocations: 1.125 kB / 285.4 MB, free: 11.24 MB / 282.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.0007172/0.008944, allocations: 0.6642 MB / 286.1 MB, free: 10.81 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.926e-05/0.008974, allocations: 9.797 kB / 286.1 MB, free: 10.81 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002364/0.00921, allocations: 161.1 kB / 286.2 MB, free: 10.7 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002899/0.0095, allocations: 262.5 kB / 286.5 MB, free: 10.5 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.501e-05/0.009535, allocations: 38.31 kB / 286.5 MB, free: 10.49 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.785e-05/0.009593, allocations: 49.3 kB / 286.6 MB, free: 10.47 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003335/0.009926, allocations: 387.3 kB / 287 MB, free: 10.23 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.009938, allocations: 6.688 kB / 287 MB, free: 10.22 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.919e-05/0.009957, allocations: 16.5 kB / 287 MB, free: 10.21 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.009969, allocations: 12.69 kB / 287 MB, free: 10.21 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001156/0.01008, allocations: 95.97 kB / 287.1 MB, free: 10.2 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001081/0.01117, allocations: 1.228 MB / 288.3 MB, free: 9.25 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001652/0.01133, allocations: 154.6 kB / 288.5 MB, free: 9.133 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.655e-05/0.0114, allocations: 67.91 kB / 288.5 MB, free: 9.094 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.213e-05/0.01141, allocations: 5.594 kB / 288.5 MB, free: 9.094 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.01143, allocations: 40.14 kB / 288.6 MB, free: 9.051 MB / 282.7 MB Notification: Performance of pre-optimization done (n=25): time 1.573e-06/0.01144, allocations: 0 / 288.6 MB, free: 9.051 MB / 282.7 MB Notification: Performance of matching and sorting (n=25): time 0.0002424/0.01168, allocations: 152.6 kB / 288.7 MB, free: 9.004 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.246e-05/0.01172, allocations: 137.4 kB / 288.9 MB, free: 8.844 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001599/0.01188, allocations: 257.5 kB / 289.1 MB, free: 8.68 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.089e-05/0.01191, allocations: 44.19 kB / 289.2 MB, free: 8.637 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.922e-05/0.01201, allocations: 221.2 kB / 289.4 MB, free: 8.449 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.369e-05/0.01205, allocations: 86 kB / 289.5 MB, free: 8.375 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.275e-05/0.01214, allocations: 102.7 kB / 289.6 MB, free: 8.309 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.309e-05/0.01222, allocations: 346 kB / 289.9 MB, free: 7.969 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.852e-05/0.01229, allocations: 50.56 kB / 289.9 MB, free: 7.953 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001202/0.01241, allocations: 204.9 kB / 290.1 MB, free: 7.75 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000185/0.01259, allocations: 255.9 kB / 290.4 MB, free: 7.539 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.0126, allocations: 2.219 kB / 290.4 MB, free: 7.539 MB / 282.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0002372/0.01283, allocations: 266.7 kB / 290.7 MB, free: 7.418 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/0.01285, allocations: 6.875 kB / 290.7 MB, free: 7.418 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.01285, allocations: 4.125 kB / 290.7 MB, free: 7.418 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.01286, allocations: 7.406 kB / 290.7 MB, free: 7.418 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.013, allocations: 74 kB / 290.7 MB, free: 7.395 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.01301, allocations: 13.64 kB / 290.8 MB, free: 7.387 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.735e-05/0.01311, allocations: 48.78 kB / 290.8 MB, free: 7.352 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.008e-05/0.01313, allocations: 20.44 kB / 290.8 MB, free: 7.344 MB / 282.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 9.902e-05/0.01323, allocations: 160.7 kB / 291 MB, free: 7.199 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.413e-05/0.01328, allocations: 26.88 kB / 291 MB, free: 7.188 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.823e-05/0.01332, allocations: 32.95 kB / 291 MB, free: 7.16 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.01332, allocations: 3.406 kB / 291 MB, free: 7.16 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.01333, allocations: 1.469 kB / 291 MB, free: 7.16 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.01333, allocations: 5.312 kB / 291.1 MB, free: 7.156 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006291/0.01396, allocations: 0.7563 MB / 291.8 MB, free: 6.48 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.01397, allocations: 3.781 kB / 291.8 MB, free: 6.48 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001052/0.01407, allocations: 35.38 kB / 291.8 MB, free: 6.469 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.143e-05/0.01412, allocations: 42.73 kB / 291.9 MB, free: 6.441 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.01413, allocations: 2.562 kB / 291.9 MB, free: 6.441 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.744e-05/0.01414, allocations: 18.25 kB / 291.9 MB, free: 6.43 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.418e-06/0.01415, allocations: 4.062 kB / 291.9 MB, free: 6.43 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.01415, allocations: 2.156 kB / 291.9 MB, free: 6.43 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002294/0.01438, allocations: 324.7 kB / 292.2 MB, free: 6.168 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.436e-05/0.0144, allocations: 13.73 kB / 292.2 MB, free: 6.16 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.516e-05/0.01448, allocations: 7.906 kB / 292.3 MB, free: 6.156 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.767e-05/0.01453, allocations: 34.52 kB / 292.3 MB, free: 6.133 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/0.01454, allocations: 10.53 kB / 292.3 MB, free: 6.129 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.332e-05/0.01459, allocations: 77.31 kB / 292.4 MB, free: 6.09 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01459, allocations: 0 / 292.4 MB, free: 6.09 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002276/0.01482, allocations: 89.3 kB / 292.5 MB, free: 6.062 MB / 282.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 8.575e-05/0.01491, allocations: 102.2 kB / 292.6 MB, free: 5.98 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001984/0.0151, allocations: 191.9 kB / 292.7 MB, free: 5.918 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.069e-05/0.01511, allocations: 9.688 kB / 292.8 MB, free: 5.914 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.14e-05/0.01519, allocations: 76.77 kB / 292.8 MB, free: 5.883 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003663/0.01555, allocations: 466.6 kB / 293.3 MB, free: 5.426 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009349/0.01649, allocations: 0.6661 MB / 294 MB, free: 4.902 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.247e-05/0.01655, allocations: 108.1 kB / 294.1 MB, free: 4.805 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001029/0.01665, allocations: 41.94 kB / 294.1 MB, free: 4.785 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001427/0.01679, allocations: 121.4 kB / 294.2 MB, free: 4.723 MB / 282.7 MB Notification: Performance of SimCode: time 6.71e-07/0.0168, allocations: 1.344 kB / 294.2 MB, free: 4.723 MB / 282.7 MB Notification: Performance of Templates: time 0.005408/0.0222, allocations: 3.678 MB / 297.9 MB, free: 2.555 MB / 282.7 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=240 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChain.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.7253814162686467]