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.001271/0.001271, allocations: 103.3 kB / 16.35 MB, free: 5.875 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.001362/0.001362, allocations: 191 kB / 17.29 MB, free: 5.516 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.302/1.302, allocations: 222.9 MB / 241 MB, free: 14.99 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09056/0.09056, allocations: 22.33 MB / 313.5 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 63.42 kB / 382.3 MB, free: 41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0982/0.09959, allocations: 54.96 MB / 437.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.004278/0.1039, allocations: 3.009 MB / 440.2 MB, free: 9.211 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001466/0.1054, allocations: 0.9393 MB / 441.2 MB, free: 8.266 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001184/0.1055, allocations: 4 kB / 441.2 MB, free: 8.262 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001668/0.1057, allocations: 67.36 kB / 441.2 MB, free: 8.195 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003489/0.1061, allocations: 170.7 kB / 441.4 MB, free: 8.027 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004464/0.1066, allocations: 187.6 kB / 441.6 MB, free: 7.844 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006101/0.1072, allocations: 0.7098 MB / 442.3 MB, free: 7.133 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004459/0.1076, allocations: 399.7 kB / 442.7 MB, free: 6.738 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002798/0.1079, allocations: 303 kB / 443 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004553/0.1084, allocations: 402.8 kB / 443.4 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.587e-05/0.1085, allocations: 72 kB / 443.4 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001613/0.1087, allocations: 107.9 kB / 443.5 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001835/0.1088, allocations: 207.4 kB / 443.7 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002834/0.1091, allocations: 334.5 kB / 444.1 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006249/0.1098, allocations: 0.7748 MB / 444.9 MB, free: 4.562 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1098, allocations: 4 kB / 444.9 MB, free: 4.559 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1098, allocations: 0 / 444.9 MB, free: 4.559 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.1098, allocations: 0 / 444.9 MB, free: 4.559 MB / 318.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.001854/0.1117, allocations: 0.9141 MB / 445.8 MB, free: 3.594 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.1117, allocations: 8.031 kB / 445.8 MB, free: 3.586 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001144/0.1118, allocations: 56.28 kB / 445.8 MB, free: 3.531 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005233/0.1124, allocations: 387.7 kB / 446.2 MB, free: 3.109 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.012e-05/0.1124, allocations: 33.38 kB / 446.2 MB, free: 3.078 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.914e-05/0.1125, allocations: 48.38 kB / 446.3 MB, free: 3.031 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009648/0.1135, allocations: 0.5454 MB / 446.8 MB, free: 2.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.1135, allocations: 4 kB / 446.8 MB, free: 2.477 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.722e-05/0.1135, allocations: 23.98 kB / 446.9 MB, free: 2.453 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.1136, allocations: 11.94 kB / 446.9 MB, free: 2.441 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009372/0.1145, allocations: 0.5387 MB / 447.4 MB, free: 1.902 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002935/0.1174, allocations: 1.527 MB / 448.9 MB, free: 332 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008459/0.1183, allocations: 492.3 kB / 449.4 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000479/0.1188, allocations: 262 kB / 449.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.929e-05/0.1189, allocations: 16.55 kB / 449.7 MB, free: 15.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.536e-05/0.1189, allocations: 35 kB / 449.7 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002459/0.1191, allocations: 63.56 kB / 449.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 3.106e-06/0.1192, allocations: 4 kB / 449.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=48): time 0.002906/0.1221, allocations: 1.088 MB / 450.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/0.1221, allocations: 63.77 kB / 450.9 MB, free: 14.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003845/0.1225, allocations: 389.5 kB / 451.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.26e-05/0.1226, allocations: 29.7 kB / 451.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001454/0.1227, allocations: 244.1 kB / 451.6 MB, free: 13.56 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001304/0.1228, allocations: 181.4 kB / 451.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000197/0.1231, allocations: 122.2 kB / 451.9 MB, free: 13.26 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.1232, allocations: 354.8 kB / 452.2 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004686/0.1237, allocations: 261.2 kB / 452.5 MB, free: 12.65 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005441/0.1242, allocations: 370.1 kB / 452.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001011/0.1252, allocations: 0.6266 MB / 453.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.1252, allocations: 0 / 453.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001899/0.1272, allocations: 0.8514 MB / 454.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.1272, allocations: 8 kB / 454.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.1272, allocations: 0 / 454.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00112/0.1283, allocations: 181.5 kB / 454.5 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001301/0.1296, allocations: 243.7 kB / 454.8 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000774/0.1304, allocations: 1.155 MB / 455.9 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004782/0.1309, allocations: 27.97 kB / 455.9 MB, free: 9.051 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.93e-05/0.131, allocations: 31.92 kB / 456 MB, free: 9.02 MB / 334.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.0002497/0.1312, allocations: 190.6 kB / 456.2 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.126e-05/0.1313, allocations: 51.47 kB / 456.2 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001921/0.1333, allocations: 0.8297 MB / 457 MB, free: 7.941 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.257e-06/0.1333, allocations: 8 kB / 457 MB, free: 7.934 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.1333, allocations: 0 / 457 MB, free: 7.934 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.443e-06/0.1333, allocations: 3.984 kB / 457 MB, free: 7.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002591/0.1359, allocations: 1.46 MB / 458.5 MB, free: 6.406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.1359, allocations: 4 kB / 458.5 MB, free: 6.402 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001123/0.1371, allocations: 199.8 kB / 458.7 MB, free: 6.207 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008698/0.1379, allocations: 165.5 kB / 458.9 MB, free: 6.039 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.716e-05/0.138, allocations: 19.98 kB / 458.9 MB, free: 6.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000754/0.1388, allocations: 1.163 MB / 460 MB, free: 4.805 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1388, allocations: 0 / 460 MB, free: 4.805 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00213/0.1409, allocations: 1.138 MB / 461.2 MB, free: 3.645 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001221/0.1411, allocations: 120.5 kB / 461.3 MB, free: 3.508 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.754e-05/0.1411, allocations: 19.94 kB / 461.3 MB, free: 3.488 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003979/0.1416, allocations: 23.97 kB / 461.3 MB, free: 3.465 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001238/0.1417, allocations: 44.5 kB / 461.4 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.677e-05/0.1417, allocations: 19.98 kB / 461.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002958/0.142, allocations: 271.2 kB / 461.7 MB, free: 3.141 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.142, allocations: 4 kB / 461.7 MB, free: 3.137 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005489/0.1426, allocations: 167.8 kB / 461.8 MB, free: 2.973 MB / 334.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.0002131/0.1428, allocations: 123.3 kB / 462 MB, free: 2.84 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00143/0.1443, allocations: 0.6834 MB / 462.6 MB, free: 2.152 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.1443, allocations: 0.75 kB / 462.6 MB, free: 2.152 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007727/0.1451, allocations: 371 kB / 463 MB, free: 1.793 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005409/0.1456, allocations: 115.7 kB / 463.1 MB, free: 1.68 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0034/0.149, allocations: 1.771 MB / 464.9 MB, free: 15.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004115/0.1495, allocations: 0.8635 MB / 465.8 MB, free: 14.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004454/0.1499, allocations: 128.5 kB / 465.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002057/0.1501, allocations: 59.41 kB / 465.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1501, allocations: 0 / 465.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of Templates: time 0.0145/0.1646, allocations: 8.984 MB / 474.9 MB, free: 5.941 MB / 350.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 -s cvode -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001.pipe 2>&1)