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.001168/0.001168, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001294/0.001295, allocations: 192.3 kB / 16.13 MB, free: 6.703 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.295/1.295, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1917/0.1917, allocations: 22.35 MB / 312.3 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001245/0.001245, allocations: 67.84 kB / 380.1 MB, free: 11.13 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2505, allocations: 54.94 MB / 435 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_003): time 0.003788/0.2543, allocations: 3.803 MB / 438.8 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001416/0.2558, allocations: 1.096 MB / 439.9 MB, free: 36.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001531/0.2559, allocations: 5.844 kB / 440 MB, free: 36.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001792/0.2561, allocations: 56.25 kB / 440 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003616/0.2565, allocations: 178.4 kB / 440.2 MB, free: 35.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004157/0.2569, allocations: 200.1 kB / 440.4 MB, free: 35.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006056/0.2575, allocations: 0.9284 MB / 441.3 MB, free: 35.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005127/0.2581, allocations: 0.5338 MB / 441.8 MB, free: 35.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002882/0.2584, allocations: 378 kB / 442.2 MB, free: 35.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004689/0.2588, allocations: 0.552 MB / 442.8 MB, free: 34.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001199/0.259, allocations: 71.31 kB / 442.8 MB, free: 34.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001932/0.2592, allocations: 101.6 kB / 442.9 MB, free: 34.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000165/0.2593, allocations: 246.1 kB / 443.2 MB, free: 34.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002849/0.2596, allocations: 400.7 kB / 443.6 MB, free: 34.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005737/0.2602, allocations: 0.9976 MB / 444.6 MB, free: 34.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2602, allocations: 3.312 kB / 444.6 MB, free: 34.13 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.92e-07/0.2602, allocations: 0 / 444.6 MB, free: 34.13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.937e-06/0.2603, allocations: 0 / 444.6 MB, free: 34.13 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.00225/0.2625, allocations: 1.103 MB / 445.7 MB, free: 33.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.2626, allocations: 23.31 kB / 445.7 MB, free: 33.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001498/0.2627, allocations: 71.97 kB / 445.8 MB, free: 33.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005116/0.2632, allocations: 457.9 kB / 446.2 MB, free: 33.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.966e-05/0.2633, allocations: 48.81 kB / 446.3 MB, free: 33.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/0.2634, allocations: 51.94 kB / 446.3 MB, free: 33.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00108/0.2645, allocations: 0.7399 MB / 447 MB, free: 32.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.2645, allocations: 0 / 447 MB, free: 32.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.12e-05/0.2646, allocations: 28.66 kB / 447.1 MB, free: 32.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.2646, allocations: 12.88 kB / 447.1 MB, free: 32.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001179/0.2658, allocations: 0.8031 MB / 447.9 MB, free: 32.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00401/0.2698, allocations: 2.407 MB / 450.3 MB, free: 31.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009816/0.2708, allocations: 0.6272 MB / 450.9 MB, free: 31.01 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006977/0.2715, allocations: 414.1 kB / 451.3 MB, free: 30.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.023e-05/0.2715, allocations: 23.91 kB / 451.3 MB, free: 30.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.884e-05/0.2716, allocations: 42.45 kB / 451.4 MB, free: 30.8 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000546/0.2721, allocations: 161.5 kB / 451.5 MB, free: 30.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=66): time 1.954e-06/0.2721, allocations: 0 / 451.5 MB, free: 30.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=66): time 0.008936/0.2811, allocations: 2.369 MB / 453.9 MB, free: 29.88 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.384e-05/0.2811, allocations: 58.47 kB / 454 MB, free: 29.81 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004234/0.2816, allocations: 455.7 kB / 454.4 MB, free: 29.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.585e-05/0.2816, allocations: 36.02 kB / 454.5 MB, free: 29.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001348/0.2818, allocations: 264.4 kB / 454.7 MB, free: 29.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001589/0.2819, allocations: 239.4 kB / 454.9 MB, free: 29.15 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002468/0.2822, allocations: 162.2 kB / 455.1 MB, free: 29.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.572e-05/0.2823, allocations: 372.9 kB / 455.5 MB, free: 28.74 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005975/0.2829, allocations: 337.8 kB / 455.8 MB, free: 28.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006843/0.2836, allocations: 467.1 kB / 456.3 MB, free: 28.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001252/0.2848, allocations: 0.8228 MB / 457.1 MB, free: 27.92 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.2848, allocations: 1.406 kB / 457.1 MB, free: 27.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=97) (initialization): time 0.005328/0.2902, allocations: 1.566 MB / 458.6 MB, free: 27.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.411e-05/0.2902, allocations: 6.781 kB / 458.7 MB, free: 27.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.2902, allocations: 3.391 kB / 458.7 MB, free: 27.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00483/0.2951, allocations: 0.8049 MB / 459.5 MB, free: 27.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001372/0.2964, allocations: 248.5 kB / 459.7 MB, free: 27.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005109/0.3016, allocations: 3.851 MB / 463.6 MB, free: 24.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008111/0.3024, allocations: 31.39 kB / 463.6 MB, free: 24.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.555e-05/0.3025, allocations: 45.16 kB / 463.6 MB, free: 24.23 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.0003461/0.3029, allocations: 205.7 kB / 463.8 MB, free: 24.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000196/0.3031, allocations: 55.19 kB / 463.9 MB, free: 24.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003483/0.3065, allocations: 1.309 MB / 465.2 MB, free: 23.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.185e-06/0.3066, allocations: 8.5 kB / 465.2 MB, free: 23.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.3066, allocations: 2.938 kB / 465.2 MB, free: 23.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.422e-05/0.3066, allocations: 8.531 kB / 465.2 MB, free: 23.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004264/0.3109, allocations: 2.003 MB / 467.2 MB, free: 22.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.3109, allocations: 1.594 kB / 467.2 MB, free: 22.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001101/0.312, allocations: 213.4 kB / 467.4 MB, free: 22.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002363/0.3144, allocations: 0.517 MB / 467.9 MB, free: 22.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.854e-05/0.3145, allocations: 23.58 kB / 468 MB, free: 22.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002963/0.3174, allocations: 3.207 MB / 471.2 MB, free: 19.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.3174, allocations: 1.375 kB / 471.2 MB, free: 19.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00384/0.3213, allocations: 1.665 MB / 472.8 MB, free: 18.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002015/0.3215, allocations: 137.7 kB / 473 MB, free: 18.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001078/0.3216, allocations: 24.16 kB / 473 MB, free: 18.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005007/0.3221, allocations: 28.31 kB / 473 MB, free: 18.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001843/0.3223, allocations: 59.23 kB / 473.1 MB, free: 18.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.07e-05/0.3224, allocations: 26 kB / 473.1 MB, free: 18.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003653/0.3228, allocations: 322.7 kB / 473.4 MB, free: 18.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3228, allocations: 1.281 kB / 473.4 MB, free: 18.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008778/0.3236, allocations: 235 kB / 473.7 MB, free: 18.58 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.0001918/0.3238, allocations: 128.7 kB / 473.8 MB, free: 18.47 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002499/0.3264, allocations: 1.101 MB / 474.9 MB, free: 18.01 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.3264, allocations: 0 / 474.9 MB, free: 18.01 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001364/0.3277, allocations: 0.6471 MB / 475.5 MB, free: 17.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000694/0.3284, allocations: 128.4 kB / 475.7 MB, free: 17.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003866/0.3323, allocations: 2.28 MB / 477.9 MB, free: 16.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004527/0.3328, allocations: 0.9237 MB / 478.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005754/0.3334, allocations: 143.5 kB / 479 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002382/0.3336, allocations: 67.86 kB / 479.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3336, allocations: 0 / 479.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of Templates: time 0.01598/0.3496, allocations: 11.72 MB / 490.8 MB, free: 5.582 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)