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_004_LTI.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI,tolerance=1e-09,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI,tolerance=1e-09,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09007/0.09007, allocations: 21.6 MB / 37.4 MB, free: 0.7539 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001081/0.001081, allocations: 192.4 kB / 43.64 MB, free: 3.562 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.321/1.321, allocations: 205.1 MB / 254.8 MB, free: 14.28 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000967/0.000967, allocations: 106.2 kB / 307.5 MB, free: 11.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000949/0.0009491, allocations: 54.06 kB / 372.3 MB, free: 59.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0767/0.07767, allocations: 51.97 MB / 424.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI): time 0.002321/0.08003, allocations: 1.042 MB / 425.4 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.08114, allocations: 1.249 MB / 426.6 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.513e-05/0.08121, allocations: 0 / 426.6 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002658/0.08149, allocations: 27.91 kB / 426.6 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001233/0.08162, allocations: 47.81 kB / 426.7 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001213/0.08176, allocations: 63.86 kB / 426.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001563/0.08192, allocations: 199.6 kB / 426.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.579e-05/0.08201, allocations: 25.44 kB / 427 MB, free: 11.85 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.22e-05/0.0821, allocations: 79.67 kB / 427 MB, free: 11.77 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001222/0.08223, allocations: 83.7 kB / 427.1 MB, free: 11.69 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.249e-05/0.08226, allocations: 8 kB / 427.1 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.772e-05/0.08229, allocations: 8 kB / 427.1 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.566e-05/0.08235, allocations: 39.83 kB / 427.2 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.259e-05/0.08239, allocations: 43.67 kB / 427.2 MB, free: 11.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.201e-05/0.08249, allocations: 103.6 kB / 427.3 MB, free: 11.49 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.0825, allocations: 0 / 427.3 MB, free: 11.49 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.08251, allocations: 0 / 427.3 MB, free: 11.49 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.977e-06/0.08251, allocations: 0 / 427.3 MB, free: 11.49 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008135/0.08333, allocations: 0.4911 MB / 427.8 MB, free: 10.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.837e-05/0.08337, allocations: 11.97 kB / 427.8 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.352e-05/0.08341, allocations: 16.75 kB / 427.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004135/0.08382, allocations: 276.6 kB / 428.1 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.129e-05/0.08385, allocations: 12.31 kB / 428.1 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.172e-05/0.08387, allocations: 4.375 kB / 428.1 MB, free: 10.6 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001335/0.08401, allocations: 102 kB / 428.2 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.545e-06/0.08403, allocations: 0 / 428.2 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.08404, allocations: 4 kB / 428.2 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.808e-06/0.08405, allocations: 4 kB / 428.2 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001212/0.08417, allocations: 87.86 kB / 428.3 MB, free: 10.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005029/0.08468, allocations: 424.4 kB / 428.7 MB, free: 9.938 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002927/0.08499, allocations: 158.7 kB / 428.9 MB, free: 9.773 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.059e-05/0.08506, allocations: 48.83 kB / 428.9 MB, free: 9.723 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.08509, allocations: 0 / 428.9 MB, free: 9.723 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.164e-05/0.0851, allocations: 34.56 kB / 429 MB, free: 9.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 8.62e-07/0.08511, allocations: 0 / 429 MB, free: 9.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.002335/0.08745, allocations: 487 kB / 429.4 MB, free: 9.176 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.29e-05/0.08749, allocations: 63.33 kB / 429.5 MB, free: 9.102 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004521/0.08795, allocations: 228.2 kB / 429.7 MB, free: 8.871 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.287e-05/0.08797, allocations: 29.7 kB / 429.8 MB, free: 8.836 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.427e-05/0.08803, allocations: 112 kB / 429.9 MB, free: 8.723 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.356e-05/0.08807, allocations: 31.69 kB / 429.9 MB, free: 8.691 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.106e-05/0.08812, allocations: 25.72 kB / 429.9 MB, free: 8.66 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.525e-05/0.08818, allocations: 322.8 kB / 430.2 MB, free: 8.336 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.077e-05/0.08825, allocations: 39.97 kB / 430.3 MB, free: 8.297 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.22e-05/0.08832, allocations: 39.92 kB / 430.3 MB, free: 8.258 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001482/0.08981, allocations: 292.5 kB / 430.6 MB, free: 7.969 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.08983, allocations: 8 kB / 430.6 MB, free: 7.961 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0009934/0.09083, allocations: 238.2 kB / 430.8 MB, free: 7.719 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.09085, allocations: 15.94 kB / 430.9 MB, free: 7.703 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.09086, allocations: 0 / 430.9 MB, free: 7.703 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009959/0.09187, allocations: 108.8 kB / 431 MB, free: 7.594 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.944e-05/0.09195, allocations: 12.47 kB / 431 MB, free: 7.582 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003216/0.09517, allocations: 1.75 MB / 432.7 MB, free: 5.691 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002158/0.0954, allocations: 28.05 kB / 432.8 MB, free: 5.664 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.225e-05/0.09543, allocations: 11.94 kB / 432.8 MB, free: 5.652 MB / 298.7 MB Warning: Assuming fixed start value for the following 2 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] A.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 9.284e-05/0.09553, allocations: 133.6 kB / 432.9 MB, free: 5.512 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.94e-05/0.09557, allocations: 15.81 kB / 432.9 MB, free: 5.496 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008592/0.09644, allocations: 267.7 kB / 433.2 MB, free: 5.223 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.09646, allocations: 4 kB / 433.2 MB, free: 5.219 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-06/0.09646, allocations: 192 / 433.2 MB, free: 5.219 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.187e-06/0.09647, allocations: 3.984 kB / 433.2 MB, free: 5.215 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002014/0.09668, allocations: 245.5 kB / 433.4 MB, free: 4.926 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.09669, allocations: 3.984 kB / 433.4 MB, free: 4.922 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.527e-05/0.09678, allocations: 8 kB / 433.4 MB, free: 4.914 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006904/0.09748, allocations: 116.8 kB / 433.6 MB, free: 4.797 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.673e-05/0.09751, allocations: 8 kB / 433.6 MB, free: 4.789 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002174/0.09969, allocations: 1.667 MB / 435.2 MB, free: 2.988 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.09971, allocations: 3.938 kB / 435.2 MB, free: 2.984 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007235/0.1069, allocations: 4.172 MB / 439.4 MB, free: 14.53 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.775e-05/0.107, allocations: 100.9 kB / 439.5 MB, free: 14.41 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.881e-05/0.107, allocations: 11.92 kB / 439.5 MB, free: 14.4 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002324/0.1073, allocations: 28.09 kB / 439.5 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.782e-05/0.1073, allocations: 7.984 kB / 439.5 MB, free: 14.37 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.845e-06/0.1074, allocations: 4 kB / 439.6 MB, free: 14.36 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003449/0.1077, allocations: 187.9 kB / 439.7 MB, free: 14.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1077, allocations: 0 / 439.7 MB, free: 14.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003615/0.1081, allocations: 48 kB / 439.8 MB, free: 14.13 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (A.x_scaled[1],C.x_scaled[1]) * 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 (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001046/0.1082, allocations: 103.2 kB / 439.9 MB, free: 14.02 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0003499/0.1085, allocations: 235.8 kB / 440.1 MB, free: 13.78 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1086, allocations: 4 kB / 440.1 MB, free: 13.77 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002057/0.1088, allocations: 194.5 kB / 440.3 MB, free: 13.57 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002686/0.1091, allocations: 27.92 kB / 440.3 MB, free: 13.54 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006973/0.1098, allocations: 0.6405 MB / 441 MB, free: 12.86 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002358/0.11, allocations: 0.7242 MB / 441.7 MB, free: 12.11 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 6.747e-05/0.1101, allocations: 36.34 kB / 441.7 MB, free: 12.07 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.058e-05/0.1101, allocations: 15.44 kB / 441.7 MB, free: 12.05 MB / 314.7 MB Notification: Performance of SimCode: time 2.2e-07/0.1101, allocations: 0 / 441.7 MB, free: 12.05 MB / 314.7 MB Notification: Performance of Templates: time 0.005605/0.1157, allocations: 3.352 MB / 445.1 MB, free: 8.703 MB / 314.7 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe 2>&1)