Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BusinessSimulation_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.001387/0.001387, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.001479/0.001479, allocations: 177 kB / 23.36 MB, free: 1.129 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.9528/0.9528, allocations: 177.1 MB / 203.8 MB, free: 5.484 MB / 186.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.1193/0.1193, allocations: 24.14 MB / 284.4 MB, free: 5.141 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.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII") translateModel(BusinessSimulation.Examples.SimpleProductionChainII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.262e-06/1.262e-06, allocations: 0 / 308.4 MB, free: 8.828 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.259e-05/2.386e-05, allocations: 3.844 kB / 308.4 MB, free: 8.824 MB / 282.7 MB Notification: Performance of NFInst.instantiate(BusinessSimulation.Examples.SimpleProductionChainII): time 0.00628/0.006304, allocations: 6.526 MB / 314.9 MB, free: 2.301 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002012/0.008316, allocations: 1.042 MB / 315.9 MB, free: 1.262 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005083/0.008824, allocations: 35.69 kB / 316 MB, free: 1.227 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003732/0.009197, allocations: 107 kB / 316.1 MB, free: 1.121 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003091/0.009507, allocations: 86.59 kB / 316.2 MB, free: 1.039 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007844/0.01029, allocations: 235.4 kB / 316.4 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007026/0.01099, allocations: 0.5775 MB / 317 MB, free: 232 kB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003903/0.01138, allocations: 217.1 kB / 317.2 MB, free: 12 kB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005055/0.01189, allocations: 351.2 kB / 317.5 MB, free: 15.67 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002875/0.01218, allocations: 168.4 kB / 317.7 MB, free: 15.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.541e-05/0.01226, allocations: 52 kB / 317.7 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000109/0.01237, allocations: 60.84 kB / 317.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001191/0.01249, allocations: 127.6 kB / 317.9 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001746/0.01266, allocations: 175.5 kB / 318.1 MB, free: 15.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005377/0.0132, allocations: 374.5 kB / 318.5 MB, free: 14.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.01321, allocations: 0 / 318.5 MB, free: 14.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.01321, allocations: 0 / 318.5 MB, free: 14.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.01322, allocations: 0 / 318.5 MB, free: 14.73 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.000995/0.01421, allocations: 0.6764 MB / 319.1 MB, free: 14.03 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.01425, allocations: 8.75 kB / 319.1 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003241/0.01458, allocations: 104.8 kB / 319.2 MB, free: 13.92 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005253/0.0151, allocations: 312.2 kB / 319.6 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.842e-05/0.01516, allocations: 45.38 kB / 319.6 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.122e-05/0.01524, allocations: 60.38 kB / 319.7 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005863/0.01583, allocations: 451.5 kB / 320.1 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.01584, allocations: 0 / 320.1 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.606e-05/0.01588, allocations: 20 kB / 320.1 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/0.0159, allocations: 12 kB / 320.1 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002261/0.01612, allocations: 130.7 kB / 320.3 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001821/0.01794, allocations: 1.398 MB / 321.7 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002454/0.01819, allocations: 159 kB / 321.8 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001106/0.0183, allocations: 96.52 kB / 321.9 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.64e-05/0.01832, allocations: 4 kB / 321.9 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/0.01835, allocations: 42.56 kB / 321.9 MB, free: 11.04 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.563e-06/0.01835, allocations: 4 kB / 322 MB, free: 11.04 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.0003737/0.01873, allocations: 171.4 kB / 322.1 MB, free: 10.87 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.973e-05/0.01881, allocations: 158.2 kB / 322.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002443/0.01905, allocations: 294.7 kB / 322.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.946e-05/0.01909, allocations: 37.7 kB / 322.6 MB, free: 10.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001618/0.01925, allocations: 257.3 kB / 322.8 MB, free: 10.08 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.317e-05/0.01932, allocations: 95.19 kB / 322.9 MB, free: 9.988 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001345/0.01946, allocations: 110.6 kB / 323 MB, free: 9.875 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.01958, allocations: 354.7 kB / 323.4 MB, free: 9.52 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001126/0.01969, allocations: 49.28 kB / 323.4 MB, free: 9.469 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001893/0.01988, allocations: 212.9 kB / 323.7 MB, free: 9.195 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003003/0.02018, allocations: 264.8 kB / 323.9 MB, free: 8.879 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.02019, allocations: 4 kB / 323.9 MB, free: 8.875 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.000396/0.02058, allocations: 274 kB / 324.2 MB, free: 8.602 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.0206, allocations: 8.562 kB / 324.2 MB, free: 8.594 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.02061, allocations: 11.98 kB / 324.2 MB, free: 8.582 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.222e-05/0.02063, allocations: 8 kB / 324.2 MB, free: 8.574 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001978/0.02083, allocations: 67.84 kB / 324.3 MB, free: 8.508 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.02084, allocations: 15.88 kB / 324.3 MB, free: 8.492 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001604/0.021, allocations: 47.62 kB / 324.3 MB, free: 8.445 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.958e-05/0.02103, allocations: 19.98 kB / 324.4 MB, free: 8.426 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.0001569/0.02119, allocations: 161.7 kB / 324.5 MB, free: 8.258 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.836e-05/0.02129, allocations: 27.97 kB / 324.5 MB, free: 8.23 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.394e-05/0.02134, allocations: 42.39 kB / 324.6 MB, free: 8.188 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.02135, allocations: 4 kB / 324.6 MB, free: 8.184 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.02135, allocations: 4 kB / 324.6 MB, free: 8.18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.02136, allocations: 11.92 kB / 324.6 MB, free: 8.168 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009643/0.02233, allocations: 0.779 MB / 325.4 MB, free: 7.332 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.02233, allocations: 4 kB / 325.4 MB, free: 7.328 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000151/0.02248, allocations: 35.92 kB / 325.4 MB, free: 7.293 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.561e-06/0.02249, allocations: 4.25 kB / 325.4 MB, free: 7.289 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.346e-05/0.02251, allocations: 15.94 kB / 325.4 MB, free: 7.273 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.02251, allocations: 4 kB / 325.4 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.02252, allocations: 0 / 325.4 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003587/0.02288, allocations: 331.2 kB / 325.8 MB, free: 6.898 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.034e-05/0.02296, allocations: 43.69 kB / 325.8 MB, free: 6.855 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.898e-05/0.02299, allocations: 15.92 kB / 325.8 MB, free: 6.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001169/0.02311, allocations: 8 kB / 325.8 MB, free: 6.832 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.199e-05/0.02318, allocations: 35.89 kB / 325.9 MB, free: 6.797 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.192e-05/0.02321, allocations: 16.06 kB / 325.9 MB, free: 6.781 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001032/0.02331, allocations: 92.62 kB / 326 MB, free: 6.688 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.02331, allocations: 0 / 326 MB, free: 6.688 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000416/0.02372, allocations: 103.7 kB / 326.1 MB, free: 6.586 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.0001286/0.02385, allocations: 103.2 kB / 326.2 MB, free: 6.48 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002996/0.02415, allocations: 206.7 kB / 326.4 MB, free: 6.277 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/0.02416, allocations: 4 kB / 326.4 MB, free: 6.273 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.02427, allocations: 77.2 kB / 326.5 MB, free: 6.195 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004245/0.02469, allocations: 89.88 kB / 326.5 MB, free: 6.113 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001106/0.0258, allocations: 0.7503 MB / 327.3 MB, free: 5.309 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.47e-05/0.02589, allocations: 113.1 kB / 327.4 MB, free: 5.176 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001827/0.02608, allocations: 55.28 kB / 327.5 MB, free: 5.117 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002183/0.0263, allocations: 131.3 kB / 327.6 MB, free: 4.988 MB / 298.7 MB Notification: Performance of SimCode: time 1.222e-06/0.0263, allocations: 0 / 327.6 MB, free: 4.988 MB / 298.7 MB Notification: Performance of Templates: time 0.008096/0.03439, allocations: 4.414 MB / 332 MB, free: 0.6914 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.makefile [Timeout 660] (rm -f BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; mkfifo BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe ; head -c 1048576 < BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe >> ../files/BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.sim & ./BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII -abortSlowSimulation -alarm=240 -lv LOG_STATS > BusinessSimulation_BusinessSimulation.Examples.SimpleProductionChainII.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.7946439748629928]