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_001.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_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001") translateModel(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001547/0.001548, allocations: 107.7 kB / 16.41 MB, free: 6.484 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.001686/0.001686, allocations: 187 kB / 17.34 MB, free: 5.734 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.334/1.334, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09023/0.09023, allocations: 22.33 MB / 313.5 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 67.91 kB / 437.7 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1068, allocations: 54.95 MB / 492.7 MB, free: 4.754 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.004348/0.1112, allocations: 3.004 MB / 495.7 MB, free: 1.723 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002029/0.1132, allocations: 0.9394 MB / 496.6 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003336/0.1136, allocations: 7.938 kB / 496.6 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002699/0.1139, allocations: 63.36 kB / 496.7 MB, free: 0.707 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006126/0.1145, allocations: 170.8 kB / 496.9 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006707/0.1152, allocations: 191.5 kB / 497.1 MB, free: 360 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009354/0.1162, allocations: 0.7097 MB / 497.8 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006394/0.1168, allocations: 395.8 kB / 498.1 MB, free: 15.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004904/0.1173, allocations: 307 kB / 498.4 MB, free: 14.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006202/0.118, allocations: 414.6 kB / 498.9 MB, free: 14.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002272/0.1182, allocations: 68 kB / 498.9 MB, free: 14.47 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003109/0.1185, allocations: 99.97 kB / 499 MB, free: 14.38 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002554/0.1188, allocations: 203.5 kB / 499.2 MB, free: 14.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004099/0.1192, allocations: 330.6 kB / 499.5 MB, free: 13.85 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007163/0.1199, allocations: 0.7748 MB / 0.4886 GB, free: 13.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1199, allocations: 0 / 0.4886 GB, free: 13.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.085e-06/0.1199, allocations: 0 / 0.4886 GB, free: 13.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.539e-05/0.12, allocations: 3.938 kB / 0.4886 GB, free: 13.07 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001885/0.1218, allocations: 0.912 MB / 0.4895 GB, free: 12.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.1219, allocations: 8.031 kB / 0.4895 GB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001183/0.122, allocations: 56.28 kB / 0.4895 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004736/0.1225, allocations: 399.7 kB / 0.4899 GB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3e-05/0.1225, allocations: 29.38 kB / 0.49 GB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.521e-05/0.1226, allocations: 48.38 kB / 0.49 GB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009299/0.1236, allocations: 0.5454 MB / 0.4905 GB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.1236, allocations: 3.938 kB / 0.4905 GB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.234e-05/0.1237, allocations: 19.94 kB / 0.4906 GB, free: 10.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.1237, allocations: 16 kB / 0.4906 GB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009715/0.1247, allocations: 0.5387 MB / 0.4911 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002842/0.1275, allocations: 1.535 MB / 0.4926 GB, free: 8.824 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008418/0.1284, allocations: 484.7 kB / 0.4931 GB, free: 8.344 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004755/0.1288, allocations: 262 kB / 0.4933 GB, free: 8.082 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.372e-05/0.1289, allocations: 12.58 kB / 0.4933 GB, free: 8.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.587e-05/0.1289, allocations: 43 kB / 0.4934 GB, free: 8.02 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002261/0.1292, allocations: 51.58 kB / 0.4934 GB, free: 7.969 MB / 382.1 MB Notification: Performance of pre-optimization done (n=48): time 2.234e-06/0.1292, allocations: 4 kB / 0.4934 GB, free: 7.965 MB / 382.1 MB Notification: Performance of matching and sorting (n=48): time 0.002845/0.132, allocations: 1.088 MB / 0.4945 GB, free: 6.828 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.962e-05/0.1321, allocations: 59.78 kB / 0.4945 GB, free: 6.758 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003779/0.1325, allocations: 393.5 kB / 0.4949 GB, free: 6.363 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.466e-05/0.1325, allocations: 37.7 kB / 0.4949 GB, free: 6.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001457/0.1327, allocations: 244.1 kB / 0.4952 GB, free: 6.078 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001339/0.1328, allocations: 181.4 kB / 0.4953 GB, free: 5.898 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001941/0.133, allocations: 122.3 kB / 0.4955 GB, free: 5.773 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.1331, allocations: 354.8 kB / 0.4958 GB, free: 5.418 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004563/0.1336, allocations: 257.2 kB / 0.496 GB, free: 5.168 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005255/0.1341, allocations: 366.1 kB / 0.4964 GB, free: 4.77 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001006/0.1351, allocations: 0.6304 MB / 0.497 GB, free: 4.098 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.1352, allocations: 0 / 0.497 GB, free: 4.098 MB / 382.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.00184/0.137, allocations: 0.8549 MB / 0.4978 GB, free: 3.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.137, allocations: 8 kB / 0.4979 GB, free: 3.223 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.137, allocations: 0 / 0.4979 GB, free: 3.223 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001078/0.1381, allocations: 177.9 kB / 0.498 GB, free: 3.043 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/0.1393, allocations: 247.7 kB / 0.4983 GB, free: 2.801 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000804/0.1402, allocations: 1.155 MB / 0.4994 GB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004252/0.1406, allocations: 27.98 kB / 0.4994 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.239e-05/0.1407, allocations: 32.73 kB / 0.4994 GB, free: 1.535 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0002353/0.1409, allocations: 186.4 kB / 0.4996 GB, free: 1.344 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.672e-05/0.141, allocations: 43.44 kB / 0.4997 GB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001804/0.1428, allocations: 0.8221 MB / 0.5005 GB, free: 480 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.1428, allocations: 8 kB / 0.5005 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.1428, allocations: 0 / 0.5005 GB, free: 472 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/0.1429, allocations: 3.984 kB / 0.5005 GB, free: 468 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2242/0.3671, allocations: 1.466 MB / 0.5019 GB, free: 21.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.139e-06/0.3671, allocations: 0 / 0.5019 GB, free: 21.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001047/0.3682, allocations: 196.9 kB / 0.5021 GB, free: 21.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007732/0.369, allocations: 161.4 kB / 0.5023 GB, free: 21.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.42e-05/0.369, allocations: 21.67 kB / 0.5023 GB, free: 21.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005569/0.3696, allocations: 1.16 MB / 0.5034 GB, free: 20.87 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.3696, allocations: 10.05 kB / 0.5034 GB, free: 20.87 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001969/0.3716, allocations: 1.13 MB / 0.5045 GB, free: 20.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001252/0.3717, allocations: 124 kB / 0.5046 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.971e-05/0.3718, allocations: 14.47 kB / 0.5047 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003782/0.3722, allocations: 24.75 kB / 0.5047 GB, free: 20.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.3723, allocations: 45.55 kB / 0.5047 GB, free: 20.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.693e-05/0.3724, allocations: 22.64 kB / 0.5047 GB, free: 20.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002822/0.3727, allocations: 273.7 kB / 0.505 GB, free: 20.53 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3727, allocations: 0 / 0.505 GB, free: 20.53 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005324/0.3732, allocations: 169.2 kB / 0.5052 GB, free: 20.53 MB / 382.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 (56): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001743/0.3734, allocations: 122.1 kB / 0.5053 GB, free: 20.44 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001424/0.3748, allocations: 0.6867 MB / 0.506 GB, free: 20.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3749, allocations: 0 / 0.506 GB, free: 20.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007423/0.3756, allocations: 364.9 kB / 0.5063 GB, free: 20.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005631/0.3762, allocations: 113.3 kB / 0.5064 GB, free: 20.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00325/0.3794, allocations: 1.818 MB / 0.5082 GB, free: 19.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003064/0.3798, allocations: 0.8597 MB / 0.509 GB, free: 19 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002823/0.3801, allocations: 66.88 kB / 0.5091 GB, free: 19 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3801, allocations: 0 / 0.5091 GB, free: 19 MB / 382.1 MB Notification: Performance of Templates: time 0.01607/0.3961, allocations: 10.66 MB / 0.5195 GB, free: 16.21 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.sim & ./AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe 2>&1)