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/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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0055/0.0055, allocations: 105.5 kB / 15.73 MB, free: 5.984 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.001164/0.001164, allocations: 194.8 kB / 16.67 MB, free: 5.906 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.25/1.25, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08706/0.08706, allocations: 22.32 MB / 312.8 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 75.86 kB / 436.5 MB, free: 12.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0962/0.09746, allocations: 54.95 MB / 491.5 MB, free: 5.273 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.002904/0.1004, allocations: 1.873 MB / 493.4 MB, free: 3.383 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004693/0.1009, allocations: 191.4 kB / 493.5 MB, free: 3.195 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001146/0.101, allocations: 3.938 kB / 493.5 MB, free: 3.191 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001334/0.1012, allocations: 35.61 kB / 493.6 MB, free: 3.156 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.977e-05/0.1013, allocations: 23.78 kB / 493.6 MB, free: 3.133 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.0002418/0.1015, allocations: 87.83 kB / 493.7 MB, free: 3.047 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002805/0.1018, allocations: 240.8 kB / 493.9 MB, free: 2.812 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000153/0.102, allocations: 56.67 kB / 494 MB, free: 2.762 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001017/0.1021, allocations: 91.61 kB / 494.1 MB, free: 2.672 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001302/0.1022, allocations: 91.48 kB / 494.2 MB, free: 2.582 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.456e-05/0.1022, allocations: 20 kB / 494.2 MB, free: 2.562 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.763e-05/0.1023, allocations: 20 kB / 494.2 MB, free: 2.543 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.89e-05/0.1023, allocations: 51.83 kB / 494.2 MB, free: 2.492 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.481e-05/0.1024, allocations: 95.39 kB / 494.3 MB, free: 2.398 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002083/0.1026, allocations: 203.2 kB / 494.5 MB, free: 2.199 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1026, allocations: 0 / 494.5 MB, free: 2.199 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1027, allocations: 0 / 494.5 MB, free: 2.199 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.164e-06/0.1027, allocations: 4 kB / 494.5 MB, free: 2.195 MB / 366.1 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.000799/0.1035, allocations: 0.5031 MB / 495 MB, free: 1.641 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.041e-05/0.1035, allocations: 8.031 kB / 495.1 MB, free: 1.633 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.83e-05/0.1036, allocations: 54.73 kB / 495.1 MB, free: 1.57 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.824e-05/0.1037, allocations: 28.56 kB / 495.1 MB, free: 1.543 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002874/0.104, allocations: 240.6 kB / 495.4 MB, free: 1.266 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.341e-05/0.104, allocations: 16.81 kB / 495.4 MB, free: 1.25 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.476e-05/0.104, allocations: 32.3 kB / 495.4 MB, free: 1.219 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004125/0.1045, allocations: 236.8 kB / 495.6 MB, free: 0.9609 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.1045, allocations: 3.938 kB / 495.7 MB, free: 0.957 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.076e-05/0.1045, allocations: 4 kB / 495.7 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.1045, allocations: 15.94 kB / 495.7 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003216/0.1049, allocations: 157 kB / 495.8 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001515/0.1064, allocations: 1.022 MB / 496.8 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002826/0.1067, allocations: 158.5 kB / 497 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001384/0.1068, allocations: 79.45 kB / 497.1 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.528e-05/0.1069, allocations: 0 / 497.1 MB, free: 15.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.042e-05/0.1069, allocations: 38.56 kB / 497.1 MB, free: 15.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.152e-06/0.1069, allocations: 0 / 497.1 MB, free: 15.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.000516/0.1074, allocations: 237.6 kB / 497.3 MB, free: 15.17 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.127e-05/0.1075, allocations: 55.41 kB / 497.4 MB, free: 15.11 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001851/0.1076, allocations: 215.8 kB / 497.6 MB, free: 14.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.269e-05/0.1077, allocations: 33.7 kB / 497.6 MB, free: 14.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.924e-05/0.1078, allocations: 148.1 kB / 497.8 MB, free: 14.69 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.301e-05/0.1078, allocations: 74.91 kB / 497.9 MB, free: 14.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.985e-05/0.1079, allocations: 77.59 kB / 497.9 MB, free: 14.54 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.108, allocations: 330.8 kB / 498.3 MB, free: 14.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/0.1082, allocations: 75.92 kB / 498.3 MB, free: 14.13 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002061/0.1084, allocations: 170.9 kB / 498.5 MB, free: 13.92 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001313/0.1097, allocations: 481.2 kB / 499 MB, free: 13.41 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.1098, allocations: 4 kB / 499 MB, free: 13.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004848/0.1102, allocations: 305.1 kB / 499.3 MB, free: 13.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.1103, allocations: 11.98 kB / 499.3 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.1103, allocations: 4 kB / 499.3 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.1103, allocations: 4 kB / 499.3 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003056/0.1106, allocations: 79.84 kB / 499.4 MB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.387e-06/0.1106, allocations: 4 kB / 499.4 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001656/0.1108, allocations: 39.67 kB / 499.4 MB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.137e-05/0.1108, allocations: 20.31 kB / 499.4 MB, free: 12.95 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: P_I.y:VARIABLE(flow=false start = P_I.y_start fixed = true ) "Connector of Real output signal" type: Real P_E.y:VARIABLE(flow=false start = P_E.y_start fixed = true ) "Connector of Real output signal" 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_I.LOsat,PI_I.HIsat,PI_E.LOsat,PI_E.HIsat,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001714/0.111, allocations: 153.7 kB / 499.6 MB, free: 12.79 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.578e-05/0.1111, allocations: 27.66 kB / 499.6 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004237/0.1115, allocations: 217.4 kB / 499.8 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.367e-05/0.1115, allocations: 4 kB / 499.8 MB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1115, allocations: 7.984 kB / 499.8 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.1115, allocations: 0 / 499.8 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004378/0.112, allocations: 317.2 kB / 0.4884 GB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.112, allocations: 0 / 0.4884 GB, free: 12.16 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003313/0.1123, allocations: 67.89 kB / 0.4885 GB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.307e-06/0.1123, allocations: 0 / 0.4885 GB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.1124, allocations: 4 kB / 0.4885 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.548e-06/0.1124, allocations: 4 kB / 0.4885 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.1124, allocations: 0 / 0.4885 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005424/0.1129, allocations: 391.3 kB / 0.4889 GB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.643e-05/0.113, allocations: 96.84 kB / 0.489 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.086e-05/0.113, allocations: 8 kB / 0.489 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000158/0.1132, allocations: 11.98 kB / 0.489 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.145e-05/0.1133, allocations: 19.97 kB / 0.489 GB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.141e-05/0.1133, allocations: 8 kB / 0.489 GB, free: 11.53 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001003/0.1134, allocations: 149 kB / 0.4891 GB, free: 11.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1134, allocations: 0 / 0.4891 GB, free: 11.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002907/0.1137, allocations: 51.84 kB / 0.4892 GB, free: 11.33 MB / 382.1 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_I.HIsat,PI_I.LOsat) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007629/0.1145, allocations: 0.9223 MB / 0.4901 GB, free: 10.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00039/0.1149, allocations: 211.7 kB / 0.4903 GB, free: 10.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.1149, allocations: 0 / 0.4903 GB, free: 10.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001636/0.115, allocations: 87.89 kB / 0.4904 GB, free: 10.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003105/0.1154, allocations: 26.7 kB / 0.4904 GB, free: 10.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002821/0.1182, allocations: 2.652 MB / 0.493 GB, free: 7.273 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000248/0.1184, allocations: 0.7481 MB / 0.4937 GB, free: 6.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001037/0.1186, allocations: 34.28 kB / 0.4938 GB, free: 6.469 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/0.1187, allocations: 75.34 kB / 0.4938 GB, free: 6.395 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1187, allocations: 0 / 0.4938 GB, free: 6.395 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02045/0.1391, allocations: 4.754 MB / 0.4985 GB, free: 1.734 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.784/7.923, allocations: 10.78 kB / 0.4985 GB, free: 1.727 MB / 382.1 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/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)