Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit.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_component_models.Hydraulic_circuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit") translateModel(AES.Coursework.ThermSys_component_models.Hydraulic_circuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit") [/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.1221/0.1221, allocations: 21.44 MB / 36.4 MB, free: 1.242 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.001073/0.001073, allocations: 186.4 kB / 42.62 MB, free: 3.965 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.646/1.646, allocations: 205.4 MB / 254.1 MB, free: 15.45 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.0008708/0.0008709, allocations: 94.78 kB / 307.8 MB, free: 11.34 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000449/0.0004493, allocations: 9.125 kB / 373.2 MB, free: 59.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1078, allocations: 52.96 MB / 426.2 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Hydraulic_circuit): time 0.00287/0.1107, allocations: 2.842 MB / 429 MB, free: 10.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002082/0.1128, allocations: 1.057 MB / 430.1 MB, free: 9.422 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000198/0.113, allocations: 11.94 kB / 430.1 MB, free: 9.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001714/0.1132, allocations: 75.45 kB / 430.2 MB, free: 9.336 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000292/0.1135, allocations: 183.5 kB / 430.3 MB, free: 9.156 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004573/0.114, allocations: 131.7 kB / 430.5 MB, free: 9.027 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005594/0.1145, allocations: 0.6368 MB / 431.1 MB, free: 8.391 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005851/0.1151, allocations: 0.5529 MB / 431.7 MB, free: 7.832 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003004/0.1154, allocations: 335.1 kB / 432 MB, free: 7.504 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004264/0.1159, allocations: 386.8 kB / 432.4 MB, free: 7.125 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.864e-05/0.116, allocations: 52 kB / 432.4 MB, free: 7.074 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001801/0.1162, allocations: 83.91 kB / 432.5 MB, free: 6.992 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001981/0.1164, allocations: 239.3 kB / 432.7 MB, free: 6.758 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001648/0.1166, allocations: 177.3 kB / 432.9 MB, free: 6.578 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008205/0.1174, allocations: 1.044 MB / 433.9 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.824e-06/0.1174, allocations: 4 kB / 433.9 MB, free: 5.527 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.1174, allocations: 4 kB / 434 MB, free: 5.523 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.98e-05/0.1174, allocations: 0 / 434 MB, free: 5.523 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002634/0.1201, allocations: 1.126 MB / 435.1 MB, free: 4.348 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.1201, allocations: 8.031 kB / 435.1 MB, free: 4.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001555/0.1203, allocations: 79.06 kB / 435.2 MB, free: 4.262 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006954/0.121, allocations: 0.5175 MB / 435.7 MB, free: 3.703 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.505e-05/0.1211, allocations: 49.31 kB / 435.7 MB, free: 3.656 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001122/0.1212, allocations: 71.89 kB / 435.8 MB, free: 3.586 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001354/0.1225, allocations: 0.8107 MB / 436.6 MB, free: 2.766 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.1226, allocations: 4 kB / 436.6 MB, free: 2.762 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.716e-05/0.1227, allocations: 32 kB / 436.6 MB, free: 2.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.394e-05/0.1227, allocations: 12 kB / 436.7 MB, free: 2.719 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/0.124, allocations: 0.7625 MB / 437.4 MB, free: 1.957 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004252/0.1282, allocations: 3.21 MB / 440.6 MB, free: 14.51 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002368/0.1306, allocations: 1.001 MB / 441.6 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001821/0.1308, allocations: 97.73 kB / 441.7 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.036e-05/0.1309, allocations: 47.02 kB / 441.8 MB, free: 13.33 MB / 314.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002536/0.1311, allocations: 55.5 kB / 441.8 MB, free: 13.27 MB / 314.7 MB Notification: Performance of pre-optimization done (n=60): time 3.937e-06/0.1311, allocations: 4 kB / 441.8 MB, free: 13.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=60): time 0.004924/0.1361, allocations: 2.112 MB / 443.9 MB, free: 11.02 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.021e-05/0.1361, allocations: 59.97 kB / 444 MB, free: 10.95 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004772/0.1366, allocations: 409.7 kB / 444.4 MB, free: 10.54 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.578e-05/0.1367, allocations: 37.7 kB / 444.4 MB, free: 10.5 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001879/0.1369, allocations: 292.3 kB / 444.7 MB, free: 10.21 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002004/0.1371, allocations: 232.6 kB / 445 MB, free: 9.98 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.498e-05/0.1371, allocations: 16 kB / 445 MB, free: 9.965 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001483/0.1373, allocations: 370.7 kB / 445.3 MB, free: 9.594 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007676/0.1381, allocations: 449.8 kB / 445.8 MB, free: 9.156 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008314/0.1389, allocations: 0.5319 MB / 446.3 MB, free: 8.605 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009124/0.1398, allocations: 0.5223 MB / 446.8 MB, free: 8.082 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.1399, allocations: 0 / 446.8 MB, free: 8.082 MB / 314.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003312/0.1432, allocations: 1.396 MB / 448.2 MB, free: 6.664 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.831e-05/0.1432, allocations: 8 kB / 448.2 MB, free: 6.656 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.218e-06/0.1432, allocations: 4 kB / 448.2 MB, free: 6.652 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002358/0.1456, allocations: 380.7 kB / 448.6 MB, free: 6.262 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009881/0.1466, allocations: 235.7 kB / 448.8 MB, free: 6.031 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005426/0.152, allocations: 7.613 MB / 456.4 MB, free: 13.72 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006529/0.1527, allocations: 75.92 kB / 456.5 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.898e-05/0.1528, allocations: 24 kB / 456.5 MB, free: 13.62 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (83): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004024/0.1532, allocations: 257.4 kB / 456.8 MB, free: 13.36 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001259/0.1533, allocations: 51.44 kB / 456.8 MB, free: 13.31 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003197/0.1565, allocations: 1.288 MB / 458.1 MB, free: 12 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.1566, allocations: 8 kB / 458.1 MB, free: 11.99 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1566, allocations: 4 kB / 458.1 MB, free: 11.98 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.1566, allocations: 3.984 kB / 458.1 MB, free: 11.98 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001072/0.1577, allocations: 0.9153 MB / 459.1 MB, free: 11.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.1577, allocations: 0 / 459.1 MB, free: 11.02 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001068/0.1587, allocations: 219.7 kB / 459.3 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00213/0.1609, allocations: 364.9 kB / 459.6 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.992e-05/0.161, allocations: 35.97 kB / 459.7 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005255/0.1662, allocations: 7.605 MB / 467.3 MB, free: 2.098 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.1663, allocations: 0 / 467.3 MB, free: 2.098 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003765/0.17, allocations: 1.722 MB / 469 MB, free: 344 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001808/0.1702, allocations: 132.4 kB / 469.1 MB, free: 192 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001273/0.1704, allocations: 31.98 kB / 469.2 MB, free: 160 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005163/0.1709, allocations: 55.89 kB / 469.2 MB, free: 104 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001607/0.1711, allocations: 60.41 kB / 469.3 MB, free: 44 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.124e-05/0.1711, allocations: 16 kB / 469.3 MB, free: 28 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003761/0.1715, allocations: 291.2 kB / 469.6 MB, free: 15.74 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1715, allocations: 0 / 469.6 MB, free: 15.74 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008847/0.1724, allocations: 259.4 kB / 469.8 MB, free: 15.48 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 21 (Vessel.lfrac,tube.fluidStream.T[1],tube.fluidStream.T[2],tube.fluidStream.T[3],tube.fluidStream.T[4],tube.fluidStream.T[5],tube.wall.wall.T[1,1],tube.wall.wall.T[1,2],tube.wall.wall.T[1,3],tube.wall.wall.T[2,1],tube.wall.wall.T[2,2],tube.wall.wall.T[2,3],tube.wall.wall.T[3,1],tube.wall.wall.T[3,2],tube.wall.wall.T[3,3],tube.wall.wall.T[4,1],tube.wall.wall.T[4,2],tube.wall.wall.T[4,3],tube.wall.wall.T[5,1],tube.wall.wall.T[5,2],tube.wall.wall.T[5,3]) * 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 (57): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002581/0.1727, allocations: 149.3 kB / 470 MB, free: 15.33 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002757/0.1754, allocations: 1.566 MB / 471.5 MB, free: 13.7 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.1755, allocations: 4.125 kB / 471.5 MB, free: 13.7 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001533/0.177, allocations: 1.051 MB / 472.6 MB, free: 12.59 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007004/0.1777, allocations: 157.4 kB / 472.7 MB, free: 12.43 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005639/0.1834, allocations: 3.43 MB / 476.2 MB, free: 8.973 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007685/0.1842, allocations: 0.9851 MB / 477.2 MB, free: 7.961 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0007097/0.1849, allocations: 192.7 kB / 477.3 MB, free: 7.77 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000222/0.1851, allocations: 51.42 kB / 477.4 MB, free: 7.719 MB / 346.7 MB Notification: Performance of SimCode: time 1.183e-06/0.1851, allocations: 0 / 477.4 MB, free: 7.719 MB / 346.7 MB Notification: Performance of Templates: time 0.01949/0.2046, allocations: 11.24 MB / 488.6 MB, free: 12.46 MB / 362.7 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit.sim & ./AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit.pipe 2>&1)