Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.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.Cascade_with_locks,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_with_locks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Cascade_with_locks,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_with_locks",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.1001/0.1001, allocations: 21.62 MB / 36.57 MB, free: 1.043 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.001098/0.001098, allocations: 183.1 kB / 42.83 MB, free: 3.793 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.329/1.329, allocations: 223.2 MB / 272.1 MB, free: 1.789 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.0008859/0.0008859, allocations: 100.9 kB / 328.7 MB, free: 12.16 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003896/0.0003897, allocations: 8 kB / 397.1 MB, free: 46.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08743/0.08785, allocations: 55.82 MB / 452.9 MB, free: 6.625 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2958/0.3837, allocations: 79.21 MB / 0.5197 GB, free: 12.8 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001857/0.384, allocations: 72.77 kB / 0.5197 GB, free: 12.8 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:52:3-52:25:writable] Warning: Connecting two signal sources while connecting iNoInc to noInc. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:53:3-53:25:writable] Warning: Connecting two signal sources while connecting iNoDec to noDec. Notification: Performance of FrontEnd - DAE generated: time 0.006874/0.3908, allocations: 2.765 MB / 0.5224 GB, free: 12.32 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.512e-06/0.3909, allocations: 0 / 0.5224 GB, free: 12.32 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.393e-05/0.3909, allocations: 11.53 kB / 0.5225 GB, free: 12.32 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0005441/0.3914, allocations: 491.5 kB / 0.5229 GB, free: 11.91 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.076e-05/0.3915, allocations: 7.688 kB / 0.5229 GB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.421e-05/0.3915, allocations: 56.98 kB / 0.523 GB, free: 11.87 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.914e-05/0.3916, allocations: 23.25 kB / 0.523 GB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001959/0.3918, allocations: 247.1 kB / 0.5232 GB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.703e-05/0.3918, allocations: 15.75 kB / 0.5233 GB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.236e-05/0.3918, allocations: 25.94 kB / 0.5233 GB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003278/0.3922, allocations: 236.1 kB / 0.5235 GB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.3922, allocations: 7.891 kB / 0.5235 GB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.863e-05/0.3922, allocations: 7.094 kB / 0.5235 GB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.3922, allocations: 3.844 kB / 0.5235 GB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002779/0.3925, allocations: 161.9 kB / 0.5237 GB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00137/0.3939, allocations: 1.045 MB / 0.5247 GB, free: 10.9 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000234/0.3941, allocations: 150.1 kB / 0.5248 GB, free: 10.87 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.335e-05/0.3942, allocations: 4.094 kB / 0.5248 GB, free: 10.87 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.564e-05/0.3942, allocations: 30.75 kB / 0.5249 GB, free: 10.83 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.342e-06/0.3942, allocations: 0 / 0.5249 GB, free: 10.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004487/0.3946, allocations: 246.8 kB / 0.5251 GB, free: 10.78 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.919e-05/0.3947, allocations: 51.41 kB / 0.5252 GB, free: 10.72 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001126/0.3948, allocations: 194.4 kB / 0.5253 GB, free: 10.62 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.613e-05/0.3948, allocations: 29.55 kB / 0.5254 GB, free: 10.59 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.904e-05/0.3949, allocations: 159.8 kB / 0.5255 GB, free: 10.47 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.82e-05/0.3949, allocations: 82.52 kB / 0.5256 GB, free: 10.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.045e-05/0.3949, allocations: 3.062 kB / 0.5256 GB, free: 10.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.486e-05/0.395, allocations: 332.1 kB / 0.5259 GB, free: 10.11 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/0.3951, allocations: 73.81 kB / 0.526 GB, free: 10.11 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/0.3953, allocations: 166.6 kB / 0.5262 GB, free: 10 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001579/0.3954, allocations: 96.77 kB / 0.5262 GB, free: 9.988 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.3955, allocations: 3.844 kB / 0.5262 GB, free: 9.988 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004052/0.3959, allocations: 303.2 kB / 0.5265 GB, free: 9.918 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.3959, allocations: 10.19 kB / 0.5265 GB, free: 9.918 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.3959, allocations: 3.719 kB / 0.5265 GB, free: 9.918 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.3959, allocations: 3.719 kB / 0.5266 GB, free: 9.918 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003103/0.3962, allocations: 91.08 kB / 0.5266 GB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.3963, allocations: 9.984 kB / 0.5266 GB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001604/0.3964, allocations: 32.5 kB / 0.5267 GB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.706e-05/0.3964, allocations: 11 kB / 0.5267 GB, free: 9.895 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: PI_I.xfb:VARIABLE(fixed = true ) type: Real PI_E.xfb:VARIABLE(fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 8 (PI_E.HIsat,PI_E.LOsat,PI_E.noInc,PI_E.noDec,PI_I.iNoDec,PI_I.iNoInc,PI_I.iTS,PI_E.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001478/0.3966, allocations: 148.2 kB / 0.5268 GB, free: 9.773 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.818e-05/0.3966, allocations: 23.36 kB / 0.5269 GB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003898/0.397, allocations: 227.8 kB / 0.5271 GB, free: 9.707 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.3971, allocations: 7.781 kB / 0.5271 GB, free: 9.703 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.3971, allocations: 0 / 0.5271 GB, free: 9.703 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.3971, allocations: 0.75 kB / 0.5271 GB, free: 9.703 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003648/0.3974, allocations: 311.8 kB / 0.5274 GB, free: 9.508 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3975, allocations: 0 / 0.5274 GB, free: 9.508 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003221/0.3978, allocations: 59.97 kB / 0.5274 GB, free: 9.504 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.3978, allocations: 7.953 kB / 0.5274 GB, free: 9.496 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.3978, allocations: 8.406 kB / 0.5274 GB, free: 9.496 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3978, allocations: 0 / 0.5274 GB, free: 9.496 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.3978, allocations: 0 / 0.5274 GB, free: 9.496 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004829/0.3983, allocations: 373.4 kB / 0.5278 GB, free: 9.344 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.679e-05/0.3984, allocations: 101.1 kB / 0.5279 GB, free: 9.234 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.163e-05/0.3984, allocations: 7.391 kB / 0.5279 GB, free: 9.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001617/0.3986, allocations: 25.27 kB / 0.5279 GB, free: 9.223 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.977e-05/0.3986, allocations: 26.67 kB / 0.528 GB, free: 9.219 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.192e-05/0.3987, allocations: 9.516 kB / 0.528 GB, free: 9.219 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.1e-05/0.3987, allocations: 139.2 kB / 0.5281 GB, free: 9.141 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3987, allocations: 0 / 0.5281 GB, free: 9.141 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002655/0.399, allocations: 47.31 kB / 0.5281 GB, free: 9.137 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (P_I.y,P_E.y,PI_E.xfb,PI_E.xBias,PI_E.u,PI_E.csfil,PI_I.xfb,PI_I.xBias,PI_I.u,PI_I.csfil) * Number of discrete variables: 4 (PI_E.HIsat,PI_E.LOsat,PI_E.noInc,PI_E.noDec) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 23 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005667/0.3996, allocations: 0.9175 MB / 0.529 GB, free: 8.453 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000323/0.3999, allocations: 208.1 kB / 0.5292 GB, free: 8.438 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.3999, allocations: 4 kB / 0.5292 GB, free: 8.434 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001373/0.4001, allocations: 91.52 kB / 0.5293 GB, free: 8.43 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002069/0.4003, allocations: 26.47 kB / 0.5294 GB, free: 8.426 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001898/0.4022, allocations: 3.321 MB / 0.5326 GB, free: 5.898 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001527/0.4024, allocations: 0.7519 MB / 0.5333 GB, free: 5.203 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001181/0.4025, allocations: 32.03 kB / 0.5334 GB, free: 5.195 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.833e-05/0.4026, allocations: 76.45 kB / 0.5334 GB, free: 5.18 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4026, allocations: 0 / 0.5334 GB, free: 5.18 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01342/0.416, allocations: 4.056 MB / 0.5374 GB, free: 3.348 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001292/0.4162, allocations: 183.3 kB / 0.5376 GB, free: 3.102 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.822/2.238, allocations: 0 / 0.5376 GB, free: 3.102 MB / 362.7 MB (rm -f AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Cascade_with_locks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Cascade_with_locks.fmu > AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe 2>&1)