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.001757/0.001757, allocations: 100.1 kB / 15.88 MB, free: 12 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.00203/0.00203, allocations: 196.8 kB / 16.79 MB, free: 6.809 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.312/1.312, allocations: 222.9 MB / 240.5 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1959/0.1959, allocations: 22.35 MB / 313 MB, free: 12.75 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 63.91 kB / 380.8 MB, free: 11.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.251, allocations: 54.94 MB / 435.7 MB, free: 39.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.003826/0.2548, allocations: 3.295 MB / 439 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001913/0.2568, allocations: 0.9856 MB / 440 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000211/0.257, allocations: 5.656 kB / 440 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001834/0.2572, allocations: 42.67 kB / 440 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003541/0.2576, allocations: 165.5 kB / 440.2 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004341/0.2581, allocations: 158.9 kB / 440.4 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005586/0.2586, allocations: 0.7885 MB / 441.1 MB, free: 36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004029/0.259, allocations: 358 kB / 441.5 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002852/0.2593, allocations: 276.5 kB / 441.8 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003888/0.2597, allocations: 405.7 kB / 442.2 MB, free: 35.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.5e-05/0.2598, allocations: 48.38 kB / 442.2 MB, free: 35.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001709/0.26, allocations: 80.36 kB / 442.3 MB, free: 35.58 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001341/0.2602, allocations: 182.6 kB / 442.5 MB, free: 35.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002311/0.2604, allocations: 304.5 kB / 442.8 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003549/0.2608, allocations: 0.5741 MB / 443.3 MB, free: 35.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.2608, allocations: 3.328 kB / 443.3 MB, free: 35.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.2608, allocations: 2.969 kB / 443.3 MB, free: 35.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.187e-06/0.2608, allocations: 0 / 443.3 MB, free: 35.16 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.001789/0.2626, allocations: 0.9093 MB / 444.3 MB, free: 34.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.2626, allocations: 18.72 kB / 444.3 MB, free: 34.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001223/0.2628, allocations: 53.84 kB / 444.3 MB, free: 34.51 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003788/0.2631, allocations: 381.1 kB / 444.7 MB, free: 34.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.2632, allocations: 41.06 kB / 444.7 MB, free: 34.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.2e-05/0.2633, allocations: 43.58 kB / 444.8 MB, free: 34.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008397/0.2641, allocations: 0.5517 MB / 445.3 MB, free: 33.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.2641, allocations: 0 / 445.3 MB, free: 33.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.584e-05/0.2642, allocations: 14.38 kB / 445.3 MB, free: 33.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.2642, allocations: 10.78 kB / 445.4 MB, free: 33.94 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008654/0.2651, allocations: 0.5441 MB / 445.9 MB, free: 33.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002705/0.2678, allocations: 1.532 MB / 447.4 MB, free: 32.99 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000762/0.2686, allocations: 495.8 kB / 447.9 MB, free: 32.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004307/0.269, allocations: 260.8 kB / 448.2 MB, free: 32.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.536e-05/0.2691, allocations: 12.98 kB / 448.2 MB, free: 32.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.568e-05/0.2691, allocations: 41.78 kB / 448.2 MB, free: 32.63 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002498/0.2693, allocations: 57.3 kB / 448.3 MB, free: 32.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=48): time 1.874e-06/0.2693, allocations: 0 / 448.3 MB, free: 32.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.002831/0.2722, allocations: 1.094 MB / 449.4 MB, free: 32.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.415e-05/0.2722, allocations: 64.97 kB / 449.4 MB, free: 31.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003231/0.2726, allocations: 389.8 kB / 449.8 MB, free: 31.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.178e-05/0.2726, allocations: 33.7 kB / 449.8 MB, free: 31.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.853e-05/0.2727, allocations: 243 kB / 450.1 MB, free: 31.56 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.2728, allocations: 182.9 kB / 450.3 MB, free: 31.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000182/0.273, allocations: 125.3 kB / 450.4 MB, free: 31.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.712e-05/0.2731, allocations: 353.5 kB / 450.7 MB, free: 31.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004276/0.2735, allocations: 253 kB / 451 MB, free: 30.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004722/0.274, allocations: 371.2 kB / 451.3 MB, free: 30.72 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008909/0.2749, allocations: 0.6315 MB / 452 MB, free: 30.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.2749, allocations: 0 / 452 MB, free: 30.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001854/0.2768, allocations: 0.852 MB / 452.8 MB, free: 30.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.2768, allocations: 8.438 kB / 452.8 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.427e-06/0.2768, allocations: 3.125 kB / 452.8 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001222/0.278, allocations: 187.2 kB / 453 MB, free: 29.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001312/0.2794, allocations: 242.6 kB / 453.3 MB, free: 29.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000573/0.2799, allocations: 1.155 MB / 454.4 MB, free: 28.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005325/0.2805, allocations: 31.84 kB / 454.4 MB, free: 28.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.696e-05/0.2806, allocations: 30.2 kB / 454.5 MB, free: 28.85 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.0002129/0.2808, allocations: 178.3 kB / 454.6 MB, free: 28.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.827e-05/0.2809, allocations: 45.44 kB / 454.7 MB, free: 28.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001897/0.2828, allocations: 0.8245 MB / 455.5 MB, free: 28.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.2828, allocations: 6.281 kB / 455.5 MB, free: 28.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.2828, allocations: 1.031 kB / 455.5 MB, free: 28.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.2828, allocations: 7.266 kB / 455.5 MB, free: 28.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002431/0.2853, allocations: 1.469 MB / 457 MB, free: 27.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.2853, allocations: 0 / 457 MB, free: 27.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001114/0.2864, allocations: 207 kB / 457.2 MB, free: 27.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009067/0.2873, allocations: 165 kB / 457.4 MB, free: 27.51 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.047e-05/0.2874, allocations: 24.92 kB / 457.4 MB, free: 27.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005496/0.288, allocations: 1.165 MB / 458.5 MB, free: 26.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.288, allocations: 1.25 kB / 458.6 MB, free: 26.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002107/0.2901, allocations: 1.125 MB / 459.7 MB, free: 25.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001119/0.2902, allocations: 124.7 kB / 459.8 MB, free: 25.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.779e-05/0.2903, allocations: 21.77 kB / 459.8 MB, free: 25.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004156/0.2907, allocations: 22.91 kB / 459.8 MB, free: 25.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.2909, allocations: 49.12 kB / 459.9 MB, free: 25.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.431e-05/0.2909, allocations: 15.66 kB / 459.9 MB, free: 25.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002653/0.2912, allocations: 277.1 kB / 460.2 MB, free: 25.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2912, allocations: 0 / 460.2 MB, free: 25.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005677/0.2918, allocations: 171.6 kB / 460.3 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.0001735/0.292, allocations: 121.8 kB / 460.5 MB, free: 25.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001425/0.2934, allocations: 0.6766 MB / 461.1 MB, free: 25.19 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.2934, allocations: 0 / 461.1 MB, free: 25.19 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008026/0.2942, allocations: 364.3 kB / 461.5 MB, free: 25.08 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005895/0.2948, allocations: 116.1 kB / 461.6 MB, free: 25.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003287/0.2981, allocations: 2.025 MB / 463.6 MB, free: 23.81 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003054/0.2984, allocations: 0.8645 MB / 464.5 MB, free: 23.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000302/0.2987, allocations: 59.66 kB / 464.6 MB, free: 23.09 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2987, allocations: 0 / 464.6 MB, free: 23.09 MB / 350.1 MB Notification: Performance of Templates: time 0.01498/0.3137, allocations: 10.52 MB / 475.1 MB, free: 20.45 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)