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: translateModel(AES.Coursework.Typical_control_structures.Cascade_with_locks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Cascade_with_locks") translateModel(AES.Coursework.Typical_control_structures.Cascade_with_locks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Cascade_with_locks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.001073/0.001073, allocations: 191 kB / 17.29 MB, free: 5.516 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.338/1.338, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09097/0.09097, allocations: 22.33 MB / 313.5 MB, free: 8.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 61.09 kB / 382.2 MB, free: 41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09374/0.095, allocations: 54.96 MB / 437.2 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.003054/0.09809, allocations: 1.86 MB / 439.1 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004216/0.09853, allocations: 199.4 kB / 439.2 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.783e-05/0.09863, allocations: 3.938 kB / 439.3 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001241/0.09878, allocations: 31.61 kB / 439.3 MB, free: 10.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.124e-05/0.09884, allocations: 23.69 kB / 439.3 MB, free: 10.14 MB / 318.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.0002385/0.09909, allocations: 95.86 kB / 439.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002725/0.09937, allocations: 236.8 kB / 439.6 MB, free: 9.816 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001545/0.09954, allocations: 56.38 kB / 439.7 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.911e-05/0.09962, allocations: 79.7 kB / 439.8 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001279/0.09976, allocations: 99.47 kB / 439.9 MB, free: 9.586 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.28e-05/0.0998, allocations: 24 kB / 439.9 MB, free: 9.562 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.646e-05/0.09983, allocations: 20 kB / 439.9 MB, free: 9.543 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.569e-05/0.09988, allocations: 51.81 kB / 440 MB, free: 9.492 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.248e-05/0.09997, allocations: 91.41 kB / 440 MB, free: 9.402 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001932/0.1002, allocations: 199.1 kB / 440.2 MB, free: 9.207 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1002, allocations: 4 kB / 440.2 MB, free: 9.203 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1002, allocations: 0 / 440.2 MB, free: 9.203 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.36e-05/0.1002, allocations: 3.984 kB / 440.2 MB, free: 9.199 MB / 318.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.0007691/0.101, allocations: 0.5147 MB / 440.8 MB, free: 8.633 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.101, allocations: 8.031 kB / 440.8 MB, free: 8.625 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.047e-05/0.1011, allocations: 24.66 kB / 440.8 MB, free: 8.602 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002735/0.1014, allocations: 236.6 kB / 441 MB, free: 8.328 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.085e-05/0.1014, allocations: 16.81 kB / 441 MB, free: 8.312 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.782e-05/0.1015, allocations: 28.38 kB / 441.1 MB, free: 8.285 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004011/0.1019, allocations: 236.8 kB / 441.3 MB, free: 8.031 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.1019, allocations: 192 / 441.3 MB, free: 8.031 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.286e-05/0.1019, allocations: 11.94 kB / 441.3 MB, free: 8.02 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.341e-06/0.1019, allocations: 7.938 kB / 441.3 MB, free: 8.012 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000326/0.1022, allocations: 168.9 kB / 441.5 MB, free: 7.848 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001612/0.1039, allocations: 1.018 MB / 442.5 MB, free: 6.766 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003002/0.1042, allocations: 158.6 kB / 442.7 MB, free: 6.602 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001377/0.1043, allocations: 66.89 kB / 442.7 MB, free: 6.535 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.116e-05/0.1044, allocations: 4 kB / 442.7 MB, free: 6.531 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.191e-05/0.1044, allocations: 38.56 kB / 442.8 MB, free: 6.484 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.705e-06/0.1044, allocations: 0 / 442.8 MB, free: 6.484 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005342/0.1049, allocations: 249.5 kB / 443 MB, free: 6.234 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.809e-05/0.105, allocations: 51.41 kB / 443.1 MB, free: 6.172 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001749/0.1052, allocations: 219.7 kB / 443.3 MB, free: 5.949 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.906e-05/0.1052, allocations: 29.7 kB / 443.3 MB, free: 5.914 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.739e-05/0.1053, allocations: 156.1 kB / 443.5 MB, free: 5.758 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.874e-05/0.1054, allocations: 78.89 kB / 443.5 MB, free: 5.68 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.089e-05/0.1055, allocations: 69.7 kB / 443.6 MB, free: 5.605 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.1056, allocations: 330.8 kB / 443.9 MB, free: 5.273 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001702/0.1058, allocations: 75.95 kB / 444 MB, free: 5.199 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002173/0.106, allocations: 166.9 kB / 444.2 MB, free: 4.996 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001412/0.1074, allocations: 473.3 kB / 444.6 MB, free: 4.492 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1074, allocations: 4 kB / 444.6 MB, free: 4.488 MB / 318.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000504/0.1079, allocations: 308.9 kB / 444.9 MB, free: 4.18 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.108, allocations: 8 kB / 444.9 MB, free: 4.172 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.108, allocations: 4.375 kB / 444.9 MB, free: 4.168 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.108, allocations: 8 kB / 444.9 MB, free: 4.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003739/0.1084, allocations: 79.89 kB / 445 MB, free: 4.082 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.1084, allocations: 4 kB / 445 MB, free: 4.078 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001674/0.1086, allocations: 39.67 kB / 445.1 MB, free: 4.039 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.131e-05/0.1086, allocations: 12 kB / 445.1 MB, free: 4.027 MB / 318.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.0001643/0.1088, allocations: 169.5 kB / 445.2 MB, free: 3.852 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.5e-05/0.1088, allocations: 19.75 kB / 445.3 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004386/0.1093, allocations: 221.8 kB / 445.5 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.619e-06/0.1093, allocations: 4 kB / 445.5 MB, free: 3.605 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.1093, allocations: 0 / 445.5 MB, free: 3.605 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.1093, allocations: 0 / 445.5 MB, free: 3.605 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004611/0.1098, allocations: 309.3 kB / 445.8 MB, free: 3.254 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.1098, allocations: 3.938 kB / 445.8 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003737/0.1102, allocations: 63.91 kB / 445.9 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.1102, allocations: 0 / 445.9 MB, free: 3.188 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.785e-05/0.1102, allocations: 8 kB / 445.9 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.1102, allocations: 0 / 445.9 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.1102, allocations: 0 / 445.9 MB, free: 3.18 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005364/0.1108, allocations: 387.3 kB / 446.2 MB, free: 2.781 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.714e-05/0.1108, allocations: 100.8 kB / 446.3 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.077e-05/0.1109, allocations: 8 kB / 446.3 MB, free: 2.656 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001573/0.111, allocations: 15.98 kB / 446.4 MB, free: 2.641 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.923e-05/0.1111, allocations: 23.97 kB / 446.4 MB, free: 2.617 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.1111, allocations: 11.98 kB / 446.4 MB, free: 2.605 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001102/0.1113, allocations: 145 kB / 446.5 MB, free: 2.465 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1113, allocations: 0 / 446.5 MB, free: 2.465 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002909/0.1116, allocations: 43.91 kB / 446.6 MB, free: 2.422 MB / 318.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.0001027/0.1117, allocations: 111.3 kB / 446.7 MB, free: 2.305 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004001/0.1121, allocations: 201.3 kB / 446.9 MB, free: 2.109 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1121, allocations: 0 / 446.9 MB, free: 2.109 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002183/0.1123, allocations: 99.83 kB / 447 MB, free: 2.012 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003009/0.1126, allocations: 31.86 kB / 447 MB, free: 1.984 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008655/0.1135, allocations: 0.5374 MB / 447.6 MB, free: 1.426 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002809/0.1138, allocations: 0.7482 MB / 448.3 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.799e-05/0.1139, allocations: 26.3 kB / 448.3 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.901e-05/0.114, allocations: 27.42 kB / 448.4 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.114, allocations: 0 / 448.4 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of Templates: time 0.005095/0.1191, allocations: 2.083 MB / 450.4 MB, free: 14.52 MB / 334.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.makefile (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 & ./AES_AES.Coursework.Typical_control_structures.Cascade_with_locks -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe 2>&1)