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.0008445/0.0008445, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.0079/0.007901, allocations: 170 kB / 16.26 MB, free: 6.613 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.401/1.401, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2222/0.2222, allocations: 22.34 MB / 313.8 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003929/0.0003927, allocations: 11.94 kB / 382.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3673/0.3677, allocations: 55.98 MB / 438.6 MB, free: 39.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.003709/0.3715, allocations: 3.413 MB / 442 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001892/0.3734, allocations: 1.082 MB / 443.1 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002031/0.3736, allocations: 9.281 kB / 443.1 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001849/0.3738, allocations: 56.28 kB / 443.1 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004819/0.3743, allocations: 179.3 kB / 443.3 MB, free: 36.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005274/0.3748, allocations: 189.9 kB / 443.5 MB, free: 36.06 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008265/0.3757, allocations: 0.9333 MB / 444.4 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007294/0.3764, allocations: 0.5325 MB / 445 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004029/0.3768, allocations: 362.3 kB / 445.3 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000688/0.3775, allocations: 0.5484 MB / 445.9 MB, free: 35.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001343/0.3777, allocations: 67.25 kB / 445.9 MB, free: 35.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002264/0.3779, allocations: 94.78 kB / 446 MB, free: 35.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002041/0.3781, allocations: 233.9 kB / 446.3 MB, free: 34.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004009/0.3785, allocations: 420.8 kB / 446.7 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008429/0.3794, allocations: 0.9801 MB / 447.6 MB, free: 34.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3794, allocations: 4 kB / 447.7 MB, free: 34.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3794, allocations: 0 / 447.7 MB, free: 34.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.738e-06/0.3794, allocations: 0 / 447.7 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.002598/0.382, allocations: 0.9533 MB / 448.6 MB, free: 33.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.3821, allocations: 20.75 kB / 448.6 MB, free: 33.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001929/0.3823, allocations: 68.69 kB / 448.7 MB, free: 33.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006914/0.383, allocations: 453.3 kB / 449.1 MB, free: 33.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.282e-05/0.3831, allocations: 43.53 kB / 449.2 MB, free: 33.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001617/0.3832, allocations: 56.06 kB / 449.2 MB, free: 33.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001624/0.3849, allocations: 0.7435 MB / 450 MB, free: 33.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.063e-05/0.3849, allocations: 7 kB / 450 MB, free: 33.1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001088/0.385, allocations: 22.88 kB / 450 MB, free: 33.08 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.851e-05/0.3851, allocations: 18.58 kB / 450 MB, free: 33.08 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001722/0.3868, allocations: 0.7983 MB / 450.8 MB, free: 32.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005591/0.3924, allocations: 2.379 MB / 453.2 MB, free: 31.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00142/0.3938, allocations: 0.632 MB / 453.8 MB, free: 31.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001011/0.3949, allocations: 416.7 kB / 454.2 MB, free: 31.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.55e-05/0.3949, allocations: 20.66 kB / 454.3 MB, free: 31.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.439e-05/0.395, allocations: 38.91 kB / 454.3 MB, free: 31.18 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007918/0.3958, allocations: 148.3 kB / 454.4 MB, free: 31.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 7.003e-06/0.3958, allocations: 0 / 454.4 MB, free: 31.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.009467/0.4053, allocations: 2.347 MB / 456.8 MB, free: 30.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.663e-05/0.4054, allocations: 58.91 kB / 456.8 MB, free: 30.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005728/0.406, allocations: 451.1 kB / 457.3 MB, free: 29.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.298e-05/0.406, allocations: 40.8 kB / 457.3 MB, free: 29.94 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001517/0.4062, allocations: 260.7 kB / 457.6 MB, free: 29.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001905/0.4064, allocations: 239.7 kB / 457.8 MB, free: 29.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001207/0.4065, allocations: 69.72 kB / 457.9 MB, free: 29.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.4066, allocations: 372 kB / 458.2 MB, free: 29.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006547/0.4073, allocations: 338.2 kB / 458.6 MB, free: 29.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006961/0.408, allocations: 468.9 kB / 459 MB, free: 28.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001339/0.4094, allocations: 0.8291 MB / 459.9 MB, free: 28.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.797e-06/0.4094, allocations: 1.438 kB / 459.9 MB, free: 28.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.005678/0.4151, allocations: 1.542 MB / 461.4 MB, free: 27.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/0.4151, allocations: 8.109 kB / 461.4 MB, free: 27.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.4151, allocations: 3.406 kB / 461.4 MB, free: 27.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004946/0.4201, allocations: 0.7614 MB / 462.2 MB, free: 27.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001679/0.4218, allocations: 260.3 kB / 462.4 MB, free: 27.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0059/0.4277, allocations: 3.828 MB / 466.3 MB, free: 24.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008891/0.4286, allocations: 30.59 kB / 466.3 MB, free: 24.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001878/0.4288, allocations: 45.3 kB / 466.3 MB, free: 24.66 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.0004263/0.4293, allocations: 203.3 kB / 466.5 MB, free: 24.49 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001584/0.4294, allocations: 54.09 kB / 466.6 MB, free: 24.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003766/0.4332, allocations: 1.292 MB / 467.9 MB, free: 23.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/0.4332, allocations: 11.5 kB / 467.9 MB, free: 23.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/0.4333, allocations: 2.641 kB / 467.9 MB, free: 23.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.733e-05/0.4333, allocations: 9.641 kB / 467.9 MB, free: 23.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004516/0.4378, allocations: 1.985 MB / 469.9 MB, free: 23.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.4378, allocations: 0 / 469.9 MB, free: 23.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001173/0.439, allocations: 211.5 kB / 470.1 MB, free: 23.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002622/0.4416, allocations: 498.8 kB / 470.6 MB, free: 22.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001128/0.4418, allocations: 24.61 kB / 470.6 MB, free: 22.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003184/0.445, allocations: 3.204 MB / 473.8 MB, free: 20.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.445, allocations: 4.703 kB / 473.8 MB, free: 20.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003977/0.449, allocations: 1.634 MB / 475.4 MB, free: 19.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002126/0.4492, allocations: 147.1 kB / 475.6 MB, free: 19.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001414/0.4493, allocations: 20.14 kB / 475.6 MB, free: 19.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005556/0.4499, allocations: 22.95 kB / 475.6 MB, free: 19.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001858/0.4501, allocations: 63.53 kB / 475.7 MB, free: 19.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.463e-05/0.4502, allocations: 27.84 kB / 475.7 MB, free: 19.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004053/0.4506, allocations: 317.5 kB / 476 MB, free: 19.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4506, allocations: 5.719 kB / 476 MB, free: 19.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009845/0.4516, allocations: 234.9 kB / 476.3 MB, free: 19.05 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.0002249/0.4518, allocations: 132.6 kB / 476.4 MB, free: 18.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002657/0.4545, allocations: 1.105 MB / 477.5 MB, free: 18.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.4545, allocations: 0 / 477.5 MB, free: 18.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001358/0.4559, allocations: 0.6406 MB / 478.1 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.0007356/0.4566, allocations: 121.8 kB / 478.3 MB, free: 18.13 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004605/0.4612, allocations: 2.453 MB / 480.7 MB, free: 16.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005166/0.4618, allocations: 0.9249 MB / 481.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007018/0.4625, allocations: 141.2 kB / 481.8 MB, free: 15.81 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002882/0.4628, allocations: 75.61 kB / 481.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of SimCode: time 9.01e-07/0.4628, allocations: 0 / 481.9 MB, free: 15.78 MB / 350.1 MB Notification: Performance of Templates: time 0.01957/0.4824, allocations: 11.54 MB / 493.4 MB, free: 5.668 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)