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.0009138/0.0009138, allocations: 91.84 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 181.5 kB / 16.92 MB, free: 6.652 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.304/1.304, allocations: 223.3 MB / 241 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2017/0.2017, allocations: 22.34 MB / 314.4 MB, free: 13.06 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003394/0.0003395, allocations: 8 kB / 383.3 MB, free: 10.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2641/0.2645, allocations: 55.98 MB / 439.2 MB, free: 39.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.002813/0.2674, allocations: 3.53 MB / 442.8 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001633/0.269, allocations: 1.118 MB / 443.9 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001743/0.2692, allocations: 2.875 kB / 443.9 MB, free: 36.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001478/0.2694, allocations: 56.75 kB / 443.9 MB, free: 36.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003803/0.2698, allocations: 194 kB / 444.1 MB, free: 36 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004153/0.2702, allocations: 204.5 kB / 444.3 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006623/0.2708, allocations: 0.9838 MB / 445.3 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005421/0.2714, allocations: 0.5521 MB / 445.9 MB, free: 35.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003163/0.2717, allocations: 389.5 kB / 446.3 MB, free: 35.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005404/0.2723, allocations: 0.5711 MB / 446.8 MB, free: 34.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001068/0.2724, allocations: 67.94 kB / 446.9 MB, free: 34.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001803/0.2726, allocations: 103.5 kB / 447 MB, free: 34.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001595/0.2727, allocations: 245.9 kB / 447.2 MB, free: 34.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002956/0.273, allocations: 444.6 kB / 447.7 MB, free: 34.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004746/0.2735, allocations: 0.7835 MB / 448.5 MB, free: 34.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.2735, allocations: 4 kB / 448.5 MB, free: 34.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2735, allocations: 0 / 448.5 MB, free: 34.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.45e-05/0.2736, allocations: 0 / 448.5 MB, free: 34.3 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.002084/0.2757, allocations: 1.018 MB / 449.5 MB, free: 33.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.189e-05/0.2757, allocations: 14.25 kB / 449.5 MB, free: 33.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.2758, allocations: 76.62 kB / 449.6 MB, free: 33.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005258/0.2764, allocations: 490.3 kB / 450 MB, free: 33.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.257e-05/0.2764, allocations: 39.66 kB / 450.1 MB, free: 33.24 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.2765, allocations: 55.53 kB / 450.1 MB, free: 33.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.2777, allocations: 0.7614 MB / 450.9 MB, free: 32.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.2778, allocations: 3.938 kB / 450.9 MB, free: 32.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.895e-05/0.2778, allocations: 28.41 kB / 450.9 MB, free: 32.9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.2779, allocations: 13.31 kB / 450.9 MB, free: 32.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001296/0.2792, allocations: 0.8263 MB / 451.8 MB, free: 32.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003571/0.2827, allocations: 2.077 MB / 453.8 MB, free: 31.63 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009652/0.2837, allocations: 0.6702 MB / 454.5 MB, free: 31.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000575/0.2843, allocations: 415.5 kB / 454.9 MB, free: 31.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.618e-05/0.2844, allocations: 17.81 kB / 454.9 MB, free: 31.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/0.2844, allocations: 40.81 kB / 455 MB, free: 31.11 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005348/0.2849, allocations: 143.9 kB / 455.1 MB, free: 31.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 2.154e-06/0.2849, allocations: 3.938 kB / 455.1 MB, free: 31.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.009834/0.2948, allocations: 2.523 MB / 457.6 MB, free: 30.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.813e-05/0.2948, allocations: 59.97 kB / 457.7 MB, free: 30.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005671/0.2954, allocations: 499.9 kB / 458.2 MB, free: 29.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.506e-05/0.2955, allocations: 41.05 kB / 458.2 MB, free: 29.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001468/0.2956, allocations: 294 kB / 458.5 MB, free: 29.56 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001581/0.2958, allocations: 244 kB / 458.8 MB, free: 29.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001073/0.2959, allocations: 71.92 kB / 458.8 MB, free: 29.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.467e-05/0.296, allocations: 377.5 kB / 459.2 MB, free: 28.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000629/0.2966, allocations: 360.6 kB / 459.5 MB, free: 28.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006973/0.2974, allocations: 0.4929 MB / 460 MB, free: 28.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001334/0.2987, allocations: 0.8742 MB / 460.9 MB, free: 28.1 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.2987, allocations: 1.062 kB / 460.9 MB, free: 28.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.005688/0.3044, allocations: 1.631 MB / 462.5 MB, free: 27.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.569e-05/0.3045, allocations: 6.625 kB / 462.6 MB, free: 27.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.301e-05/0.3045, allocations: 2.344 kB / 462.6 MB, free: 27.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004307/0.3088, allocations: 0.6845 MB / 463.2 MB, free: 27.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00145/0.3103, allocations: 248.8 kB / 463.5 MB, free: 27.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005259/0.3155, allocations: 3.898 MB / 467.4 MB, free: 24.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008202/0.3164, allocations: 34.55 kB / 467.4 MB, free: 24.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.686e-05/0.3165, allocations: 45.98 kB / 467.5 MB, free: 24.39 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,8,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,5), (2,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003025/0.3168, allocations: 195.8 kB / 467.6 MB, free: 24.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001163/0.3169, allocations: 65.89 kB / 467.7 MB, free: 24.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003784/0.3207, allocations: 1.392 MB / 469.1 MB, free: 23.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.668e-06/0.3207, allocations: 8.75 kB / 469.1 MB, free: 23.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.3207, allocations: 7.562 kB / 469.1 MB, free: 23.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/0.3207, allocations: 8.297 kB / 469.1 MB, free: 23.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001015/0.3218, allocations: 0.8062 MB / 469.9 MB, free: 23.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.3218, allocations: 1.797 kB / 469.9 MB, free: 23.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001178/0.323, allocations: 213.8 kB / 470.1 MB, free: 23.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002231/0.3252, allocations: 450.5 kB / 470.6 MB, free: 23.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-05/0.3253, allocations: 25.27 kB / 470.6 MB, free: 23.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003229/0.3285, allocations: 3.261 MB / 473.9 MB, free: 20.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.3285, allocations: 1.375 kB / 473.9 MB, free: 20.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004021/0.3326, allocations: 1.788 MB / 475.7 MB, free: 19.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001487/0.3327, allocations: 144.8 kB / 475.8 MB, free: 19.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.3328, allocations: 19.75 kB / 475.8 MB, free: 19.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005439/0.3334, allocations: 35.66 kB / 475.9 MB, free: 19.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001697/0.3336, allocations: 68.02 kB / 475.9 MB, free: 19.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.22e-05/0.3336, allocations: 28.78 kB / 476 MB, free: 19.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003765/0.334, allocations: 342.6 kB / 476.3 MB, free: 19.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.334, allocations: 1.25 kB / 476.3 MB, free: 19.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008398/0.3349, allocations: 242.4 kB / 476.5 MB, free: 19.11 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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,8,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,6), (2,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002046/0.3351, allocations: 132.1 kB / 476.7 MB, free: 19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002485/0.3376, allocations: 1.177 MB / 477.8 MB, free: 18.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.3376, allocations: 4.812 kB / 477.8 MB, free: 18.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001392/0.339, allocations: 0.688 MB / 478.5 MB, free: 18.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007029/0.3397, allocations: 132 kB / 478.7 MB, free: 18.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003981/0.3437, allocations: 2.593 MB / 481.2 MB, free: 16.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003737/0.3441, allocations: 0.9382 MB / 482.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003214/0.3444, allocations: 72.36 kB / 482.3 MB, free: 15.87 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.3444, allocations: 0 / 482.3 MB, free: 15.87 MB / 350.1 MB Notification: Performance of Templates: time 0.01513/0.3596, allocations: 16.25 MB / 498.5 MB, free: 1.098 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)