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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Hydraulic_circuit,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Hydraulic_circuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Hydraulic_circuit,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Hydraulic_circuit",fmuType="me",version="2.0",platforms={"static"}) [/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.1036/0.1036, allocations: 21.62 MB / 36.56 MB, free: 1.062 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 183.1 kB / 42.83 MB, free: 3.785 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 223.2 MB / 272.1 MB, free: 1.762 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008579/0.000858, allocations: 106.7 kB / 328.7 MB, free: 12.08 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003091/0.000309, allocations: 16 kB / 397.1 MB, free: 46.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08932/0.08965, allocations: 55.82 MB / 452.9 MB, free: 6.57 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3572/0.4469, allocations: 84.3 MB / 0.5247 GB, free: 12.92 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000236/0.4472, allocations: 77.81 kB / 0.5247 GB, free: 12.92 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03261/0.4798, allocations: 12.56 MB / 0.537 GB, free: 8.227 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.4799, allocations: 0 / 0.537 GB, free: 8.227 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.169e-05/0.48, allocations: 11.38 kB / 0.537 GB, free: 8.227 MB / 362.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.003128/0.4831, allocations: 1.094 MB / 0.5381 GB, free: 7.5 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.783e-05/0.4832, allocations: 11.31 kB / 0.5381 GB, free: 7.496 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000359/0.4835, allocations: 104.1 kB / 0.5382 GB, free: 7.441 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002945/0.4838, allocations: 85.16 kB / 0.5383 GB, free: 7.402 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00118/0.485, allocations: 0.5589 MB / 0.5388 GB, free: 7.062 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.795e-05/0.4851, allocations: 43.53 kB / 0.5389 GB, free: 7.059 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001728/0.4853, allocations: 76.73 kB / 0.5389 GB, free: 7.047 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001762/0.487, allocations: 0.9338 MB / 0.5398 GB, free: 6.766 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.979e-05/0.4871, allocations: 7.75 kB / 0.5398 GB, free: 6.762 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.232e-05/0.4872, allocations: 19.84 kB / 0.5399 GB, free: 6.762 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.113e-05/0.4872, allocations: 19.34 kB / 0.5399 GB, free: 6.758 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001476/0.4887, allocations: 0.7756 MB / 0.5406 GB, free: 6.641 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004865/0.4936, allocations: 3.263 MB / 0.5438 GB, free: 4.738 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002841/0.4964, allocations: 1.04 MB / 0.5448 GB, free: 4.547 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.068e-05/0.4965, allocations: 15.28 kB / 0.5449 GB, free: 4.543 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.281e-05/0.4966, allocations: 34.94 kB / 0.5449 GB, free: 4.504 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004073/0.497, allocations: 60.48 kB / 0.5449 GB, free: 4.477 MB / 362.7 MB Notification: Performance of pre-optimization done (n=60): time 3.957e-06/0.497, allocations: 0 / 0.5449 GB, free: 4.477 MB / 362.7 MB Notification: Performance of matching and sorting (n=60): time 0.003962/0.501, allocations: 1.947 MB / 0.5468 GB, free: 3.645 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.3e-05/0.501, allocations: 63.61 kB / 0.5469 GB, free: 3.578 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004459/0.5015, allocations: 374.4 kB / 0.5473 GB, free: 3.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.278e-05/0.5015, allocations: 32.52 kB / 0.5473 GB, free: 3.398 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001495/0.5017, allocations: 298.7 kB / 0.5476 GB, free: 3.207 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001728/0.5019, allocations: 244.4 kB / 0.5478 GB, free: 3.031 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.477e-05/0.5019, allocations: 17.5 kB / 0.5478 GB, free: 3.027 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.674e-05/0.502, allocations: 365.8 kB / 0.5482 GB, free: 2.699 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007513/0.5028, allocations: 461.7 kB / 0.5486 GB, free: 2.637 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007377/0.5035, allocations: 0.5321 MB / 0.5491 GB, free: 2.508 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007862/0.5043, allocations: 0.5369 MB / 0.5497 GB, free: 2.445 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.5044, allocations: 0 / 0.5497 GB, free: 2.445 MB / 362.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.002816/0.5072, allocations: 1.41 MB / 0.551 GB, free: 1.676 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000128/0.5073, allocations: 0.6217 MB / 0.5516 GB, free: 1.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.5073, allocations: 4 kB / 0.5517 GB, free: 1.016 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001548/0.5089, allocations: 334.4 kB / 0.552 GB, free: 0.7266 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/0.51, allocations: 239 kB / 0.5522 GB, free: 0.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006666/0.5167, allocations: 8.025 MB / 0.56 GB, free: 8.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008407/0.5175, allocations: 62.44 kB / 0.5601 GB, free: 8.359 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001295/0.5177, allocations: 30.73 kB / 0.5601 GB, free: 8.336 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.5177, allocations: 5.562 kB / 0.5601 GB, free: 8.332 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003104/0.5208, allocations: 1.324 MB / 0.5614 GB, free: 7.422 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.5208, allocations: 0 / 0.5614 GB, free: 7.422 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001411/0.5223, allocations: 328.6 kB / 0.5617 GB, free: 7.141 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00116/0.5234, allocations: 241.9 kB / 0.562 GB, free: 6.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006368/0.5298, allocations: 8.005 MB / 0.5698 GB, free: 14.83 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000876/0.5307, allocations: 59.12 kB / 0.5698 GB, free: 14.78 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001154/0.5308, allocations: 27.3 kB / 0.5699 GB, free: 14.76 MB / 394.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 (84): * Single equations (assignments): 78 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0005458/0.5314, allocations: 329.3 kB / 0.5702 GB, free: 14.5 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001609/0.5316, allocations: 55.34 kB / 0.5702 GB, free: 14.44 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002346/0.5339, allocations: 1.163 MB / 0.5714 GB, free: 13.65 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.287e-06/0.5339, allocations: 4 kB / 0.5714 GB, free: 13.64 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.315e-06/0.534, allocations: 4 kB / 0.5714 GB, free: 13.64 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.534, allocations: 7.938 kB / 0.5714 GB, free: 13.63 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001299/0.5353, allocations: 0.9212 MB / 0.5723 GB, free: 12.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/0.5353, allocations: 11.92 kB / 0.5723 GB, free: 12.95 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001858/0.5372, allocations: 287.4 kB / 0.5726 GB, free: 12.67 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005277/0.5377, allocations: 166.5 kB / 0.5727 GB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001042/0.5378, allocations: 39.22 kB / 0.5728 GB, free: 12.5 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005128/0.543, allocations: 7.557 MB / 0.5801 GB, free: 4.758 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.543, allocations: 0 / 0.5801 GB, free: 4.758 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003158/0.5462, allocations: 1.592 MB / 0.5817 GB, free: 3.215 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002024/0.5464, allocations: 140.4 kB / 0.5818 GB, free: 3.059 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001476/0.5465, allocations: 35.98 kB / 0.5819 GB, free: 3.023 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006516/0.5472, allocations: 47.95 kB / 0.5819 GB, free: 2.977 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001701/0.5474, allocations: 56.47 kB / 0.582 GB, free: 2.918 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.778e-05/0.5474, allocations: 23.98 kB / 0.582 GB, free: 2.895 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003686/0.5478, allocations: 291.2 kB / 0.5823 GB, free: 2.609 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5478, allocations: 0 / 0.5823 GB, free: 2.609 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001408/0.5492, allocations: 459 kB / 0.5827 GB, free: 2.16 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 22 (Vessel.lfrac,tube.fluidStream.w,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 (64): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003397/0.5527, allocations: 2.181 MB / 0.5848 GB, free: 15.95 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004606/0.5573, allocations: 2.815 MB / 0.5876 GB, free: 13 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.5573, allocations: 0 / 0.5876 GB, free: 13 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001712/0.559, allocations: 1.083 MB / 0.5886 GB, free: 11.86 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008304/0.5599, allocations: 145.4 kB / 0.5888 GB, free: 11.71 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007816/0.5677, allocations: 4.996 MB / 0.5937 GB, free: 6.641 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000805/0.5686, allocations: 0.9978 MB / 0.5946 GB, free: 5.617 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001033/0.5696, allocations: 316.5 kB / 0.5949 GB, free: 5.305 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005017/0.5702, allocations: 243.3 kB / 0.5952 GB, free: 5.066 MB / 410.7 MB Notification: Performance of SimCode: time 2.104e-06/0.5702, allocations: 0 / 0.5952 GB, free: 5.066 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03987/0.6101, allocations: 19.42 MB / 0.6141 GB, free: 1.938 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002854/0.6104, allocations: 216.9 kB / 0.6143 GB, free: 1.688 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.565/3.175, allocations: 7.656 kB / 0.6143 GB, free: 1.684 MB / 426.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Hydraulic_circuit_fmu --startTime=0 --stopTime=50 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Hydraulic_circuit.fmu > AES_AES.Coursework.ThermSys_component_models.Hydraulic_circuit.pipe 2>&1)