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.1525/0.1525, allocations: 21.42 MB / 36.67 MB, free: 1.141 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.001306/0.001306, allocations: 173.2 kB / 42.84 MB, free: 3.859 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.711/1.711, allocations: 205 MB / 253.9 MB, free: 15.01 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.0007694/0.0007694, allocations: 103.7 kB / 307.2 MB, free: 11.46 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000428/0.0004285, allocations: 9.469 kB / 372.5 MB, free: 59.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1125, allocations: 52.52 MB / 425 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Hydraulic_circuit): time 0.004515/0.1171, allocations: 3.595 MB / 428.6 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001961/0.1191, allocations: 1.06 MB / 429.6 MB, free: 9.629 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004546/0.1196, allocations: 7.938 kB / 429.7 MB, free: 9.621 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002738/0.1198, allocations: 71.47 kB / 429.7 MB, free: 9.551 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005468/0.1204, allocations: 206.8 kB / 429.9 MB, free: 9.348 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007622/0.1212, allocations: 179.8 kB / 430.1 MB, free: 9.172 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009918/0.1222, allocations: 1.33 MB / 431.4 MB, free: 7.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006201/0.1228, allocations: 0.6655 MB / 432.1 MB, free: 7.164 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003202/0.1231, allocations: 382.8 kB / 432.5 MB, free: 6.789 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004826/0.1236, allocations: 0.514 MB / 433 MB, free: 6.273 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001062/0.1237, allocations: 60 kB / 433 MB, free: 6.215 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002036/0.124, allocations: 87.97 kB / 433.1 MB, free: 6.129 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001953/0.1242, allocations: 291.1 kB / 433.4 MB, free: 5.844 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003306/0.1245, allocations: 438 kB / 433.8 MB, free: 5.414 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008386/0.1253, allocations: 1.261 MB / 435.1 MB, free: 4.148 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1254, allocations: 0 / 435.1 MB, free: 4.148 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1254, allocations: 0 / 435.1 MB, free: 4.148 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.357e-06/0.1254, allocations: 0 / 435.1 MB, free: 4.148 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.002186/0.1276, allocations: 1.235 MB / 436.3 MB, free: 2.863 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.1276, allocations: 8.031 kB / 436.3 MB, free: 2.855 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001391/0.1278, allocations: 80 kB / 436.4 MB, free: 2.777 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000591/0.1284, allocations: 0.5379 MB / 437 MB, free: 2.195 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.028e-05/0.1284, allocations: 41.69 kB / 437 MB, free: 2.156 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001153/0.1285, allocations: 76.28 kB / 437.1 MB, free: 2.082 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001166/0.1297, allocations: 0.8149 MB / 437.9 MB, free: 1.258 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.1297, allocations: 0 / 437.9 MB, free: 1.258 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.169e-05/0.1298, allocations: 24 kB / 437.9 MB, free: 1.234 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.1298, allocations: 16 kB / 437.9 MB, free: 1.219 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00115/0.131, allocations: 0.7391 MB / 438.7 MB, free: 492 kB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004421/0.1354, allocations: 3.199 MB / 441.9 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002308/0.1377, allocations: 1.001 MB / 442.9 MB, free: 12.04 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006914/0.1384, allocations: 430.3 kB / 443.3 MB, free: 11.61 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001744/0.1386, allocations: 89.66 kB / 443.4 MB, free: 11.51 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.098e-05/0.1387, allocations: 51.12 kB / 443.4 MB, free: 11.45 MB / 314.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002256/0.1389, allocations: 47.53 kB / 443.5 MB, free: 11.4 MB / 314.7 MB Notification: Performance of pre-optimization done (n=60): time 2.815e-06/0.1389, allocations: 0 / 443.5 MB, free: 11.4 MB / 314.7 MB Notification: Performance of matching and sorting (n=60): time 0.004819/0.1437, allocations: 2.081 MB / 445.6 MB, free: 9.184 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.429e-05/0.1438, allocations: 55.97 kB / 445.6 MB, free: 9.117 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000565/0.1444, allocations: 413.6 kB / 446 MB, free: 8.703 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.356e-05/0.1445, allocations: 41.7 kB / 446.1 MB, free: 8.656 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002297/0.1447, allocations: 292.4 kB / 446.3 MB, free: 8.367 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002094/0.1449, allocations: 236.6 kB / 446.6 MB, free: 8.133 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002335/0.1452, allocations: 130.7 kB / 446.7 MB, free: 7.996 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.1453, allocations: 374.8 kB / 447.1 MB, free: 7.621 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007614/0.1461, allocations: 437.8 kB / 447.5 MB, free: 7.195 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008722/0.147, allocations: 0.5202 MB / 448 MB, free: 6.656 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001659/0.1486, allocations: 0.9686 MB / 449 MB, free: 5.664 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.1487, allocations: 0 / 449 MB, free: 5.664 MB / 314.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003306/0.152, allocations: 1.4 MB / 450.4 MB, free: 4.242 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.152, allocations: 4 kB / 450.4 MB, free: 4.238 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.152, allocations: 4 kB / 450.4 MB, free: 4.234 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002323/0.1544, allocations: 376.8 kB / 450.8 MB, free: 3.848 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001016/0.1554, allocations: 235.6 kB / 451 MB, free: 3.617 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006148/0.1616, allocations: 7.546 MB / 458.5 MB, free: 11.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007581/0.1623, allocations: 60.03 kB / 458.6 MB, free: 11.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-05/0.1624, allocations: 28 kB / 458.6 MB, free: 11.29 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 (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0004426/0.1629, allocations: 261.5 kB / 458.9 MB, free: 11.02 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001067/0.163, allocations: 51.34 kB / 458.9 MB, free: 10.97 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00322/0.1662, allocations: 1.268 MB / 460.2 MB, free: 9.68 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.366e-06/0.1662, allocations: 8 kB / 460.2 MB, free: 9.672 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.137e-06/0.1662, allocations: 0 / 460.2 MB, free: 9.672 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.1662, allocations: 3.984 kB / 460.2 MB, free: 9.668 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/0.1674, allocations: 0.9191 MB / 461.1 MB, free: 8.699 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.1674, allocations: 0 / 461.1 MB, free: 8.699 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001063/0.1684, allocations: 211.8 kB / 461.3 MB, free: 8.492 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002165/0.1706, allocations: 368.8 kB / 461.7 MB, free: 8.113 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.07e-05/0.1707, allocations: 35.97 kB / 461.7 MB, free: 8.078 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00544/0.1762, allocations: 7.546 MB / 469.3 MB, free: 15.83 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1762, allocations: 0 / 469.3 MB, free: 15.83 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003806/0.18, allocations: 1.697 MB / 471 MB, free: 14.11 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000209/0.1802, allocations: 132.7 kB / 471.1 MB, free: 13.96 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001052/0.1803, allocations: 31.92 kB / 471.1 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004951/0.1808, allocations: 55.78 kB / 471.2 MB, free: 13.87 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/0.181, allocations: 56.48 kB / 471.2 MB, free: 13.82 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.4e-05/0.1811, allocations: 19.98 kB / 471.3 MB, free: 13.8 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003585/0.1814, allocations: 291.2 kB / 471.5 MB, free: 13.51 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1814, allocations: 0 / 471.5 MB, free: 13.51 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00078/0.1822, allocations: 259.5 kB / 471.8 MB, free: 13.26 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 (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002191/0.1825, allocations: 133.4 kB / 471.9 MB, free: 13.12 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002411/0.1849, allocations: 1.542 MB / 473.5 MB, free: 11.51 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.1849, allocations: 384 / 473.5 MB, free: 11.51 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001405/0.1863, allocations: 1.039 MB / 474.5 MB, free: 10.41 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000751/0.1871, allocations: 170 kB / 474.7 MB, free: 10.24 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005333/0.1924, allocations: 3.183 MB / 477.9 MB, free: 7.035 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006122/0.193, allocations: 0.9696 MB / 478.8 MB, free: 6.039 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005956/0.1937, allocations: 192.7 kB / 479 MB, free: 5.848 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001819/0.1938, allocations: 47.44 kB / 479.1 MB, free: 5.801 MB / 346.7 MB Notification: Performance of SimCode: time 1.342e-06/0.1939, allocations: 0 / 479.1 MB, free: 5.801 MB / 346.7 MB Notification: Performance of Templates: time 0.01941/0.2133, allocations: 11.59 MB / 490.6 MB, free: 10.2 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 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit.pipe 2>&1)