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.001326/0.001326, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001725/0.001725, allocations: 194.9 kB / 16.14 MB, free: 6.711 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.326/1.326, allocations: 222.9 MB / 239.8 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2217/0.2217, allocations: 22.36 MB / 312.3 MB, free: 12.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 67.89 kB / 380.1 MB, free: 11.08 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2804, allocations: 54.94 MB / 435.1 MB, free: 39.53 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.003397/0.2838, allocations: 3.303 MB / 438.4 MB, free: 37.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001409/0.2853, allocations: 0.9789 MB / 439.3 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000142/0.2854, allocations: 2.562 kB / 439.3 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001678/0.2856, allocations: 49.31 kB / 439.4 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003155/0.2859, allocations: 162.7 kB / 439.5 MB, free: 36.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003613/0.2863, allocations: 160.4 kB / 439.7 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005062/0.2868, allocations: 0.7986 MB / 440.5 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003599/0.2872, allocations: 348.1 kB / 440.8 MB, free: 35.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002352/0.2874, allocations: 274.6 kB / 441.1 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003684/0.2878, allocations: 407.1 kB / 441.5 MB, free: 35.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.834e-05/0.2879, allocations: 45.09 kB / 441.6 MB, free: 35.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001698/0.2881, allocations: 79.98 kB / 441.6 MB, free: 35.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001386/0.2882, allocations: 178.9 kB / 441.8 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002339/0.2885, allocations: 318.8 kB / 442.1 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004707/0.289, allocations: 0.7408 MB / 442.9 MB, free: 34.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.289, allocations: 0 / 442.9 MB, free: 34.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.289, allocations: 0 / 442.9 MB, free: 34.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.289, allocations: 0 / 442.9 MB, free: 34.97 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.001728/0.2907, allocations: 0.9167 MB / 443.8 MB, free: 34.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.2908, allocations: 12.66 kB / 443.8 MB, free: 34.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.2909, allocations: 57.25 kB / 443.8 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003961/0.2913, allocations: 397.2 kB / 444.2 MB, free: 34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.457e-05/0.2913, allocations: 30.41 kB / 444.3 MB, free: 33.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.518e-05/0.2914, allocations: 48.41 kB / 444.3 MB, free: 33.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008278/0.2923, allocations: 0.5405 MB / 444.8 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.2923, allocations: 2.75 kB / 444.8 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.487e-05/0.2923, allocations: 22.34 kB / 444.9 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.758e-06/0.2924, allocations: 10.78 kB / 444.9 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008582/0.2932, allocations: 0.5367 MB / 445.4 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002629/0.2959, allocations: 1.533 MB / 447 MB, free: 32.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007576/0.2966, allocations: 488.1 kB / 447.4 MB, free: 32.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004304/0.2971, allocations: 265.8 kB / 447.7 MB, free: 32.49 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.99e-05/0.2971, allocations: 13.11 kB / 447.7 MB, free: 32.49 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.397e-05/0.2971, allocations: 41.53 kB / 447.7 MB, free: 32.44 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002313/0.2974, allocations: 63.09 kB / 447.8 MB, free: 32.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 2.014e-06/0.2974, allocations: 0 / 447.8 MB, free: 32.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002728/0.3001, allocations: 1.086 MB / 448.9 MB, free: 31.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.648e-05/0.3002, allocations: 65.03 kB / 449 MB, free: 31.8 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003169/0.3005, allocations: 389.2 kB / 449.3 MB, free: 31.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.925e-05/0.3005, allocations: 33.58 kB / 449.4 MB, free: 31.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.911e-05/0.3006, allocations: 245.6 kB / 449.6 MB, free: 31.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001157/0.3008, allocations: 180.6 kB / 449.8 MB, free: 31.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001788/0.3009, allocations: 116.6 kB / 449.9 MB, free: 31.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.474e-05/0.301, allocations: 360.6 kB / 450.2 MB, free: 30.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004228/0.3015, allocations: 250 kB / 450.5 MB, free: 30.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004484/0.3019, allocations: 376.5 kB / 450.9 MB, free: 30.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008606/0.3028, allocations: 0.6358 MB / 451.5 MB, free: 30.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.3028, allocations: 0 / 451.5 MB, free: 30.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001752/0.3046, allocations: 0.8544 MB / 452.3 MB, free: 29.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.3046, allocations: 10.38 kB / 452.4 MB, free: 29.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.3046, allocations: 3.609 kB / 452.4 MB, free: 29.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001126/0.3057, allocations: 177.4 kB / 452.5 MB, free: 29.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001257/0.307, allocations: 239.7 kB / 452.8 MB, free: 29.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006096/0.3076, allocations: 1.154 MB / 453.9 MB, free: 28.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005145/0.3082, allocations: 27.3 kB / 454 MB, free: 28.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.895e-05/0.3082, allocations: 33.5 kB / 454 MB, free: 28.67 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.0002441/0.3085, allocations: 190.8 kB / 454.2 MB, free: 28.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001/0.3086, allocations: 48.06 kB / 454.2 MB, free: 28.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001951/0.3105, allocations: 0.827 MB / 455 MB, free: 28.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.774e-06/0.3106, allocations: 5.625 kB / 455 MB, free: 28.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.3106, allocations: 1.094 kB / 455 MB, free: 28.12 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.3106, allocations: 7.094 kB / 455.1 MB, free: 28.12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002407/0.313, allocations: 1.46 MB / 456.5 MB, free: 27.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.313, allocations: 0 / 456.5 MB, free: 27.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.3141, allocations: 199.5 kB / 456.7 MB, free: 27.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009029/0.315, allocations: 170.7 kB / 456.9 MB, free: 27.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.465e-05/0.3151, allocations: 20.91 kB / 456.9 MB, free: 27.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005522/0.3156, allocations: 1.165 MB / 458.1 MB, free: 26.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3156, allocations: 128 / 458.1 MB, free: 26.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002192/0.3178, allocations: 1.137 MB / 459.2 MB, free: 25.65 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001182/0.318, allocations: 124.9 kB / 459.3 MB, free: 25.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/0.3181, allocations: 17.97 kB / 459.3 MB, free: 25.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000425/0.3185, allocations: 23.81 kB / 459.4 MB, free: 25.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.3187, allocations: 38.98 kB / 459.4 MB, free: 25.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-05/0.3187, allocations: 19.06 kB / 459.4 MB, free: 25.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003001/0.319, allocations: 273 kB / 459.7 MB, free: 25.36 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.319, allocations: 0 / 459.7 MB, free: 25.36 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006062/0.3196, allocations: 178.9 kB / 459.9 MB, free: 25.33 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.0001935/0.3198, allocations: 122.5 kB / 460 MB, free: 25.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001587/0.3214, allocations: 0.6836 MB / 460.7 MB, free: 25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.3214, allocations: 0 / 460.7 MB, free: 25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007868/0.3222, allocations: 360.6 kB / 461 MB, free: 24.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006181/0.3229, allocations: 112.1 kB / 461.1 MB, free: 24.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003415/0.3263, allocations: 1.981 MB / 463.1 MB, free: 23.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003677/0.3267, allocations: 0.8672 MB / 464 MB, free: 22.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005182/0.3272, allocations: 131 kB / 464.1 MB, free: 22.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002359/0.3274, allocations: 56.58 kB / 464.2 MB, free: 22.92 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3275, allocations: 0 / 464.2 MB, free: 22.92 MB / 350.1 MB Notification: Performance of Templates: time 0.01797/0.3454, allocations: 8.43 MB / 472.6 MB, free: 21.66 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)