Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_ideal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_ideal",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 186.5 kB / 16.25 MB, free: 6.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.183/1.183, allocations: 222.9 MB / 239.9 MB, free: 4.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1785/0.1785, allocations: 22.35 MB / 312.4 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 59.91 kB / 380.4 MB, free: 10.83 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2089/0.2102, allocations: 54.94 MB / 435.3 MB, free: 39.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal): time 0.003562/0.2138, allocations: 4.586 MB / 439.9 MB, free: 36.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001259/0.2151, allocations: 1.278 MB / 441.2 MB, free: 35.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001878/0.2153, allocations: 16.41 kB / 441.2 MB, free: 35.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002272/0.2155, allocations: 132.1 kB / 441.4 MB, free: 35.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004437/0.216, allocations: 399.2 kB / 441.7 MB, free: 35.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004454/0.2164, allocations: 270.9 kB / 442 MB, free: 34.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001066/0.2175, allocations: 2.153 MB / 444.2 MB, free: 33.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009828/0.2185, allocations: 1.604 MB / 445.8 MB, free: 33.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004728/0.219, allocations: 0.8306 MB / 446.6 MB, free: 32.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007322/0.2197, allocations: 1.057 MB / 447.7 MB, free: 32.33 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001883/0.2199, allocations: 236 kB / 447.9 MB, free: 32.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002227/0.2202, allocations: 236.8 kB / 448.1 MB, free: 32.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003125/0.2205, allocations: 0.6986 MB / 448.8 MB, free: 32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005137/0.221, allocations: 0.9189 MB / 449.7 MB, free: 31.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001153/0.2221, allocations: 2.576 MB / 452.3 MB, free: 30.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2222, allocations: 4 kB / 452.3 MB, free: 30.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2222, allocations: 0 / 452.3 MB, free: 30.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.442e-05/0.2222, allocations: 3.156 kB / 452.3 MB, free: 30.52 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 300 * Number of variables: 300 Notification: Performance of Generate backend data structure: time 0.003266/0.2255, allocations: 2.013 MB / 454.3 MB, free: 29.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.2255, allocations: 9.062 kB / 454.3 MB, free: 29.47 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001752/0.2257, allocations: 185.4 kB / 454.5 MB, free: 29.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002168/0.2259, allocations: 144.7 kB / 454.7 MB, free: 29.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009248/0.2268, allocations: 0.8633 MB / 455.5 MB, free: 28.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.431e-05/0.2269, allocations: 116 kB / 455.6 MB, free: 28.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001934/0.2271, allocations: 136.1 kB / 455.8 MB, free: 28.58 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002186/0.2293, allocations: 1.594 MB / 457.4 MB, free: 27.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.475e-05/0.2293, allocations: 0 / 457.4 MB, free: 27.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001141/0.2295, allocations: 45.25 kB / 457.4 MB, free: 27.9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.839e-05/0.2295, allocations: 30.05 kB / 457.4 MB, free: 27.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001947/0.2314, allocations: 1.42 MB / 458.9 MB, free: 27.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007672/0.2391, allocations: 7.153 MB / 466 MB, free: 22.72 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004303/0.2434, allocations: 1.885 MB / 467.9 MB, free: 22.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009111/0.2444, allocations: 0.7219 MB / 468.6 MB, free: 21.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.603e-05/0.2444, allocations: 20.52 kB / 468.6 MB, free: 21.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.767e-05/0.2445, allocations: 48.36 kB / 468.7 MB, free: 21.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.385e-06/0.2445, allocations: 4 kB / 468.7 MB, free: 21.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=102): time 0.005753/0.2502, allocations: 3.93 MB / 472.6 MB, free: 19.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.258e-05/0.2503, allocations: 62.41 kB / 472.7 MB, free: 19.13 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006773/0.2509, allocations: 0.6884 MB / 473.4 MB, free: 18.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.027e-05/0.251, allocations: 42.17 kB / 473.4 MB, free: 18.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000209/0.2512, allocations: 0.5076 MB / 473.9 MB, free: 18.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002424/0.2515, allocations: 414.1 kB / 474.3 MB, free: 18.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003644/0.2519, allocations: 235.8 kB / 474.6 MB, free: 17.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.252, allocations: 410.3 kB / 475 MB, free: 17.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001085/0.2531, allocations: 0.8435 MB / 475.8 MB, free: 17.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001137/0.2542, allocations: 1.001 MB / 476.8 MB, free: 16.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01133/0.2656, allocations: 4.465 MB / 481.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.2656, allocations: 1.219 kB / 481.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003344/0.2689, allocations: 2.475 MB / 483.7 MB, free: 12.38 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.2689, allocations: 8 kB / 483.7 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.269, allocations: 4 kB / 483.8 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001406/0.2704, allocations: 0.5434 MB / 484.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001478/0.2719, allocations: 395.5 kB / 484.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0125/0.2844, allocations: 23.05 MB / 0.4958 GB, free: 2.184 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/0.2854, allocations: 158.7 kB / 0.496 GB, free: 2.027 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001061/0.2856, allocations: 47.98 kB / 0.496 GB, free: 1.98 MB / 366.1 MB Warning: Assuming fixed start value for the following 2 variables: CH.Ec:VARIABLE(flow=false fixed = true ) type: Real CH.Tfo:VARIABLE(min = 0.0 start = CH.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 15 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (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): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006732/0.2862, allocations: 421.3 kB / 0.4964 GB, free: 1.559 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001659/0.2864, allocations: 90.88 kB / 0.4965 GB, free: 1.469 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003206/0.2896, allocations: 1.979 MB / 0.4984 GB, free: 15.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.276e-06/0.2896, allocations: 12 kB / 0.4985 GB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.2896, allocations: 8 kB / 0.4985 GB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.2897, allocations: 3.984 kB / 0.4985 GB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004722/0.2944, allocations: 3.554 MB / 0.5019 GB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.2944, allocations: 0 / 0.5019 GB, free: 11.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001824/0.2962, allocations: 339.9 kB / 0.5023 GB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001141/0.2974, allocations: 476.5 kB / 0.5027 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001228/0.2975, allocations: 75.97 kB / 0.5028 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01259/0.3101, allocations: 22.16 MB / 0.5244 GB, free: 2.531 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3101, allocations: 0 / 0.5244 GB, free: 2.531 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003955/0.3141, allocations: 2.733 MB / 0.5271 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001958/0.3143, allocations: 195.7 kB / 0.5273 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000183/0.3145, allocations: 59.97 kB / 0.5273 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007206/0.3152, allocations: 75.77 kB / 0.5274 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000213/0.3154, allocations: 100.7 kB / 0.5275 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.135e-05/0.3155, allocations: 31.98 kB / 0.5275 GB, free: 15.24 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004972/0.316, allocations: 483 kB / 0.528 GB, free: 14.77 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.316, allocations: 0 / 0.528 GB, free: 14.77 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001241/0.3173, allocations: 0.4952 MB / 0.5285 GB, free: 14.28 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 42 (CH.Tfo,CH.Ec,pipeline.fluidStream.T[1],pipeline.fluidStream.T[2],pipeline.fluidStream.T[3],pipeline.fluidStream.T[4],pipeline.fluidStream.T[5],pipeline.wall.wall.T[1,1],pipeline.wall.wall.T[1,2],pipeline.wall.wall.T[1,3],pipeline.wall.wall.T[2,1],pipeline.wall.wall.T[2,2],pipeline.wall.wall.T[2,3],pipeline.wall.wall.T[3,1],pipeline.wall.wall.T[3,2],pipeline.wall.wall.T[3,3],pipeline.wall.wall.T[4,1],pipeline.wall.wall.T[4,2],pipeline.wall.wall.T[4,3],pipeline.wall.wall.T[5,1],pipeline.wall.wall.T[5,2],pipeline.wall.wall.T[5,3],delivery.fluidStream.T[1],delivery.fluidStream.T[2],delivery.fluidStream.T[3],delivery.fluidStream.T[4],delivery.fluidStream.T[5],delivery.wall.wall.T[1,1],delivery.wall.wall.T[1,2],delivery.wall.wall.T[1,3],delivery.wall.wall.T[2,1],delivery.wall.wall.T[2,2],delivery.wall.wall.T[2,3],delivery.wall.wall.T[3,1],delivery.wall.wall.T[3,2],delivery.wall.wall.T[3,3],delivery.wall.wall.T[4,1],delivery.wall.wall.T[4,2],delivery.wall.wall.T[4,3],delivery.wall.wall.T[5,1],delivery.wall.wall.T[5,2],delivery.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 (89): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 15 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (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): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004243/0.3215, allocations: 3.361 MB / 0.5318 GB, free: 10.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004539/0.3261, allocations: 3.972 MB / 0.5357 GB, free: 6.652 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.778e-06/0.3261, allocations: 12.06 kB / 0.5357 GB, free: 6.641 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002255/0.3284, allocations: 2.451 MB / 0.5381 GB, free: 3.996 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001024/0.3294, allocations: 325.1 kB / 0.5384 GB, free: 3.688 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02211/0.3515, allocations: 16.45 MB / 0.5544 GB, free: 2.723 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007992/0.3523, allocations: 1.264 MB / 0.5557 GB, free: 1.43 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000937/0.3533, allocations: 363.6 kB / 0.556 GB, free: 1.07 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006241/0.3539, allocations: 451.3 kB / 0.5564 GB, free: 0.6289 MB / 430.1 MB Notification: Performance of SimCode: time 8.91e-07/0.3539, allocations: 3.938 kB / 0.5565 GB, free: 0.625 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2036/0.5576, allocations: 33.97 MB / 0.5896 GB, free: 133.1 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001402/0.5577, allocations: 234.5 kB / 0.5898 GB, free: 132.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.356/2.914, allocations: 0.875 kB / 0.5898 GB, free: 132.8 MB / 462.1 MB (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_ideal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_Controlled_heater_case_003_ideal.fmu > AES_AES.Coursework.ThermSys_component_models.Controlled_heater_case_003_ideal.pipe 2>&1)