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_001.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_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001179/0.001179, allocations: 195.9 kB / 16.26 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.344/1.344, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1971/0.1971, allocations: 22.36 MB / 312.4 MB, free: 12.64 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 59.91 kB / 380.3 MB, free: 10.92 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2939/0.2952, allocations: 54.93 MB / 435.2 MB, free: 39.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.003421/0.2986, allocations: 3.309 MB / 438.6 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001526/0.3002, allocations: 0.9775 MB / 439.5 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000159/0.3004, allocations: 2.531 kB / 439.5 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000182/0.3006, allocations: 46.45 kB / 439.6 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003596/0.3009, allocations: 156.5 kB / 439.7 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004421/0.3014, allocations: 164.9 kB / 439.9 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004943/0.3019, allocations: 0.7085 MB / 440.6 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004235/0.3023, allocations: 389.2 kB / 441 MB, free: 36.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002686/0.3026, allocations: 300.9 kB / 441.3 MB, free: 35.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003904/0.303, allocations: 422.4 kB / 441.7 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.451e-05/0.3031, allocations: 68.47 kB / 441.8 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001638/0.3033, allocations: 103.6 kB / 441.9 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001377/0.3034, allocations: 212.3 kB / 442.1 MB, free: 35.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002187/0.3036, allocations: 320.4 kB / 442.4 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005046/0.3041, allocations: 0.7704 MB / 443.1 MB, free: 35.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3042, allocations: 0 / 443.1 MB, free: 35.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3042, allocations: 0 / 443.1 MB, free: 35.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.107e-06/0.3042, allocations: 2.844 kB / 443.1 MB, free: 35.17 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001775/0.306, allocations: 0.9177 MB / 444.1 MB, free: 34.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.306, allocations: 8.25 kB / 444.1 MB, free: 34.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001143/0.3061, allocations: 57.72 kB / 444.1 MB, free: 34.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003772/0.3065, allocations: 389 kB / 444.5 MB, free: 34.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.708e-05/0.3065, allocations: 35.19 kB / 444.5 MB, free: 34.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.639e-05/0.3066, allocations: 45.47 kB / 444.6 MB, free: 34.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008546/0.3075, allocations: 0.5419 MB / 445.1 MB, free: 33.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.3075, allocations: 3.062 kB / 445.1 MB, free: 33.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.3e-05/0.3076, allocations: 18.73 kB / 445.2 MB, free: 33.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.3076, allocations: 8.969 kB / 445.2 MB, free: 33.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008387/0.3084, allocations: 0.543 MB / 445.7 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002658/0.3111, allocations: 1.53 MB / 447.2 MB, free: 33.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007406/0.3119, allocations: 0.4916 MB / 447.7 MB, free: 32.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004231/0.3123, allocations: 262.6 kB / 448 MB, free: 32.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.55e-05/0.3124, allocations: 9.828 kB / 448 MB, free: 32.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.808e-05/0.3124, allocations: 41.38 kB / 448 MB, free: 32.64 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002644/0.3126, allocations: 68.14 kB / 448.1 MB, free: 32.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.793e-06/0.3127, allocations: 0 / 448.1 MB, free: 32.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002766/0.3154, allocations: 1.089 MB / 449.2 MB, free: 32.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.319e-05/0.3155, allocations: 61.03 kB / 449.2 MB, free: 32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003092/0.3158, allocations: 386.7 kB / 449.6 MB, free: 31.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.733e-05/0.3158, allocations: 36.33 kB / 449.7 MB, free: 31.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.954e-05/0.3159, allocations: 239.8 kB / 449.9 MB, free: 31.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001065/0.3161, allocations: 179 kB / 450.1 MB, free: 31.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001795/0.3162, allocations: 121.3 kB / 450.2 MB, free: 31.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.446e-05/0.3163, allocations: 362.9 kB / 450.5 MB, free: 31.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004211/0.3167, allocations: 254.9 kB / 450.8 MB, free: 30.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004382/0.3172, allocations: 367.8 kB / 451.2 MB, free: 30.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008539/0.318, allocations: 0.6262 MB / 451.8 MB, free: 30.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.3181, allocations: 7 kB / 451.8 MB, free: 30.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001773/0.3198, allocations: 0.8597 MB / 452.6 MB, free: 30.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.3199, allocations: 6.25 kB / 452.6 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.3199, allocations: 7.219 kB / 452.7 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001167/0.3211, allocations: 172.2 kB / 452.8 MB, free: 30 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/0.3224, allocations: 245.9 kB / 453.1 MB, free: 29.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006181/0.323, allocations: 1.149 MB / 454.2 MB, free: 28.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005308/0.3235, allocations: 31.31 kB / 454.2 MB, free: 28.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.615e-05/0.3236, allocations: 29.91 kB / 454.3 MB, free: 28.86 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.000248/0.3239, allocations: 188.3 kB / 454.5 MB, free: 28.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.044e-05/0.324, allocations: 45.16 kB / 454.5 MB, free: 28.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001886/0.3259, allocations: 0.8335 MB / 455.3 MB, free: 28.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.447e-06/0.3259, allocations: 7.453 kB / 455.3 MB, free: 28.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.3259, allocations: 3.094 kB / 455.3 MB, free: 28.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.3259, allocations: 3.234 kB / 455.3 MB, free: 28.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00238/0.3283, allocations: 1.46 MB / 456.8 MB, free: 27.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.3283, allocations: 0 / 456.8 MB, free: 27.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001096/0.3294, allocations: 195.3 kB / 457 MB, free: 27.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008498/0.3303, allocations: 160.9 kB / 457.2 MB, free: 27.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.985e-05/0.3303, allocations: 25.2 kB / 457.2 MB, free: 27.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005299/0.3309, allocations: 1.161 MB / 458.3 MB, free: 26.4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.3309, allocations: 5.344 kB / 458.3 MB, free: 26.4 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002034/0.3329, allocations: 1.139 MB / 459.5 MB, free: 25.85 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.3331, allocations: 120.6 kB / 459.6 MB, free: 25.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.302e-05/0.3332, allocations: 17.28 kB / 459.6 MB, free: 25.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004127/0.3336, allocations: 30.27 kB / 459.6 MB, free: 25.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/0.3337, allocations: 42.19 kB / 459.7 MB, free: 25.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.568e-05/0.3338, allocations: 18.95 kB / 459.7 MB, free: 25.69 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002798/0.334, allocations: 272 kB / 460 MB, free: 25.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.3341, allocations: 0 / 460 MB, free: 25.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000587/0.3346, allocations: 176.6 kB / 460.1 MB, free: 25.52 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 (56): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000196/0.3348, allocations: 125.1 kB / 460.3 MB, free: 25.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001685/0.3365, allocations: 0.767 MB / 461 MB, free: 25.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.3366, allocations: 0 / 461 MB, free: 25.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007761/0.3373, allocations: 375.8 kB / 461.4 MB, free: 25.06 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005873/0.3379, allocations: 113.1 kB / 461.5 MB, free: 25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003432/0.3414, allocations: 1.991 MB / 463.5 MB, free: 23.83 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003693/0.3418, allocations: 0.8641 MB / 464.4 MB, free: 23.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005683/0.3424, allocations: 128.2 kB / 464.5 MB, free: 23.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000216/0.3426, allocations: 56.81 kB / 464.6 MB, free: 23.09 MB / 350.1 MB Notification: Performance of SimCode: time 1.242e-06/0.3426, allocations: 0 / 464.6 MB, free: 23.09 MB / 350.1 MB Notification: Performance of Templates: time 0.01731/0.3599, allocations: 8.893 MB / 473.4 MB, free: 21.55 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe 2>&1)