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_003.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_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 108 kB / 15.61 MB, free: 152 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.001863/0.001863, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.408/1.408, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2163/0.2163, allocations: 22.34 MB / 312.7 MB, free: 12.57 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001209, allocations: 67.89 kB / 380.8 MB, free: 10.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2825/0.2837, allocations: 54.94 MB / 435.8 MB, free: 39.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.003892/0.2876, allocations: 3.437 MB / 439.2 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00163/0.2893, allocations: 1.041 MB / 440.3 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001835/0.2895, allocations: 9.188 kB / 440.3 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002071/0.2897, allocations: 71.94 kB / 440.3 MB, free: 36.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004101/0.2901, allocations: 211.1 kB / 440.5 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004829/0.2906, allocations: 216.1 kB / 440.8 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005801/0.2912, allocations: 0.8557 MB / 441.6 MB, free: 35.9 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005886/0.2918, allocations: 0.5951 MB / 442.2 MB, free: 35.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003097/0.2921, allocations: 408.1 kB / 442.6 MB, free: 35.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005239/0.2927, allocations: 0.5652 MB / 443.2 MB, free: 35.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000127/0.2928, allocations: 102.4 kB / 443.3 MB, free: 35.22 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002082/0.293, allocations: 129.8 kB / 443.4 MB, free: 35.21 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001982/0.2932, allocations: 272 kB / 443.7 MB, free: 35.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003316/0.2936, allocations: 425.2 kB / 444.1 MB, free: 34.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007031/0.2943, allocations: 1.02 MB / 445.1 MB, free: 34.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.2943, allocations: 2.562 kB / 445.1 MB, free: 34.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2943, allocations: 0 / 445.1 MB, free: 34.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.069e-05/0.2943, allocations: 0 / 445.1 MB, free: 34.43 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: 133 * Number of variables: 133 Notification: Performance of Generate backend data structure: time 0.002358/0.2967, allocations: 1.103 MB / 446.2 MB, free: 33.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.2967, allocations: 12.81 kB / 446.2 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000155/0.2969, allocations: 67.97 kB / 446.3 MB, free: 33.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005474/0.2974, allocations: 457.5 kB / 446.7 MB, free: 33.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.436e-05/0.2975, allocations: 42.28 kB / 446.8 MB, free: 33.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001112/0.2976, allocations: 56.06 kB / 446.8 MB, free: 33.33 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/0.2987, allocations: 0.7439 MB / 447.6 MB, free: 33.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.2987, allocations: 3.984 kB / 447.6 MB, free: 33.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.414e-05/0.2988, allocations: 21.31 kB / 447.6 MB, free: 33.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.2988, allocations: 12.34 kB / 447.6 MB, free: 33.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001222/0.3001, allocations: 0.8019 MB / 448.4 MB, free: 32.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004208/0.3043, allocations: 2.409 MB / 450.8 MB, free: 31.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009775/0.3053, allocations: 0.6315 MB / 451.4 MB, free: 31.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007173/0.306, allocations: 431 kB / 451.9 MB, free: 31.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.719e-05/0.3061, allocations: 11.64 kB / 451.9 MB, free: 31.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.702e-05/0.3061, allocations: 38.03 kB / 451.9 MB, free: 31.11 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006095/0.3067, allocations: 164.4 kB / 452.1 MB, free: 31.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 3.296e-06/0.3067, allocations: 4 kB / 452.1 MB, free: 31.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.01009/0.3168, allocations: 2.367 MB / 454.4 MB, free: 30.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.682e-05/0.3169, allocations: 58.56 kB / 454.5 MB, free: 30.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007598/0.3177, allocations: 449.8 kB / 454.9 MB, free: 29.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001485/0.3178, allocations: 41.03 kB / 455 MB, free: 29.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.318, allocations: 261.3 kB / 455.2 MB, free: 29.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001778/0.3182, allocations: 242.4 kB / 455.5 MB, free: 29.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002757/0.3185, allocations: 166.7 kB / 455.6 MB, free: 29.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.718e-05/0.3186, allocations: 366.8 kB / 456 MB, free: 29.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006292/0.3192, allocations: 343.9 kB / 456.3 MB, free: 28.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006588/0.3199, allocations: 467.7 kB / 456.8 MB, free: 28.66 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001276/0.3211, allocations: 0.8297 MB / 457.6 MB, free: 28.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.3212, allocations: 1.125 kB / 457.6 MB, free: 28.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.005709/0.3269, allocations: 1.565 MB / 459.2 MB, free: 27.69 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.28e-05/0.3269, allocations: 10.56 kB / 459.2 MB, free: 27.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.295e-05/0.327, allocations: 3.375 kB / 459.2 MB, free: 27.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004879/0.3318, allocations: 0.8028 MB / 460 MB, free: 27.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0015/0.3334, allocations: 251.9 kB / 460.2 MB, free: 27.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005371/0.3387, allocations: 4.081 MB / 464.3 MB, free: 24.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000791/0.3396, allocations: 33.94 kB / 464.4 MB, free: 24.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.326e-05/0.3397, allocations: 45.94 kB / 464.4 MB, free: 24.33 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 {(1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0003381/0.34, allocations: 189.8 kB / 464.6 MB, free: 24.17 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001212/0.3401, allocations: 58.53 kB / 464.6 MB, free: 24.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003435/0.3436, allocations: 1.32 MB / 466 MB, free: 23.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.074e-05/0.3436, allocations: 13.59 kB / 466 MB, free: 23.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.3436, allocations: 1.5 kB / 466 MB, free: 23.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.158e-05/0.3436, allocations: 5.281 kB / 466 MB, free: 23.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004218/0.3479, allocations: 2.007 MB / 468 MB, free: 22.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.3479, allocations: 0.7031 kB / 468 MB, free: 22.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001106/0.349, allocations: 211.3 kB / 468.2 MB, free: 22.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002363/0.3514, allocations: 0.5078 MB / 468.7 MB, free: 22.58 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.431e-05/0.3515, allocations: 27.92 kB / 468.7 MB, free: 22.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003206/0.3547, allocations: 3.413 MB / 472.2 MB, free: 19.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3547, allocations: 4 kB / 472.2 MB, free: 19.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0038/0.3585, allocations: 1.661 MB / 473.8 MB, free: 18.87 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001698/0.3587, allocations: 133.6 kB / 473.9 MB, free: 18.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001227/0.3588, allocations: 27.98 kB / 474 MB, free: 18.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005006/0.3593, allocations: 26.86 kB / 474 MB, free: 18.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001608/0.3595, allocations: 58.75 kB / 474.1 MB, free: 18.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.673e-05/0.3595, allocations: 23.41 kB / 474.1 MB, free: 18.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003523/0.3599, allocations: 322.1 kB / 474.4 MB, free: 18.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3599, allocations: 0 / 474.4 MB, free: 18.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008716/0.3608, allocations: 231.1 kB / 474.6 MB, free: 18.5 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 (65): * Single equations (assignments): 62 * 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 {(1,5), (1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000217/0.361, allocations: 136.9 kB / 474.8 MB, free: 18.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002977/0.364, allocations: 1.22 MB / 476 MB, free: 17.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.364, allocations: 0 / 476 MB, free: 17.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001416/0.3654, allocations: 0.6472 MB / 476.6 MB, free: 17.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007068/0.3662, allocations: 137.1 kB / 476.8 MB, free: 17.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004487/0.3707, allocations: 2.046 MB / 478.8 MB, free: 16.44 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004871/0.3712, allocations: 0.9188 MB / 479.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006317/0.3718, allocations: 142.5 kB / 479.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002559/0.3721, allocations: 63.2 kB / 479.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3721, allocations: 0 / 479.9 MB, free: 15.69 MB / 350.1 MB Notification: Performance of Templates: time 0.02081/0.3929, allocations: 12.44 MB / 492.4 MB, free: 4.488 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003.pipe 2>&1)