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/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_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") [/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.1149/0.1149, allocations: 21.41 MB / 36.66 MB, free: 1.102 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.001528/0.001528, allocations: 168.5 kB / 42.83 MB, free: 3.879 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.597/1.597, allocations: 205 MB / 253.9 MB, free: 15.05 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.000778/0.0007781, allocations: 85.27 kB / 307.2 MB, free: 11.47 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003348/0.0003349, allocations: 7.969 kB / 372.5 MB, free: 59.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1026, allocations: 52.52 MB / 425 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.003883/0.1065, allocations: 3.276 MB / 428.3 MB, free: 11.01 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001462/0.108, allocations: 0.9705 MB / 429.2 MB, free: 10.03 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001474/0.1082, allocations: 4 kB / 429.2 MB, free: 10.03 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000191/0.1084, allocations: 39.67 kB / 429.3 MB, free: 9.988 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003416/0.1087, allocations: 170.9 kB / 429.5 MB, free: 9.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003229/0.1091, allocations: 139.8 kB / 429.6 MB, free: 9.684 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000515/0.1096, allocations: 0.776 MB / 430.4 MB, free: 8.906 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003643/0.11, allocations: 347.2 kB / 430.7 MB, free: 8.566 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002201/0.1102, allocations: 267.1 kB / 431 MB, free: 8.305 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003631/0.1106, allocations: 394.8 kB / 431.3 MB, free: 7.918 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.725e-05/0.1107, allocations: 44 kB / 431.4 MB, free: 7.875 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001503/0.1108, allocations: 79.95 kB / 431.5 MB, free: 7.797 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001365/0.111, allocations: 187.4 kB / 431.7 MB, free: 7.613 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002194/0.1112, allocations: 298.5 kB / 431.9 MB, free: 7.32 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004688/0.1117, allocations: 0.7124 MB / 432.7 MB, free: 6.605 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1117, allocations: 3.938 kB / 432.7 MB, free: 6.602 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1117, allocations: 3.938 kB / 432.7 MB, free: 6.598 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.1117, allocations: 0 / 432.7 MB, free: 6.598 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001602/0.1133, allocations: 0.8848 MB / 433.5 MB, free: 5.664 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.068e-05/0.1134, allocations: 8.031 kB / 433.6 MB, free: 5.656 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001151/0.1135, allocations: 56.28 kB / 433.6 MB, free: 5.602 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004231/0.1139, allocations: 383.7 kB / 434 MB, free: 5.184 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.617e-05/0.114, allocations: 29.38 kB / 434 MB, free: 5.152 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.73e-05/0.1141, allocations: 48.38 kB / 434.1 MB, free: 5.105 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007521/0.1148, allocations: 0.5337 MB / 434.6 MB, free: 4.566 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.511e-05/0.1148, allocations: 4 kB / 434.6 MB, free: 4.562 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.691e-05/0.1149, allocations: 12 kB / 434.6 MB, free: 4.551 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.808e-06/0.1149, allocations: 12 kB / 434.6 MB, free: 4.539 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008247/0.1157, allocations: 0.527 MB / 435.2 MB, free: 4.016 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002394/0.1181, allocations: 1.511 MB / 436.7 MB, free: 2.449 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006867/0.1188, allocations: 476.7 kB / 437.1 MB, free: 1.977 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003996/0.1193, allocations: 262 kB / 437.4 MB, free: 1.715 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001456/0.1194, allocations: 97.67 kB / 437.5 MB, free: 1.602 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.266e-05/0.1194, allocations: 38.94 kB / 437.5 MB, free: 1.555 MB / 298.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002054/0.1196, allocations: 55.8 kB / 437.6 MB, free: 1.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=48): time 4.809e-06/0.1197, allocations: 3.984 kB / 437.6 MB, free: 1.496 MB / 298.7 MB Notification: Performance of matching and sorting (n=48): time 0.003504/0.1232, allocations: 1.193 MB / 438.8 MB, free: 260 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.047e-05/0.1232, allocations: 67.78 kB / 438.8 MB, free: 180 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003896/0.1236, allocations: 381.7 kB / 439.2 MB, free: 15.79 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.358e-05/0.1237, allocations: 33.7 kB / 439.2 MB, free: 15.75 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000162/0.1238, allocations: 239.9 kB / 439.5 MB, free: 15.52 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001547/0.124, allocations: 177.5 kB / 439.6 MB, free: 15.34 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001875/0.1242, allocations: 122.2 kB / 439.8 MB, free: 15.22 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.1244, allocations: 350.8 kB / 440.1 MB, free: 14.87 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004467/0.1248, allocations: 249.2 kB / 440.4 MB, free: 14.62 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005457/0.1254, allocations: 366.1 kB / 440.7 MB, free: 14.22 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009911/0.1264, allocations: 0.6109 MB / 441.3 MB, free: 13.57 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.1264, allocations: 4 kB / 441.3 MB, free: 13.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003056/0.1294, allocations: 0.9724 MB / 442.3 MB, free: 12.58 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.1295, allocations: 8.062 kB / 442.3 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.1295, allocations: 4 kB / 442.3 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003278/0.1328, allocations: 345.3 kB / 442.6 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001087/0.1339, allocations: 235.7 kB / 442.9 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008677/0.1348, allocations: 1.14 MB / 444 MB, free: 10.8 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004731/0.1352, allocations: 35.88 kB / 444.1 MB, free: 10.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.326e-05/0.1353, allocations: 28.11 kB / 444.1 MB, free: 10.74 MB / 314.7 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.0002785/0.1356, allocations: 197.5 kB / 444.3 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.782e-05/0.1357, allocations: 43.47 kB / 444.3 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003051/0.1388, allocations: 0.9428 MB / 445.3 MB, free: 9.531 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.1388, allocations: 8 kB / 445.3 MB, free: 9.523 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.1388, allocations: 0 / 445.3 MB, free: 9.523 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.1388, allocations: 3.984 kB / 445.3 MB, free: 9.52 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003607/0.1424, allocations: 1.577 MB / 446.8 MB, free: 7.879 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/0.1424, allocations: 4 kB / 446.8 MB, free: 7.875 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009817/0.1434, allocations: 191.8 kB / 447 MB, free: 7.688 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003046/0.1465, allocations: 345.3 kB / 447.4 MB, free: 7.344 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.256e-05/0.1466, allocations: 15.98 kB / 447.4 MB, free: 7.328 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008004/0.1474, allocations: 1.159 MB / 448.5 MB, free: 6.117 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.1474, allocations: 7.922 kB / 448.6 MB, free: 6.109 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003397/0.1508, allocations: 1.242 MB / 449.8 MB, free: 4.848 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001622/0.151, allocations: 128.5 kB / 449.9 MB, free: 4.703 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.697e-05/0.1511, allocations: 16 kB / 449.9 MB, free: 4.688 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003749/0.1514, allocations: 23.97 kB / 450 MB, free: 4.664 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.1516, allocations: 40.5 kB / 450 MB, free: 4.625 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.025e-05/0.1516, allocations: 19.98 kB / 450 MB, free: 4.605 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003091/0.1519, allocations: 275.2 kB / 450.3 MB, free: 4.344 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1519, allocations: 0 / 450.3 MB, free: 4.344 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005586/0.1525, allocations: 159.8 kB / 450.4 MB, free: 4.188 MB / 314.7 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 (54): * Single equations (assignments): 52 * 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.0002083/0.1527, allocations: 123.2 kB / 450.6 MB, free: 4.059 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001434/0.1541, allocations: 0.6485 MB / 451.2 MB, free: 3.41 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.1542, allocations: 0 / 451.2 MB, free: 3.41 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006668/0.1548, allocations: 359 kB / 451.6 MB, free: 3.059 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005436/0.1554, allocations: 111.9 kB / 451.7 MB, free: 2.949 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003442/0.1588, allocations: 1.98 MB / 453.7 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004773/0.1593, allocations: 0.8521 MB / 454.5 MB, free: 64 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005289/0.1599, allocations: 140.3 kB / 454.6 MB, free: 15.93 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001859/0.1601, allocations: 59.36 kB / 454.7 MB, free: 15.87 MB / 330.7 MB Notification: Performance of SimCode: time 4.51e-07/0.1601, allocations: 0 / 454.7 MB, free: 15.87 MB / 330.7 MB Notification: Performance of Templates: time 0.01272/0.1728, allocations: 7.659 MB / 462.4 MB, free: 8.207 MB / 330.7 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)