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.09063/0.09063, allocations: 21.61 MB / 37.41 MB, free: 0.7578 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.00107/0.00107, allocations: 184.5 kB / 43.63 MB, free: 3.578 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.244/1.244, allocations: 205.1 MB / 254.8 MB, free: 14.27 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.0009584/0.0009581, allocations: 108 kB / 307.5 MB, free: 11.37 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 58.66 kB / 372.3 MB, free: 59.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08121/0.08246, allocations: 51.97 MB / 424.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Flow_pressure_control_liquids.Valve_linearisation_case_001): time 0.003221/0.08572, allocations: 3.292 MB / 427.6 MB, free: 11.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001198/0.08694, allocations: 0.9822 MB / 428.6 MB, free: 10.19 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001207/0.08708, allocations: 8 kB / 428.6 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001671/0.08725, allocations: 39.69 kB / 428.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003171/0.08758, allocations: 154.9 kB / 428.8 MB, free: 9.988 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003247/0.08792, allocations: 143.8 kB / 428.9 MB, free: 9.848 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005011/0.08843, allocations: 0.7916 MB / 429.7 MB, free: 9.055 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003663/0.0888, allocations: 347.2 kB / 430.1 MB, free: 8.715 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000222/0.08903, allocations: 275.1 kB / 430.3 MB, free: 8.445 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003526/0.08939, allocations: 406.6 kB / 430.7 MB, free: 8.047 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.617e-05/0.08948, allocations: 48 kB / 430.8 MB, free: 8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001458/0.08963, allocations: 71.97 kB / 430.8 MB, free: 7.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001273/0.08976, allocations: 183.4 kB / 431 MB, free: 7.75 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002001/0.08997, allocations: 298.6 kB / 431.3 MB, free: 7.457 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004326/0.09041, allocations: 0.7476 MB / 432.1 MB, free: 6.707 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.135e-06/0.09042, allocations: 0 / 432.1 MB, free: 6.707 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.09043, allocations: 0 / 432.1 MB, free: 6.707 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.09044, allocations: 4 kB / 432.1 MB, free: 6.703 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.001566/0.09201, allocations: 0.8924 MB / 433 MB, free: 5.762 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.09206, allocations: 12.03 kB / 433 MB, free: 5.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/0.09217, allocations: 56.28 kB / 433 MB, free: 5.695 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000392/0.09257, allocations: 379.8 kB / 433.4 MB, free: 5.281 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.341e-05/0.0926, allocations: 33.38 kB / 433.4 MB, free: 5.246 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.597e-05/0.09268, allocations: 52.27 kB / 433.5 MB, free: 5.195 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007177/0.0934, allocations: 0.5454 MB / 434 MB, free: 4.645 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.09343, allocations: 4 kB / 434 MB, free: 4.641 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.435e-05/0.09348, allocations: 16 kB / 434 MB, free: 4.625 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.09349, allocations: 8 kB / 434 MB, free: 4.617 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007629/0.09426, allocations: 0.5426 MB / 434.6 MB, free: 4.078 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002402/0.09667, allocations: 1.527 MB / 436.1 MB, free: 2.496 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006639/0.09734, allocations: 488.2 kB / 436.6 MB, free: 2.012 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003844/0.09774, allocations: 258.8 kB / 436.8 MB, free: 1.754 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001261/0.09787, allocations: 93.62 kB / 436.9 MB, free: 1.645 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.491e-05/0.0979, allocations: 46.98 kB / 437 MB, free: 1.59 MB / 298.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002018/0.09811, allocations: 67.5 kB / 437.1 MB, free: 1.523 MB / 298.7 MB Notification: Performance of pre-optimization done (n=48): time 1.684e-06/0.09812, allocations: 0 / 437.1 MB, free: 1.523 MB / 298.7 MB Notification: Performance of matching and sorting (n=48): time 0.003443/0.1016, allocations: 1.213 MB / 438.3 MB, free: 268 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.795e-05/0.1016, allocations: 59.78 kB / 438.3 MB, free: 196 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003919/0.102, allocations: 393.6 kB / 438.7 MB, free: 15.8 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.901e-05/0.1021, allocations: 29.7 kB / 438.7 MB, free: 15.76 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001554/0.1022, allocations: 240 kB / 439 MB, free: 15.52 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001416/0.1024, allocations: 181.4 kB / 439.1 MB, free: 15.35 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001951/0.1026, allocations: 126.2 kB / 439.3 MB, free: 15.22 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.1027, allocations: 358.8 kB / 439.6 MB, free: 14.86 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004318/0.1031, allocations: 245.2 kB / 439.9 MB, free: 14.62 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004875/0.1036, allocations: 366.1 kB / 440.2 MB, free: 14.22 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009556/0.1046, allocations: 0.6148 MB / 440.8 MB, free: 13.56 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1046, allocations: 0 / 440.8 MB, free: 13.56 MB / 314.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002976/0.1076, allocations: 0.9954 MB / 441.8 MB, free: 12.55 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.1076, allocations: 8 kB / 441.8 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.1076, allocations: 4 kB / 441.8 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003228/0.1109, allocations: 349.7 kB / 442.2 MB, free: 12.2 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001214/0.1121, allocations: 247.7 kB / 442.4 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007593/0.1129, allocations: 1.148 MB / 443.6 MB, free: 10.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004344/0.1133, allocations: 31.92 kB / 443.6 MB, free: 10.72 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.641e-05/0.1134, allocations: 31.97 kB / 443.6 MB, free: 10.69 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.0002229/0.1136, allocations: 181.6 kB / 443.8 MB, free: 10.5 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.359e-05/0.1137, allocations: 51.56 kB / 443.9 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003027/0.1167, allocations: 0.9662 MB / 444.8 MB, free: 9.465 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-05/0.1168, allocations: 8 kB / 444.8 MB, free: 9.457 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.1168, allocations: 3.984 kB / 444.8 MB, free: 9.453 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.1168, allocations: 0 / 444.8 MB, free: 9.453 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003603/0.1204, allocations: 1.6 MB / 446.4 MB, free: 7.789 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.1204, allocations: 0 / 446.4 MB, free: 7.789 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001007/0.1214, allocations: 195.8 kB / 446.6 MB, free: 7.598 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003114/0.1246, allocations: 353.4 kB / 447 MB, free: 7.246 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.754e-05/0.1246, allocations: 19.98 kB / 447 MB, free: 7.227 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007464/0.1254, allocations: 1.147 MB / 448.1 MB, free: 6.027 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1254, allocations: 4.125 kB / 448.1 MB, free: 6.023 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02982/0.1552, allocations: 11.18 MB / 459.3 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001007/0.1554, allocations: 120.5 kB / 459.4 MB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.163e-05/0.1554, allocations: 19.98 kB / 459.5 MB, free: 10.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003638/0.1558, allocations: 24.11 kB / 459.5 MB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001247/0.1559, allocations: 48.55 kB / 459.5 MB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.965e-05/0.156, allocations: 19.94 kB / 459.6 MB, free: 10.14 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002878/0.1563, allocations: 271.2 kB / 459.8 MB, free: 9.883 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1563, allocations: 0 / 459.8 MB, free: 9.883 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007479/0.1571, allocations: 267.7 kB / 460.1 MB, free: 9.621 MB / 330.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 (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.0001892/0.1572, allocations: 127.2 kB / 460.2 MB, free: 9.484 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001356/0.1586, allocations: 0.675 MB / 460.9 MB, free: 8.809 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1586, allocations: 0 / 460.9 MB, free: 8.809 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007164/0.1593, allocations: 343.8 kB / 461.2 MB, free: 8.473 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005239/0.1599, allocations: 107.9 kB / 461.3 MB, free: 8.371 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004357/0.1643, allocations: 2.674 MB / 464 MB, free: 5.629 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000451/0.1647, allocations: 0.8873 MB / 464.9 MB, free: 4.711 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005227/0.1652, allocations: 144.3 kB / 465 MB, free: 4.566 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000276/0.1655, allocations: 63.41 kB / 465.1 MB, free: 4.504 MB / 330.7 MB Notification: Performance of SimCode: time 2.2e-07/0.1655, allocations: 0 / 465.1 MB, free: 4.504 MB / 330.7 MB Notification: Performance of Templates: time 0.01927/0.1848, allocations: 13.87 MB / 479 MB, free: 6.633 MB / 346.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)