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.001345/0.001345, allocations: 108 kB / 15.6 MB, free: 132 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.001655/0.001655, allocations: 194.1 kB / 16.53 MB, free: 6.391 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.527/1.527, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2234/0.2234, allocations: 22.34 MB / 312.7 MB, free: 12.58 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0018/0.001801, allocations: 67.89 kB / 380.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.3005, allocations: 54.95 MB / 435.8 MB, free: 39.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.00373/0.3042, allocations: 3.557 MB / 439.3 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001974/0.3062, allocations: 1.075 MB / 440.4 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002118/0.3065, allocations: 6.969 kB / 440.4 MB, free: 36.42 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002278/0.3067, allocations: 87.08 kB / 440.5 MB, free: 36.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004185/0.3072, allocations: 218.4 kB / 440.7 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004859/0.3077, allocations: 235.3 kB / 441 MB, free: 36.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000562/0.3082, allocations: 0.9114 MB / 441.9 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005129/0.3087, allocations: 0.6122 MB / 442.5 MB, free: 35.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002973/0.309, allocations: 434 kB / 442.9 MB, free: 35.22 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005728/0.3096, allocations: 0.5915 MB / 443.5 MB, free: 34.96 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001322/0.3098, allocations: 107.2 kB / 443.6 MB, free: 34.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002197/0.31, allocations: 131 kB / 443.7 MB, free: 34.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002056/0.3102, allocations: 281.9 kB / 444 MB, free: 34.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003134/0.3105, allocations: 451.2 kB / 444.4 MB, free: 34.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006211/0.3112, allocations: 1.079 MB / 445.5 MB, free: 34.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3112, allocations: 2.656 kB / 445.5 MB, free: 34.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.3112, allocations: 4 kB / 445.5 MB, free: 34.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.3112, allocations: 0 / 445.5 MB, free: 34.12 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.002289/0.3135, allocations: 1.171 MB / 446.7 MB, free: 33.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.3135, allocations: 12.91 kB / 446.7 MB, free: 33.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001504/0.3137, allocations: 78.06 kB / 446.8 MB, free: 33.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006098/0.3143, allocations: 487.7 kB / 447.3 MB, free: 33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.588e-05/0.3144, allocations: 38.75 kB / 447.3 MB, free: 32.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.3145, allocations: 60.38 kB / 447.4 MB, free: 32.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.3156, allocations: 0.7655 MB / 448.1 MB, free: 32.67 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.3156, allocations: 0 / 448.1 MB, free: 32.67 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.501e-05/0.3157, allocations: 21.25 kB / 448.1 MB, free: 32.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.3157, allocations: 17.12 kB / 448.2 MB, free: 32.65 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001191/0.3169, allocations: 0.8239 MB / 449 MB, free: 32.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003533/0.3204, allocations: 2.084 MB / 451.1 MB, free: 31.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000985/0.3214, allocations: 0.6704 MB / 451.7 MB, free: 31.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005864/0.322, allocations: 408 kB / 452.1 MB, free: 30.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.122e-05/0.3221, allocations: 25.66 kB / 452.2 MB, free: 30.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.3221, allocations: 38.91 kB / 452.2 MB, free: 30.85 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006214/0.3227, allocations: 159.7 kB / 452.4 MB, free: 30.79 MB / 350.1 MB Notification: Performance of pre-optimization done (n=68): time 2.805e-06/0.3228, allocations: 0 / 452.4 MB, free: 30.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=68): time 0.009592/0.3324, allocations: 2.548 MB / 454.9 MB, free: 29.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.182e-05/0.3324, allocations: 59.5 kB / 455 MB, free: 29.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006945/0.3331, allocations: 500 kB / 455.5 MB, free: 29.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.735e-05/0.3332, allocations: 36.39 kB / 455.5 MB, free: 29.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001721/0.3334, allocations: 298.5 kB / 455.8 MB, free: 29.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002079/0.3336, allocations: 248 kB / 456 MB, free: 29.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003027/0.3339, allocations: 168.8 kB / 456.2 MB, free: 29.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.3341, allocations: 374 kB / 456.6 MB, free: 28.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006738/0.3347, allocations: 363 kB / 456.9 MB, free: 28.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007716/0.3355, allocations: 498.1 kB / 457.4 MB, free: 28.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001537/0.3371, allocations: 0.8733 MB / 458.3 MB, free: 27.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.093e-06/0.3371, allocations: 1.031 kB / 458.3 MB, free: 27.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.005604/0.3427, allocations: 1.663 MB / 459.9 MB, free: 27.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.757e-05/0.3427, allocations: 8.047 kB / 459.9 MB, free: 27.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.305e-05/0.3428, allocations: 2.812 kB / 459.9 MB, free: 27.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004068/0.3468, allocations: 0.7217 MB / 460.7 MB, free: 27.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001415/0.3483, allocations: 252.2 kB / 460.9 MB, free: 27.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005556/0.3538, allocations: 4.157 MB / 465.1 MB, free: 23.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00094/0.3548, allocations: 34.97 kB / 465.1 MB, free: 23.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.523e-05/0.3549, allocations: 46.39 kB / 465.1 MB, free: 23.86 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.0003268/0.3552, allocations: 204.6 kB / 465.3 MB, free: 23.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001265/0.3554, allocations: 60.78 kB / 465.4 MB, free: 23.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003647/0.359, allocations: 1.417 MB / 466.8 MB, free: 23.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.307e-05/0.359, allocations: 13.88 kB / 466.8 MB, free: 23.1 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/0.3591, allocations: 6.062 kB / 466.8 MB, free: 23.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.43e-05/0.3591, allocations: 4.359 kB / 466.8 MB, free: 23.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00111/0.3602, allocations: 0.7989 MB / 467.6 MB, free: 22.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.3602, allocations: 0.75 kB / 467.6 MB, free: 22.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00114/0.3613, allocations: 215.3 kB / 467.9 MB, free: 22.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002064/0.3634, allocations: 483.1 kB / 468.3 MB, free: 22.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.569e-05/0.3635, allocations: 24.66 kB / 468.3 MB, free: 22.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003222/0.3668, allocations: 3.469 MB / 471.8 MB, free: 19.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3668, allocations: 5.094 kB / 471.8 MB, free: 19.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003898/0.3707, allocations: 1.798 MB / 473.6 MB, free: 18.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001839/0.3709, allocations: 143.7 kB / 473.8 MB, free: 18.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001115/0.371, allocations: 23.94 kB / 473.8 MB, free: 18.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005134/0.3715, allocations: 27.03 kB / 473.8 MB, free: 18.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001899/0.3717, allocations: 66.84 kB / 473.9 MB, free: 18.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.79e-05/0.3718, allocations: 25.27 kB / 473.9 MB, free: 18.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004018/0.3722, allocations: 347.9 kB / 474.2 MB, free: 18.42 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.12e-07/0.3722, allocations: 112 / 474.2 MB, free: 18.42 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008565/0.3731, allocations: 246.5 kB / 474.5 MB, free: 18.38 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.0002054/0.3733, allocations: 136.7 kB / 474.6 MB, free: 18.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002933/0.3762, allocations: 1.288 MB / 475.9 MB, free: 17.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.3762, allocations: 0 / 475.9 MB, free: 17.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001345/0.3776, allocations: 0.6996 MB / 476.6 MB, free: 17.42 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006569/0.3783, allocations: 139.2 kB / 476.7 MB, free: 17.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003832/0.3821, allocations: 2.117 MB / 478.9 MB, free: 16.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004482/0.3826, allocations: 0.9345 MB / 479.8 MB, free: 15.51 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005628/0.3831, allocations: 151.6 kB / 479.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000217/0.3834, allocations: 64.56 kB / 480 MB, free: 15.47 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3834, allocations: 0 / 480 MB, free: 15.47 MB / 350.1 MB Notification: Performance of Templates: time 0.01668/0.4001, allocations: 13.16 MB / 493.2 MB, free: 3.707 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)