Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 91.61 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.444/1.444, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.3447/0.3447, allocations: 22.35 MB / 313.4 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005189/0.0005191, allocations: 8 kB / 381.9 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4305/0.4311, allocations: 55.98 MB / 437.9 MB, free: 39.51 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.004324/0.4354, allocations: 3.338 MB / 441.3 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00273/0.4382, allocations: 1.091 MB / 442.3 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000651/0.4389, allocations: 9.125 kB / 442.4 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004249/0.4393, allocations: 66.3 kB / 442.4 MB, free: 36.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001175/0.4405, allocations: 215 kB / 442.6 MB, free: 36.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001044/0.4416, allocations: 178.5 kB / 442.8 MB, free: 36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001511/0.4431, allocations: 0.896 MB / 443.7 MB, free: 35.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001388/0.4446, allocations: 0.5369 MB / 444.2 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001095/0.4457, allocations: 387.2 kB / 444.6 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001426/0.4471, allocations: 0.562 MB / 445.2 MB, free: 35.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004429/0.4476, allocations: 68 kB / 445.2 MB, free: 35.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005775/0.4482, allocations: 94.81 kB / 445.3 MB, free: 35.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004575/0.4486, allocations: 243.4 kB / 445.6 MB, free: 34.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004503/0.4491, allocations: 147.6 kB / 445.7 MB, free: 34.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001119/0.4502, allocations: 0.7918 MB / 446.5 MB, free: 34.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.4503, allocations: 6.969 kB / 446.5 MB, free: 34.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.4503, allocations: 0 / 446.5 MB, free: 34.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.7e-05/0.4504, allocations: 0 / 446.5 MB, free: 34.64 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.003862/0.4542, allocations: 1.019 MB / 447.5 MB, free: 34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.4543, allocations: 11.22 kB / 447.5 MB, free: 34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003415/0.4546, allocations: 74.69 kB / 447.6 MB, free: 33.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001221/0.4559, allocations: 468.8 kB / 448.1 MB, free: 33.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.133e-05/0.456, allocations: 48.75 kB / 448.1 MB, free: 33.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002661/0.4562, allocations: 59.36 kB / 448.2 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002008/0.4583, allocations: 0.7562 MB / 448.9 MB, free: 33.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/0.4583, allocations: 2.656 kB / 448.9 MB, free: 33.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001122/0.4584, allocations: 18.69 kB / 449 MB, free: 33.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.111e-05/0.4585, allocations: 17.5 kB / 449 MB, free: 33.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001956/0.4604, allocations: 0.8218 MB / 449.8 MB, free: 32.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005269/0.4657, allocations: 2.077 MB / 451.9 MB, free: 31.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001438/0.4672, allocations: 0.6703 MB / 452.5 MB, free: 31.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009911/0.4682, allocations: 405 kB / 452.9 MB, free: 31.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.808e-05/0.4683, allocations: 14.77 kB / 453 MB, free: 31.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.463e-05/0.4683, allocations: 45.64 kB / 453 MB, free: 31.47 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008424/0.4692, allocations: 151.2 kB / 453.1 MB, free: 31.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 5.009e-06/0.4692, allocations: 2.781 kB / 453.2 MB, free: 31.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.009031/0.4782, allocations: 2.511 MB / 455.7 MB, free: 30.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.432e-05/0.4783, allocations: 66.14 kB / 455.7 MB, free: 30.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008448/0.4792, allocations: 494.7 kB / 456.2 MB, free: 30.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001013/0.4793, allocations: 36.89 kB / 456.2 MB, free: 30.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002167/0.4795, allocations: 293.4 kB / 456.5 MB, free: 29.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002298/0.4797, allocations: 248 kB / 456.8 MB, free: 29.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.599e-05/0.4798, allocations: 15.34 kB / 456.8 MB, free: 29.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.48, allocations: 375.9 kB / 457.2 MB, free: 29.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007977/0.4808, allocations: 361.5 kB / 457.5 MB, free: 29.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007896/0.4816, allocations: 486.9 kB / 458 MB, free: 28.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007774/0.4824, allocations: 431.6 kB / 458.4 MB, free: 28.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.4824, allocations: 5.156 kB / 458.4 MB, free: 28.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.005468/0.4878, allocations: 1.635 MB / 460 MB, free: 28.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.145e-05/0.4879, allocations: 6.531 kB / 460.1 MB, free: 28.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.768e-05/0.4879, allocations: 3.562 kB / 460.1 MB, free: 28.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003914/0.4918, allocations: 0.675 MB / 460.7 MB, free: 28.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001634/0.4935, allocations: 248.6 kB / 461 MB, free: 28.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005328/0.4989, allocations: 3.894 MB / 464.9 MB, free: 25.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008932/0.4998, allocations: 35.2 kB / 464.9 MB, free: 25.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.462e-05/0.4999, allocations: 45.58 kB / 464.9 MB, free: 25.06 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 8} * Non-linear torn systems: 2 {2 5,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003306/0.5002, allocations: 205.1 kB / 465.1 MB, free: 24.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001116/0.5003, allocations: 61.67 kB / 465.2 MB, free: 24.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003579/0.5039, allocations: 1.395 MB / 466.6 MB, free: 24.3 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/0.5039, allocations: 9.406 kB / 466.6 MB, free: 24.3 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.096e-06/0.504, allocations: 3.344 kB / 466.6 MB, free: 24.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.343e-05/0.504, allocations: 8.219 kB / 466.6 MB, free: 24.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001225/0.5052, allocations: 0.8023 MB / 467.4 MB, free: 23.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.346e-06/0.5052, allocations: 4 kB / 467.4 MB, free: 23.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001075/0.5063, allocations: 211 kB / 467.6 MB, free: 23.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00189/0.5082, allocations: 462 kB / 468.1 MB, free: 23.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.419e-05/0.5083, allocations: 25.52 kB / 468.1 MB, free: 23.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003067/0.5114, allocations: 3.24 MB / 471.4 MB, free: 20.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.5114, allocations: 1.469 kB / 471.4 MB, free: 20.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003866/0.5153, allocations: 1.778 MB / 473.1 MB, free: 20.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002019/0.5155, allocations: 143.7 kB / 473.3 MB, free: 20.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/0.5156, allocations: 24.8 kB / 473.3 MB, free: 20.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004771/0.5161, allocations: 27.39 kB / 473.3 MB, free: 20.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001714/0.5163, allocations: 63.09 kB / 473.4 MB, free: 20.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-05/0.5163, allocations: 33.14 kB / 473.4 MB, free: 20 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004406/0.5168, allocations: 338.8 kB / 473.7 MB, free: 19.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5168, allocations: 1.094 kB / 473.7 MB, free: 19.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009219/0.5177, allocations: 247.5 kB / 474 MB, free: 19.79 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (streamNL.T[1],streamNL.T[2],streamNL.T[3],streamNL.T[4],streamNL.T[5],streamLIN.T[1],streamLIN.T[2],streamLIN.T[3],streamLIN.T[4],streamLIN.T[5]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 8} * Non-linear torn systems: 2 {2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001981/0.5179, allocations: 133.7 kB / 474.1 MB, free: 19.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002869/0.5208, allocations: 1.172 MB / 475.3 MB, free: 19.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.5208, allocations: 1.594 kB / 475.3 MB, free: 19.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001347/0.5222, allocations: 0.6852 MB / 476 MB, free: 18.86 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006494/0.5228, allocations: 140.6 kB / 476.1 MB, free: 18.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003972/0.5268, allocations: 2.514 MB / 478.6 MB, free: 17.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000471/0.5273, allocations: 0.9387 MB / 479.6 MB, free: 16.67 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006541/0.528, allocations: 146.6 kB / 479.7 MB, free: 16.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002426/0.5282, allocations: 68.33 kB / 479.8 MB, free: 16.63 MB / 350.1 MB Notification: Performance of SimCode: time 1.132e-06/0.5282, allocations: 0 / 479.8 MB, free: 16.63 MB / 350.1 MB Notification: Performance of Templates: time 0.01691/0.5451, allocations: 11.77 MB / 491.5 MB, free: 7.047 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002.pipe 2>&1)