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.1466/0.1466, allocations: 21.44 MB / 36.39 MB, free: 1.223 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.001583/0.001583, allocations: 174.4 kB / 42.62 MB, free: 3.969 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.544/1.544, allocations: 205.4 MB / 254.1 MB, free: 15.45 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.0008619/0.000862, allocations: 92.98 kB / 307.8 MB, free: 11.34 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003069/0.000307, allocations: 12.08 kB / 373.2 MB, free: 59.26 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09398/0.0943, allocations: 52.96 MB / 426.2 MB, free: 13.33 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.0009761/0.09533, allocations: 0.671 MB / 426.9 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001169/0.09651, allocations: 1.226 MB / 428.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.421e-05/0.09661, allocations: 0 / 428.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002848/0.09691, allocations: 31.78 kB / 428.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001278/0.09705, allocations: 39.83 kB / 428.2 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001455/0.0972, allocations: 59.91 kB / 428.2 MB, free: 11.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001262/0.09734, allocations: 107.8 kB / 428.3 MB, free: 11.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.774e-05/0.09745, allocations: 25.44 kB / 428.4 MB, free: 11.15 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001153/0.09757, allocations: 91.72 kB / 428.4 MB, free: 11.06 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001121/0.09769, allocations: 75.7 kB / 428.5 MB, free: 10.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.96e-05/0.09772, allocations: 4 kB / 428.5 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.823e-05/0.09774, allocations: 8 kB / 428.5 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.998e-05/0.09779, allocations: 31.89 kB / 428.6 MB, free: 10.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.642e-05/0.09782, allocations: 41.64 kB / 428.6 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001051/0.09793, allocations: 79.84 kB / 428.7 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.09794, allocations: 3.938 kB / 428.7 MB, free: 10.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.09795, allocations: 0 / 428.7 MB, free: 10.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.908e-06/0.09796, allocations: 0 / 428.7 MB, free: 10.82 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.0008558/0.09882, allocations: 482.7 kB / 429.2 MB, free: 10.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.09886, allocations: 12.03 kB / 429.2 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.269e-05/0.09891, allocations: 15.8 kB / 429.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004484/0.09937, allocations: 275.4 kB / 429.4 MB, free: 9.961 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/0.09939, allocations: 4 kB / 429.5 MB, free: 9.957 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.475e-05/0.09942, allocations: 8 kB / 429.5 MB, free: 9.949 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001542/0.09958, allocations: 101.5 kB / 429.6 MB, free: 9.844 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.0996, allocations: 0 / 429.6 MB, free: 9.844 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.09962, allocations: 0 / 429.6 MB, free: 9.844 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.09963, allocations: 7.938 kB / 429.6 MB, free: 9.836 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001297/0.09976, allocations: 79.94 kB / 429.6 MB, free: 9.758 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005642/0.1003, allocations: 416.6 kB / 430.1 MB, free: 9.301 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003127/0.1007, allocations: 154.7 kB / 430.2 MB, free: 9.141 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.523e-05/0.1007, allocations: 0 / 430.2 MB, free: 9.141 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.253e-05/0.1007, allocations: 34.56 kB / 430.2 MB, free: 9.098 MB / 298.7 MB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.1007, allocations: 0 / 430.2 MB, free: 9.098 MB / 298.7 MB Notification: Performance of matching and sorting (n=10): time 0.002319/0.103, allocations: 491.4 kB / 430.7 MB, free: 8.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.208e-05/0.1031, allocations: 59.5 kB / 430.8 MB, free: 8.52 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003745/0.1035, allocations: 240.1 kB / 431 MB, free: 8.277 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.1035, allocations: 25.7 kB / 431 MB, free: 8.246 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.274e-05/0.1035, allocations: 104.1 kB / 431.1 MB, free: 8.141 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.087e-05/0.1036, allocations: 39.59 kB / 431.2 MB, free: 8.102 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.372e-06/0.1036, allocations: 8 kB / 431.2 MB, free: 8.094 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.557e-05/0.1036, allocations: 322.8 kB / 431.5 MB, free: 7.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.279e-05/0.1037, allocations: 35.97 kB / 431.5 MB, free: 7.734 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.717e-05/0.1038, allocations: 39.97 kB / 431.6 MB, free: 7.695 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.032e-05/0.1038, allocations: 43.92 kB / 431.6 MB, free: 7.652 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.1038, allocations: 0 / 431.6 MB, free: 7.652 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0008365/0.1047, allocations: 242.1 kB / 431.8 MB, free: 7.406 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.1047, allocations: 8 kB / 431.9 MB, free: 7.398 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.1047, allocations: 4 kB / 431.9 MB, free: 7.395 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008518/0.1056, allocations: 116.7 kB / 432 MB, free: 7.277 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.648e-05/0.1057, allocations: 15.98 kB / 432 MB, free: 7.262 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003071/0.1087, allocations: 1.778 MB / 433.8 MB, free: 5.344 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002043/0.109, allocations: 31.89 kB / 433.8 MB, free: 5.312 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.06e-05/0.109, allocations: 0 / 433.8 MB, free: 5.312 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001019/0.1091, allocations: 141.9 kB / 433.9 MB, free: 5.164 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.327e-05/0.1091, allocations: 7.969 kB / 433.9 MB, free: 5.156 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007799/0.1099, allocations: 279.5 kB / 434.2 MB, free: 4.871 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.1099, allocations: 4 kB / 434.2 MB, free: 4.867 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-06/0.1099, allocations: 0 / 434.2 MB, free: 4.867 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.1099, allocations: 0 / 434.2 MB, free: 4.867 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001899/0.1101, allocations: 233.6 kB / 434.5 MB, free: 4.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1101, allocations: 0 / 434.5 MB, free: 4.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.086e-05/0.1102, allocations: 11.98 kB / 434.5 MB, free: 4.578 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005696/0.1108, allocations: 120.7 kB / 434.6 MB, free: 4.457 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.1108, allocations: 0 / 434.6 MB, free: 4.457 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002009/0.1129, allocations: 1.719 MB / 436.3 MB, free: 2.605 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.1129, allocations: 4.125 kB / 436.3 MB, free: 2.602 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007493/0.1136, allocations: 396.8 kB / 436.7 MB, free: 2.195 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.988e-05/0.1137, allocations: 100.9 kB / 436.8 MB, free: 2.078 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.176e-05/0.1137, allocations: 4 kB / 436.8 MB, free: 2.074 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002312/0.114, allocations: 35.95 kB / 436.8 MB, free: 2.039 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.1e-05/0.114, allocations: 7.984 kB / 436.8 MB, free: 2.031 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.172e-05/0.114, allocations: 11.95 kB / 436.8 MB, free: 2.02 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003354/0.1144, allocations: 183.9 kB / 437 MB, free: 1.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1144, allocations: 0 / 437 MB, free: 1.84 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000297/0.1147, allocations: 28 kB / 437.1 MB, free: 1.812 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001324/0.1148, allocations: 111.2 kB / 437.2 MB, free: 1.691 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004187/0.1152, allocations: 238.5 kB / 437.4 MB, free: 1.445 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.1152, allocations: 0 / 437.4 MB, free: 1.445 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001901/0.1154, allocations: 194.8 kB / 437.6 MB, free: 1.242 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000241/0.1157, allocations: 23.92 kB / 437.6 MB, free: 1.219 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004865/0.1162, allocations: 341.2 kB / 437.9 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001732/0.1164, allocations: 0.7358 MB / 438.7 MB, free: 108 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.43e-05/0.1165, allocations: 24.41 kB / 438.7 MB, free: 84 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.624e-05/0.1165, allocations: 15.44 kB / 438.7 MB, free: 68 kB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.1165, allocations: 4 kB / 438.7 MB, free: 64 kB / 298.7 MB Notification: Performance of Templates: time 0.005086/0.1216, allocations: 2.247 MB / 441 MB, free: 13.81 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 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_004_LTI.pipe 2>&1)