Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.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.Typical_control_structures.FF_compensation_with_delay,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.FF_compensation_with_delay,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay",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.09649/0.09649, allocations: 21.62 MB / 36.56 MB, free: 1.082 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.001107/0.001107, allocations: 186.4 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.344/1.344, allocations: 223.2 MB / 272.1 MB, free: 1.363 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.0008202/0.0008202, allocations: 95.33 kB / 328.7 MB, free: 11.74 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003582/0.0003582, allocations: 8 kB / 397.1 MB, free: 46.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09283/0.09322, allocations: 55.83 MB / 452.9 MB, free: 6.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2974/0.3906, allocations: 79.71 MB / 0.5202 GB, free: 13.26 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001853/0.3908, allocations: 71.67 kB / 0.5202 GB, free: 13.26 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01807/0.4089, allocations: 6.135 MB / 0.5262 GB, free: 12.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.409, allocations: 4 kB / 0.5262 GB, free: 12.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.16e-05/0.409, allocations: 15.81 kB / 0.5262 GB, free: 12.17 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: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.001607/0.4106, allocations: 0.7019 MB / 0.5269 GB, free: 11.61 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.4107, allocations: 7.531 kB / 0.5269 GB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.882e-05/0.4108, allocations: 47.41 kB / 0.527 GB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.169e-05/0.4109, allocations: 34.67 kB / 0.527 GB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001096/0.412, allocations: 453.5 kB / 0.5275 GB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.803e-05/0.412, allocations: 10.91 kB / 0.5275 GB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.062e-05/0.412, allocations: 14.72 kB / 0.5275 GB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003056/0.4123, allocations: 168 kB / 0.5276 GB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.4124, allocations: 3.984 kB / 0.5276 GB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.096e-05/0.4124, allocations: 16.8 kB / 0.5277 GB, free: 11.15 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.4124, allocations: 0 / 0.5277 GB, free: 11.15 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003474/0.4128, allocations: 192.4 kB / 0.5278 GB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00103/0.4138, allocations: 0.6466 MB / 0.5285 GB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007319/0.4145, allocations: 335.1 kB / 0.5288 GB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.957e-05/0.4146, allocations: 7.969 kB / 0.5288 GB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.669e-05/0.4146, allocations: 34.56 kB / 0.5288 GB, free: 10.58 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.693e-06/0.4146, allocations: 3.938 kB / 0.5288 GB, free: 10.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.001046/0.4157, allocations: 0.5029 MB / 0.5293 GB, free: 10.34 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.937e-05/0.4157, allocations: 55.91 kB / 0.5294 GB, free: 10.27 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009797/0.4167, allocations: 421.1 kB / 0.5298 GB, free: 10.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.262e-05/0.4167, allocations: 30.55 kB / 0.5298 GB, free: 10.06 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.028e-05/0.4168, allocations: 170.1 kB / 0.53 GB, free: 9.949 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.443e-05/0.4169, allocations: 69.77 kB / 0.53 GB, free: 9.898 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.163e-05/0.4169, allocations: 4.594 kB / 0.53 GB, free: 9.898 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.08e-05/0.417, allocations: 347.7 kB / 0.5304 GB, free: 9.57 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001419/0.4171, allocations: 86.94 kB / 0.5305 GB, free: 9.551 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001297/0.4173, allocations: 107 kB / 0.5306 GB, free: 9.516 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001504/0.4174, allocations: 98.61 kB / 0.5307 GB, free: 9.504 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.4174, allocations: 4 kB / 0.5307 GB, free: 9.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005013/0.4179, allocations: 344.2 kB / 0.531 GB, free: 9.387 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.418, allocations: 8.438 kB / 0.531 GB, free: 9.387 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.418, allocations: 3.938 kB / 0.531 GB, free: 9.383 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002251/0.4182, allocations: 50.31 kB / 0.531 GB, free: 9.363 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001629/0.4184, allocations: 34.12 kB / 0.5311 GB, free: 9.363 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001021/0.4194, allocations: 1.522 MB / 0.5326 GB, free: 8.012 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004403/0.4199, allocations: 74 kB / 0.5326 GB, free: 7.977 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.699e-05/0.4199, allocations: 7.562 kB / 0.5326 GB, free: 7.977 MB / 362.7 MB Warning: Assuming fixed start value for the following 5 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] K.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] H.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] P.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (23): * Single equations (assignments): 22 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001934/0.4201, allocations: 166 kB / 0.5328 GB, free: 7.844 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.18e-05/0.4201, allocations: 30.62 kB / 0.5328 GB, free: 7.828 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.341e-05/0.4202, allocations: 40.45 kB / 0.5329 GB, free: 7.816 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.4202, allocations: 3.812 kB / 0.5329 GB, free: 7.816 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.4202, allocations: 0 / 0.5329 GB, free: 7.816 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.4203, allocations: 0 / 0.5329 GB, free: 7.816 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003487/0.4206, allocations: 351.3 kB / 0.5332 GB, free: 7.559 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.4206, allocations: 3.469 kB / 0.5332 GB, free: 7.559 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002011/0.4208, allocations: 27.33 kB / 0.5332 GB, free: 7.551 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001438/0.421, allocations: 57.81 kB / 0.5333 GB, free: 7.527 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.25e-05/0.421, allocations: 3 kB / 0.5333 GB, free: 7.527 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008701/0.4219, allocations: 1.519 MB / 0.5348 GB, free: 6.18 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.4219, allocations: 0 / 0.5348 GB, free: 6.18 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006178/0.4225, allocations: 0.5028 MB / 0.5353 GB, free: 5.961 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.967e-05/0.4226, allocations: 112.2 kB / 0.5354 GB, free: 5.844 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.543e-05/0.4227, allocations: 15.41 kB / 0.5354 GB, free: 5.836 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004415/0.4231, allocations: 61.84 kB / 0.5354 GB, free: 5.812 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.077e-05/0.4232, allocations: 19.31 kB / 0.5355 GB, free: 5.805 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.309e-05/0.4232, allocations: 3.875 kB / 0.5355 GB, free: 5.805 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007715/0.424, allocations: 367.3 kB / 0.5358 GB, free: 5.637 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.11e-07/0.424, allocations: 0 / 0.5358 GB, free: 5.637 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003207/0.4243, allocations: 66.97 kB / 0.5359 GB, free: 5.625 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (P.x_scaled[1],H.x_scaled[1],M.x_scaled[1],K.x_scaled[1],C.x_scaled[1]) * 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 (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007993/0.4251, allocations: 1.055 MB / 0.5369 GB, free: 4.867 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005163/0.4256, allocations: 354.7 kB / 0.5373 GB, free: 4.707 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.4257, allocations: 0 / 0.5373 GB, free: 4.707 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002824/0.426, allocations: 242 kB / 0.5375 GB, free: 4.562 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002862/0.4262, allocations: 40.97 kB / 0.5375 GB, free: 4.555 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004295/0.4306, allocations: 2.471 MB / 0.5399 GB, free: 3.328 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001849/0.4308, allocations: 0.8065 MB / 0.5407 GB, free: 2.578 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001435/0.4309, allocations: 61.25 kB / 0.5408 GB, free: 2.555 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001234/0.431, allocations: 87.06 kB / 0.5409 GB, free: 2.539 MB / 362.7 MB Notification: Performance of SimCode: time 5.61e-07/0.4311, allocations: 0 / 0.5409 GB, free: 2.539 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01756/0.4486, allocations: 5.779 MB / 0.5465 GB, free: 15.88 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002242/0.4489, allocations: 209.5 kB / 0.5467 GB, free: 15.64 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.129/2.578, allocations: 0 / 0.5467 GB, free: 15.64 MB / 378.7 MB (rm -f AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay.fmu > AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe 2>&1)