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.001194/0.001194, allocations: 105.2 kB / 15.98 MB, free: 6.352 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.001269/0.001269, allocations: 195.1 kB / 16.91 MB, free: 6.191 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.227/1.227, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08528/0.08528, allocations: 22.32 MB / 313.1 MB, free: 9.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 66.3 kB / 380.9 MB, free: 41.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07013/0.07134, allocations: 54.96 MB / 435.9 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_002): time 0.004392/0.07576, allocations: 3.916 MB / 439.8 MB, free: 9.613 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001899/0.07769, allocations: 1.115 MB / 440.9 MB, free: 8.492 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002857/0.07799, allocations: 7.938 kB / 440.9 MB, free: 8.484 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000198/0.0782, allocations: 59.53 kB / 441 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004281/0.07865, allocations: 190.7 kB / 441.2 MB, free: 8.238 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005139/0.07917, allocations: 207.7 kB / 441.4 MB, free: 8.035 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007173/0.0799, allocations: 0.9082 MB / 442.3 MB, free: 7.125 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006163/0.08052, allocations: 0.6074 MB / 442.9 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003653/0.0809, allocations: 434.7 kB / 443.3 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005899/0.0815, allocations: 0.6036 MB / 443.9 MB, free: 5.484 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001253/0.08163, allocations: 100 kB / 444 MB, free: 5.387 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001889/0.08183, allocations: 136 kB / 444.1 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002216/0.08206, allocations: 283.1 kB / 444.4 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000341/0.0824, allocations: 454 kB / 444.9 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006246/0.08304, allocations: 0.8147 MB / 445.7 MB, free: 3.715 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.08305, allocations: 4 kB / 445.7 MB, free: 3.711 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.08305, allocations: 0 / 445.7 MB, free: 3.711 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.08307, allocations: 0 / 445.7 MB, free: 3.711 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002503/0.08558, allocations: 1.169 MB / 446.9 MB, free: 2.492 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/0.08562, allocations: 8.031 kB / 446.9 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001593/0.08578, allocations: 80 kB / 446.9 MB, free: 2.406 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005752/0.08636, allocations: 490.9 kB / 447.4 MB, free: 1.891 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.567e-05/0.08641, allocations: 45.69 kB / 447.5 MB, free: 1.844 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001101/0.08652, allocations: 56.38 kB / 447.5 MB, free: 1.789 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001217/0.08775, allocations: 0.76 MB / 448.3 MB, free: 1.023 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.08777, allocations: 0 / 448.3 MB, free: 1.023 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.812e-05/0.08785, allocations: 24 kB / 448.3 MB, free: 1 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.08787, allocations: 12 kB / 448.3 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001317/0.08919, allocations: 0.825 MB / 449.1 MB, free: 168 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003792/0.09299, allocations: 2.09 MB / 451.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001023/0.09403, allocations: 0.6728 MB / 451.9 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006134/0.09465, allocations: 410.4 kB / 452.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.111e-05/0.09471, allocations: 16.55 kB / 452.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/0.09474, allocations: 43.25 kB / 452.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005793/0.09533, allocations: 159.3 kB / 452.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of pre-optimization done (n=68): time 2.465e-06/0.09534, allocations: 4 kB / 452.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=68): time 0.009712/0.1051, allocations: 2.552 MB / 455.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.228e-05/0.1051, allocations: 59.97 kB / 455.1 MB, free: 10 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004774/0.1056, allocations: 493.9 kB / 455.6 MB, free: 9.512 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.27e-05/0.1057, allocations: 37.7 kB / 455.7 MB, free: 9.469 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001713/0.1059, allocations: 296.4 kB / 455.9 MB, free: 9.172 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001858/0.106, allocations: 244.5 kB / 456.2 MB, free: 8.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002627/0.1063, allocations: 166.5 kB / 456.3 MB, free: 8.762 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.1064, allocations: 378.7 kB / 456.7 MB, free: 8.383 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006103/0.1071, allocations: 369.7 kB / 457.1 MB, free: 8.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006725/0.1077, allocations: 494.8 kB / 457.6 MB, free: 7.492 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0013/0.1091, allocations: 0.8768 MB / 458.4 MB, free: 6.574 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.1091, allocations: 0 / 458.4 MB, free: 6.574 MB / 334.1 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.005396/0.1145, allocations: 1.655 MB / 460.1 MB, free: 4.906 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.1145, allocations: 7.938 kB / 460.1 MB, free: 4.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.1145, allocations: 4 kB / 460.1 MB, free: 4.895 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004055/0.1186, allocations: 0.732 MB / 460.8 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/0.1199, allocations: 251.7 kB / 461.1 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00544/0.1253, allocations: 4.161 MB / 465.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006666/0.126, allocations: 32.03 kB / 465.3 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.78e-05/0.1261, allocations: 47.95 kB / 465.3 MB, free: 15.47 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.0002826/0.1264, allocations: 205.6 kB / 465.5 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001251/0.1265, allocations: 59.25 kB / 465.6 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003517/0.13, allocations: 1.412 MB / 467 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/0.1301, allocations: 11.94 kB / 467 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.1301, allocations: 4 kB / 467 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.1301, allocations: 4.078 kB / 467 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009022/0.131, allocations: 0.8061 MB / 467.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.131, allocations: 0 / 467.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00112/0.1321, allocations: 211.8 kB / 468 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002035/0.1342, allocations: 481.9 kB / 468.5 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-05/0.1343, allocations: 35.97 kB / 468.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003488/0.1378, allocations: 3.455 MB / 472 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.1378, allocations: 0 / 472 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003768/0.1416, allocations: 1.8 MB / 473.8 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001383/0.1417, allocations: 148.2 kB / 473.9 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001137/0.1418, allocations: 23.98 kB / 473.9 MB, free: 6.516 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005394/0.1424, allocations: 27.98 kB / 474 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000153/0.1425, allocations: 64.89 kB / 474 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.968e-05/0.1426, allocations: 28 kB / 474.1 MB, free: 6.398 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003551/0.143, allocations: 347 kB / 474.4 MB, free: 6.062 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.143, allocations: 3.938 kB / 474.4 MB, free: 6.059 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007402/0.1437, allocations: 243.8 kB / 474.6 MB, free: 5.82 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.0001895/0.1439, allocations: 135.2 kB / 474.8 MB, free: 5.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002754/0.1467, allocations: 1.289 MB / 476.1 MB, free: 4.375 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1467, allocations: 4 kB / 476.1 MB, free: 4.371 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001304/0.148, allocations: 0.6918 MB / 476.8 MB, free: 3.668 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000594/0.1486, allocations: 134.2 kB / 476.9 MB, free: 3.539 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003736/0.1524, allocations: 2.434 MB / 479.3 MB, free: 1.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000415/0.1528, allocations: 0.9356 MB / 480.3 MB, free: 104 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002589/0.1531, allocations: 67.41 kB / 480.3 MB, free: 36 kB / 350.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1531, allocations: 0 / 480.3 MB, free: 36 kB / 350.1 MB Notification: Performance of Templates: time 0.01687/0.1699, allocations: 16.29 MB / 496.6 MB, free: 15.77 MB / 382.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)