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.09057/0.09057, allocations: 21.61 MB / 37.41 MB, free: 0.7422 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: 184.5 kB / 43.63 MB, free: 3.559 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.271/1.271, allocations: 205.1 MB / 254.8 MB, free: 14.32 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.0009782/0.0009782, allocations: 114.2 kB / 307.5 MB, free: 11.37 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 52 kB / 372.3 MB, free: 59.51 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07787/0.07905, allocations: 51.98 MB / 424.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Hydraulic_circuit): time 0.003451/0.08255, allocations: 3.608 MB / 427.9 MB, free: 10.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001331/0.0839, allocations: 1.064 MB / 429 MB, free: 9.812 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00015/0.08407, allocations: 7.938 kB / 429 MB, free: 9.805 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001871/0.08427, allocations: 71.47 kB / 429.1 MB, free: 9.734 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002787/0.08456, allocations: 210.8 kB / 429.3 MB, free: 9.527 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003601/0.08493, allocations: 171.8 kB / 429.4 MB, free: 9.359 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006881/0.08562, allocations: 1.349 MB / 430.8 MB, free: 8.008 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005153/0.08615, allocations: 0.6578 MB / 431.4 MB, free: 7.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002573/0.08641, allocations: 382.8 kB / 431.8 MB, free: 6.965 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004194/0.08684, allocations: 0.5217 MB / 432.3 MB, free: 6.441 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.381e-05/0.08694, allocations: 60 kB / 432.4 MB, free: 6.383 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001774/0.08713, allocations: 95.95 kB / 432.5 MB, free: 6.289 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001582/0.08729, allocations: 283.2 kB / 432.8 MB, free: 6.012 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002767/0.08757, allocations: 434 kB / 433.2 MB, free: 5.586 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006818/0.08826, allocations: 1.301 MB / 434.5 MB, free: 4.281 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.08828, allocations: 7.938 kB / 434.5 MB, free: 4.273 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.81e-07/0.08828, allocations: 0 / 434.5 MB, free: 4.273 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.737e-06/0.0883, allocations: 0 / 434.5 MB, free: 4.273 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.002074/0.09038, allocations: 1.235 MB / 435.7 MB, free: 2.988 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.09042, allocations: 8.031 kB / 435.7 MB, free: 2.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001218/0.09055, allocations: 84 kB / 435.8 MB, free: 2.898 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005981/0.09115, allocations: 0.5303 MB / 436.3 MB, free: 2.324 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.416e-05/0.09118, allocations: 41.69 kB / 436.4 MB, free: 2.285 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001049/0.09129, allocations: 72.28 kB / 436.5 MB, free: 2.215 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00113/0.09243, allocations: 0.8305 MB / 437.3 MB, free: 1.375 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.09246, allocations: 3.938 kB / 437.3 MB, free: 1.371 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.964e-05/0.09252, allocations: 20 kB / 437.3 MB, free: 1.352 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.373e-05/0.09254, allocations: 16 kB / 437.3 MB, free: 1.336 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00115/0.09369, allocations: 0.7507 MB / 438.1 MB, free: 0.5859 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004032/0.09774, allocations: 3.21 MB / 441.3 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002258/0.1, allocations: 0.9971 MB / 442.3 MB, free: 12.13 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007181/0.1007, allocations: 434.3 kB / 442.7 MB, free: 11.71 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001567/0.1009, allocations: 89.66 kB / 442.8 MB, free: 11.6 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.325e-05/0.1009, allocations: 43.12 kB / 442.8 MB, free: 11.55 MB / 314.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002007/0.1011, allocations: 55.52 kB / 442.9 MB, free: 11.5 MB / 314.7 MB Notification: Performance of pre-optimization done (n=60): time 2.294e-06/0.1012, allocations: 0 / 442.9 MB, free: 11.5 MB / 314.7 MB Notification: Performance of matching and sorting (n=60): time 0.004852/0.106, allocations: 2.147 MB / 445 MB, free: 9.211 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.527e-05/0.1061, allocations: 59.95 kB / 445.1 MB, free: 9.141 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004091/0.1065, allocations: 414 kB / 445.5 MB, free: 8.727 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.471e-05/0.1065, allocations: 37.64 kB / 445.5 MB, free: 8.684 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001621/0.1067, allocations: 296.3 kB / 445.8 MB, free: 8.391 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001722/0.1069, allocations: 232.7 kB / 446.1 MB, free: 8.16 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000226/0.1071, allocations: 146.6 kB / 446.2 MB, free: 8.012 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.1072, allocations: 362.8 kB / 446.6 MB, free: 7.648 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007052/0.1079, allocations: 445.8 kB / 447 MB, free: 7.211 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007481/0.1087, allocations: 0.5241 MB / 447.5 MB, free: 6.668 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001428/0.1101, allocations: 0.9725 MB / 448.5 MB, free: 5.672 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.1102, allocations: 0 / 448.5 MB, free: 5.672 MB / 314.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003192/0.1134, allocations: 1.435 MB / 449.9 MB, free: 4.215 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.1134, allocations: 4 kB / 449.9 MB, free: 4.211 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.1134, allocations: 8 kB / 449.9 MB, free: 4.203 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002463/0.1159, allocations: 400.8 kB / 450.3 MB, free: 3.793 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001006/0.1169, allocations: 231.6 kB / 450.6 MB, free: 3.566 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0054/0.1223, allocations: 7.946 MB / 458.5 MB, free: 10.9 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006047/0.1229, allocations: 63.72 kB / 458.6 MB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.53e-05/0.123, allocations: 20.12 kB / 458.6 MB, free: 10.82 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.00033/0.1233, allocations: 261.7 kB / 458.8 MB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.866e-05/0.1234, allocations: 51.34 kB / 458.9 MB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003099/0.1265, allocations: 1.276 MB / 460.2 MB, free: 9.195 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.1266, allocations: 8 kB / 460.2 MB, free: 9.188 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.1266, allocations: 0 / 460.2 MB, free: 9.188 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.1266, allocations: 0 / 460.2 MB, free: 9.188 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009699/0.1276, allocations: 0.923 MB / 461.1 MB, free: 8.215 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.1276, allocations: 0 / 461.1 MB, free: 8.215 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001048/0.1286, allocations: 203.8 kB / 461.3 MB, free: 8.016 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002101/0.1307, allocations: 372.7 kB / 461.7 MB, free: 7.633 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.986e-05/0.1308, allocations: 35.98 kB / 461.7 MB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004559/0.1354, allocations: 7.518 MB / 469.2 MB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.1354, allocations: 0 / 469.2 MB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03154/0.167, allocations: 19.54 MB / 488.7 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001701/0.1672, allocations: 140.4 kB / 488.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001986/0.1674, allocations: 32.19 kB / 488.9 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005838/0.168, allocations: 51.78 kB / 489 MB, free: 10.58 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002425/0.1683, allocations: 56.47 kB / 489 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.936e-05/0.1683, allocations: 16 kB / 489 MB, free: 10.51 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003358/0.1687, allocations: 303.1 kB / 489.3 MB, free: 10.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1687, allocations: 0 / 489.3 MB, free: 10.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001306/0.17, allocations: 391.5 kB / 489.7 MB, free: 9.832 MB / 362.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 (58): * 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: 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.0003078/0.1703, allocations: 137.4 kB / 489.8 MB, free: 9.691 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00259/0.1729, allocations: 1.558 MB / 491.4 MB, free: 8.066 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.1729, allocations: 0 / 491.4 MB, free: 8.066 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001338/0.1743, allocations: 1.048 MB / 492.5 MB, free: 6.957 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006986/0.175, allocations: 165.4 kB / 492.6 MB, free: 6.797 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006491/0.1815, allocations: 4.445 MB / 497.1 MB, free: 2.23 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005382/0.182, allocations: 0.9975 MB / 498.1 MB, free: 1.207 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006467/0.1827, allocations: 212.6 kB / 498.3 MB, free: 0.9961 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002901/0.183, allocations: 51.44 kB / 498.3 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of SimCode: time 5.51e-07/0.183, allocations: 0 / 498.3 MB, free: 0.9453 MB / 362.7 MB Notification: Performance of Templates: time 0.1853/0.3683, allocations: 18.22 MB / 0.5044 GB, free: 80.08 MB / 378.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)