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.1273/0.1273, allocations: 21.46 MB / 36.43 MB, free: 1.172 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.0009899/0.0009899, allocations: 182.7 kB / 42.65 MB, free: 3.992 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.513/1.513, allocations: 205.4 MB / 254.1 MB, free: 15.23 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.0007684/0.0007685, allocations: 93.36 kB / 307.8 MB, free: 11.07 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002957/0.0002956, allocations: 8.562 kB / 373.3 MB, free: 59.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08306/0.08337, allocations: 52.96 MB / 426.2 MB, free: 13.01 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Hydraulic_circuit): time 0.00241/0.08582, allocations: 3.053 MB / 429.3 MB, free: 9.938 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001235/0.08707, allocations: 1.029 MB / 430.3 MB, free: 8.898 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001633/0.08725, allocations: 4 kB / 430.3 MB, free: 8.895 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001418/0.0874, allocations: 67.41 kB / 430.4 MB, free: 8.828 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002893/0.08769, allocations: 234.6 kB / 430.6 MB, free: 8.598 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003425/0.08804, allocations: 127.8 kB / 430.7 MB, free: 8.473 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006706/0.08873, allocations: 1.162 MB / 431.9 MB, free: 7.309 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005357/0.08927, allocations: 0.5607 MB / 432.5 MB, free: 6.742 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002908/0.08957, allocations: 343 kB / 432.8 MB, free: 6.406 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004376/0.09002, allocations: 494.5 kB / 433.3 MB, free: 5.922 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.047e-05/0.09012, allocations: 52 kB / 433.3 MB, free: 5.871 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001731/0.0903, allocations: 83.97 kB / 433.4 MB, free: 5.789 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001538/0.09046, allocations: 271.2 kB / 433.7 MB, free: 5.523 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001223/0.09059, allocations: 177.3 kB / 433.8 MB, free: 5.344 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006919/0.09129, allocations: 1.048 MB / 434.9 MB, free: 4.293 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.706e-06/0.09131, allocations: 4 kB / 434.9 MB, free: 4.289 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.447e-06/0.09132, allocations: 0 / 434.9 MB, free: 4.289 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.543e-05/0.09134, allocations: 4 kB / 434.9 MB, free: 4.285 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.002353/0.0937, allocations: 1.122 MB / 436 MB, free: 3.113 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.09376, allocations: 8.031 kB / 436 MB, free: 3.105 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001606/0.09393, allocations: 79.06 kB / 436.1 MB, free: 3.027 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006011/0.09454, allocations: 0.5214 MB / 436.6 MB, free: 2.465 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.165e-05/0.09458, allocations: 45.31 kB / 436.7 MB, free: 2.422 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001039/0.09469, allocations: 71.89 kB / 436.7 MB, free: 2.352 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001365/0.09606, allocations: 0.8185 MB / 437.6 MB, free: 1.523 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.09609, allocations: 4 kB / 437.6 MB, free: 1.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.206e-05/0.09617, allocations: 27.98 kB / 437.6 MB, free: 1.492 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.357e-05/0.09619, allocations: 16 kB / 437.6 MB, free: 1.477 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00124/0.09744, allocations: 0.7586 MB / 438.4 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004322/0.1018, allocations: 3.214 MB / 441.6 MB, free: 13.27 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002399/0.1042, allocations: 1.001 MB / 442.6 MB, free: 12.25 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007291/0.1049, allocations: 442.3 kB / 443 MB, free: 11.82 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001668/0.1051, allocations: 101.6 kB / 443.1 MB, free: 11.7 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.1052, allocations: 35.12 kB / 443.1 MB, free: 11.66 MB / 314.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002827/0.1054, allocations: 55.45 kB / 443.2 MB, free: 11.61 MB / 314.7 MB Notification: Performance of pre-optimization done (n=60): time 2.545e-06/0.1055, allocations: 0 / 443.2 MB, free: 11.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=60): time 0.00498/0.1104, allocations: 2.12 MB / 445.3 MB, free: 9.348 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.452e-05/0.1105, allocations: 63.91 kB / 445.4 MB, free: 9.273 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004514/0.111, allocations: 405.7 kB / 445.8 MB, free: 8.867 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.677e-05/0.111, allocations: 37.7 kB / 445.8 MB, free: 8.824 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001834/0.1112, allocations: 300.3 kB / 446.1 MB, free: 8.527 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00019/0.1114, allocations: 240.6 kB / 446.3 MB, free: 8.289 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.013e-05/0.1115, allocations: 16 kB / 446.4 MB, free: 8.273 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.1116, allocations: 370.7 kB / 446.7 MB, free: 7.902 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007861/0.1124, allocations: 449.8 kB / 447.2 MB, free: 7.465 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008375/0.1133, allocations: 0.5242 MB / 447.7 MB, free: 6.922 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008833/0.1141, allocations: 0.5223 MB / 448.2 MB, free: 6.398 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.1142, allocations: 0 / 448.2 MB, free: 6.398 MB / 314.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00334/0.1175, allocations: 1.408 MB / 449.6 MB, free: 4.969 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.1175, allocations: 6.656 kB / 449.6 MB, free: 4.965 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.1176, allocations: 3.953 kB / 449.6 MB, free: 4.961 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00245/0.12, allocations: 376.8 kB / 450 MB, free: 4.574 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/0.1211, allocations: 235.7 kB / 450.2 MB, free: 4.344 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005316/0.1264, allocations: 7.554 MB / 457.8 MB, free: 12.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007181/0.1271, allocations: 68.03 kB / 457.8 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.433e-05/0.1272, allocations: 27.98 kB / 457.9 MB, free: 12 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.000367/0.1276, allocations: 249.5 kB / 458.1 MB, free: 11.74 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.1277, allocations: 51.44 kB / 458.2 MB, free: 11.69 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003198/0.1309, allocations: 1.295 MB / 459.5 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.1309, allocations: 8 kB / 459.5 MB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.131, allocations: 4 kB / 459.5 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.131, allocations: 3.984 kB / 459.5 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00108/0.1321, allocations: 0.9113 MB / 460.4 MB, free: 9.398 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.1321, allocations: 0 / 460.4 MB, free: 9.398 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00114/0.1332, allocations: 215.7 kB / 460.6 MB, free: 9.188 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002281/0.1355, allocations: 372.8 kB / 461 MB, free: 8.805 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.316e-05/0.1356, allocations: 35.98 kB / 461 MB, free: 8.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005118/0.1407, allocations: 7.546 MB / 468.5 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.1408, allocations: 0 / 468.5 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004109/0.1449, allocations: 1.718 MB / 470.3 MB, free: 14.78 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002016/0.1451, allocations: 136.4 kB / 470.4 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001322/0.1453, allocations: 31.98 kB / 470.4 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005539/0.1458, allocations: 55.78 kB / 470.5 MB, free: 14.54 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001521/0.146, allocations: 64.41 kB / 470.5 MB, free: 14.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.177e-05/0.146, allocations: 20 kB / 470.6 MB, free: 14.46 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003314/0.1464, allocations: 283.2 kB / 470.8 MB, free: 14.18 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.1464, allocations: 0 / 470.8 MB, free: 14.18 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009412/0.1473, allocations: 267.5 kB / 471.1 MB, free: 13.92 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.000248/0.1476, allocations: 141.3 kB / 471.2 MB, free: 13.77 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002487/0.1501, allocations: 1.569 MB / 472.8 MB, free: 12.14 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.1501, allocations: 4 kB / 472.8 MB, free: 12.13 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001462/0.1516, allocations: 1.048 MB / 473.9 MB, free: 11.02 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007737/0.1524, allocations: 165.4 kB / 474 MB, free: 10.86 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005593/0.158, allocations: 3.442 MB / 477.5 MB, free: 7.387 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006427/0.1587, allocations: 0.9774 MB / 478.4 MB, free: 6.383 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000627/0.1593, allocations: 188.7 kB / 478.6 MB, free: 6.195 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002096/0.1595, allocations: 55.42 kB / 478.7 MB, free: 6.141 MB / 346.7 MB Notification: Performance of SimCode: time 8.02e-07/0.1595, allocations: 0 / 478.7 MB, free: 6.141 MB / 346.7 MB Notification: Performance of Templates: time 0.01791/0.1774, allocations: 11.25 MB / 489.9 MB, free: 10.88 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)