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.0008672/0.0008672, allocations: 80.94 kB / 19.94 MB, free: 4.547 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.0009306/0.0009306, allocations: 173 kB / 23.36 MB, free: 1.133 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.094/1.094, allocations: 177.1 MB / 203.8 MB, free: 5.477 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.1083/0.1083, allocations: 24.14 MB / 284.4 MB, free: 5.125 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.412e-06/1.412e-06, allocations: 0 / 308.4 MB, free: 8.902 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.772e-05/1.914e-05, allocations: 3.078 kB / 308.4 MB, free: 8.898 MB / 282.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.008265/0.008284, allocations: 6.572 MB / 315 MB, free: 2.336 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002059/0.01034, allocations: 1.051 MB / 316 MB, free: 1.289 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003386/0.01068, allocations: 35.75 kB / 316.1 MB, free: 1.254 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002868/0.01097, allocations: 103 kB / 316.2 MB, free: 1.152 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002444/0.01121, allocations: 91.05 kB / 316.2 MB, free: 1.062 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005975/0.01181, allocations: 231.4 kB / 316.5 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006133/0.01242, allocations: 0.5775 MB / 317 MB, free: 260 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003587/0.01278, allocations: 217.1 kB / 317.3 MB, free: 40 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004513/0.01323, allocations: 355.2 kB / 317.6 MB, free: 15.69 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002501/0.01348, allocations: 163.5 kB / 317.8 MB, free: 15.53 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.745e-05/0.01356, allocations: 55.98 kB / 317.8 MB, free: 15.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000124/0.01369, allocations: 63.98 kB / 317.9 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.0138, allocations: 123.6 kB / 318 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001456/0.01394, allocations: 167.6 kB / 318.2 MB, free: 15.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004658/0.01441, allocations: 378.4 kB / 318.5 MB, free: 14.76 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.305e-06/0.01441, allocations: 0 / 318.5 MB, free: 14.76 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.01441, allocations: 3.938 kB / 318.5 MB, free: 14.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.01442, allocations: 0 / 318.5 MB, free: 14.75 MB / 298.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.0009106/0.01533, allocations: 0.6841 MB / 319.2 MB, free: 14.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.01536, allocations: 8.75 kB / 319.2 MB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003178/0.01568, allocations: 100.8 kB / 319.3 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005161/0.0162, allocations: 308.3 kB / 319.6 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.587e-05/0.01625, allocations: 45.38 kB / 319.7 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.81e-05/0.01634, allocations: 64.36 kB / 319.7 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005915/0.01693, allocations: 447.5 kB / 320.2 MB, free: 13.03 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/0.01695, allocations: 0 / 320.2 MB, free: 13.03 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.913e-05/0.01699, allocations: 23.98 kB / 320.2 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.655e-05/0.01701, allocations: 12 kB / 320.2 MB, free: 12.99 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002447/0.01725, allocations: 126.8 kB / 320.3 MB, free: 12.87 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001813/0.01906, allocations: 1.394 MB / 321.7 MB, free: 11.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002304/0.01929, allocations: 159 kB / 321.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001184/0.01941, allocations: 93.08 kB / 322 MB, free: 11.13 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.707e-05/0.01943, allocations: 7.984 kB / 322 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.085e-05/0.01946, allocations: 42.56 kB / 322 MB, free: 11.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.843e-06/0.01946, allocations: 0 / 322 MB, free: 11.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.0003663/0.01983, allocations: 179.4 kB / 322.2 MB, free: 10.89 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.268e-05/0.0199, allocations: 162.5 kB / 322.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002401/0.02014, allocations: 290.7 kB / 322.6 MB, free: 10.4 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.057e-05/0.02018, allocations: 37.7 kB / 322.7 MB, free: 10.36 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001644/0.02035, allocations: 265.2 kB / 322.9 MB, free: 10.1 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.176e-05/0.02042, allocations: 95.19 kB / 323 MB, free: 10 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001413/0.02056, allocations: 110.2 kB / 323.1 MB, free: 9.891 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.02069, allocations: 346.7 kB / 323.5 MB, free: 9.543 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001273/0.02082, allocations: 49.28 kB / 323.5 MB, free: 9.492 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002039/0.02102, allocations: 220.9 kB / 323.7 MB, free: 9.215 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003172/0.02134, allocations: 268.8 kB / 324 MB, free: 8.895 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.651e-06/0.02135, allocations: 4 kB / 324 MB, free: 8.891 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0004359/0.02178, allocations: 273.1 kB / 324.3 MB, free: 8.617 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.0218, allocations: 8 kB / 324.3 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.02181, allocations: 4 kB / 324.3 MB, free: 8.605 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.02183, allocations: 8 kB / 324.3 MB, free: 8.598 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002265/0.02205, allocations: 71.83 kB / 324.4 MB, free: 8.527 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.431e-05/0.02207, allocations: 15.88 kB / 324.4 MB, free: 8.512 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001769/0.02225, allocations: 48.09 kB / 324.4 MB, free: 8.465 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.382e-05/0.02228, allocations: 20 kB / 324.4 MB, free: 8.445 MB / 298.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.000175/0.02245, allocations: 165.7 kB / 324.6 MB, free: 8.273 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.02256, allocations: 31.97 kB / 324.6 MB, free: 8.242 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.256e-05/0.02262, allocations: 38.45 kB / 324.7 MB, free: 8.203 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.02263, allocations: 4 kB / 324.7 MB, free: 8.199 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.02263, allocations: 0 / 324.7 MB, free: 8.199 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.185e-06/0.02264, allocations: 7.922 kB / 324.7 MB, free: 8.191 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001002/0.02364, allocations: 0.7752 MB / 325.5 MB, free: 7.359 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.02364, allocations: 0 / 325.5 MB, free: 7.359 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001765/0.02382, allocations: 43.91 kB / 325.5 MB, free: 7.316 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.071e-06/0.02383, allocations: 4 kB / 325.5 MB, free: 7.312 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.718e-05/0.02385, allocations: 11.94 kB / 325.5 MB, free: 7.301 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.582e-06/0.02386, allocations: 4 kB / 325.5 MB, free: 7.297 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.02386, allocations: 4 kB / 325.5 MB, free: 7.293 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003799/0.02424, allocations: 344 kB / 325.9 MB, free: 6.91 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.226e-05/0.02433, allocations: 43.69 kB / 325.9 MB, free: 6.867 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.183e-05/0.02437, allocations: 11.94 kB / 325.9 MB, free: 6.855 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001324/0.0245, allocations: 11.98 kB / 325.9 MB, free: 6.844 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.861e-05/0.02458, allocations: 35.89 kB / 326 MB, free: 6.809 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-05/0.0246, allocations: 8 kB / 326 MB, free: 6.801 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.72e-05/0.02469, allocations: 92.62 kB / 326.1 MB, free: 6.707 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.02469, allocations: 3.938 kB / 326.1 MB, free: 6.703 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003815/0.02508, allocations: 99.73 kB / 326.2 MB, free: 6.605 MB / 298.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 0.0001195/0.0252, allocations: 106.3 kB / 326.3 MB, free: 6.496 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000326/0.02552, allocations: 206 kB / 326.5 MB, free: 6.293 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.183e-05/0.02553, allocations: 4 kB / 326.5 MB, free: 6.289 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001203/0.02565, allocations: 77.2 kB / 326.5 MB, free: 6.215 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004402/0.02609, allocations: 97.14 kB / 326.6 MB, free: 6.129 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001074/0.02717, allocations: 0.7452 MB / 327.4 MB, free: 5.328 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.272e-05/0.02726, allocations: 109.3 kB / 327.5 MB, free: 5.199 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001844/0.02745, allocations: 55.27 kB / 327.5 MB, free: 5.141 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002512/0.0277, allocations: 135.3 kB / 327.7 MB, free: 5.008 MB / 298.7 MB Notification: Performance of SimCode: time 7.82e-07/0.0277, allocations: 0 / 327.7 MB, free: 5.008 MB / 298.7 MB Notification: Performance of Templates: time 0.009401/0.0371, allocations: 4.418 MB / 332.1 MB, free: 0.7188 MB / 298.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 -s gbode -gbm=radauIIA3 -lv LOG_STATS > BusinessSimulation_dev_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.898933649994433]