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.001135/0.001135, allocations: 116.4 kB / 16.37 MB, free: 6 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.001192/0.001192, allocations: 193.5 kB / 17.31 MB, free: 5.613 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.357/1.357, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08906/0.08906, allocations: 22.33 MB / 313.5 MB, free: 8.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 68.73 kB / 382.2 MB, free: 41.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1148, allocations: 54.96 MB / 437.2 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.003975/0.1188, allocations: 1.861 MB / 439.1 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004076/0.1192, allocations: 195.4 kB / 439.3 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.329e-05/0.1193, allocations: 7.938 kB / 439.3 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001262/0.1195, allocations: 35.59 kB / 439.3 MB, free: 10.24 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.359e-05/0.1196, allocations: 15.81 kB / 439.3 MB, free: 10.23 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.000229/0.1198, allocations: 95.8 kB / 439.4 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000283/0.1201, allocations: 232.8 kB / 439.6 MB, free: 9.906 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002476/0.1204, allocations: 60.38 kB / 439.7 MB, free: 9.848 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.359e-05/0.1205, allocations: 83.69 kB / 439.8 MB, free: 9.766 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001392/0.1206, allocations: 99.47 kB / 439.9 MB, free: 9.668 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.786e-05/0.1207, allocations: 16 kB / 439.9 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.012e-05/0.1207, allocations: 20 kB / 439.9 MB, free: 9.633 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.195e-05/0.1207, allocations: 51.83 kB / 440 MB, free: 9.582 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.488e-05/0.1208, allocations: 107.3 kB / 440.1 MB, free: 9.477 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002999/0.1212, allocations: 195.2 kB / 440.3 MB, free: 9.285 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1212, allocations: 0 / 440.3 MB, free: 9.285 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1212, allocations: 0 / 440.3 MB, free: 9.285 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.1212, allocations: 0 / 440.3 MB, free: 9.285 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.0009543/0.1221, allocations: 0.513 MB / 440.8 MB, free: 8.723 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/0.1222, allocations: 12.02 kB / 440.8 MB, free: 8.711 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.65e-05/0.1223, allocations: 28.66 kB / 440.8 MB, free: 8.684 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003108/0.1226, allocations: 228.7 kB / 441 MB, free: 8.418 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.142e-05/0.1226, allocations: 24.75 kB / 441.1 MB, free: 8.395 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.892e-05/0.1227, allocations: 24.38 kB / 441.1 MB, free: 8.371 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004216/0.1231, allocations: 232.8 kB / 441.3 MB, free: 8.121 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.1231, allocations: 192 / 441.3 MB, free: 8.121 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.073e-05/0.1232, allocations: 11.94 kB / 441.3 MB, free: 8.109 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.1232, allocations: 4 kB / 441.3 MB, free: 8.105 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003508/0.1235, allocations: 164.9 kB / 441.5 MB, free: 7.945 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001669/0.1252, allocations: 1.026 MB / 442.5 MB, free: 6.855 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002947/0.1255, allocations: 158.5 kB / 442.7 MB, free: 6.691 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001512/0.1257, allocations: 68.83 kB / 442.7 MB, free: 6.621 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.048e-05/0.1257, allocations: 4 kB / 442.7 MB, free: 6.617 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.565e-05/0.1258, allocations: 30.56 kB / 442.8 MB, free: 6.578 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.343e-06/0.1258, allocations: 0 / 442.8 MB, free: 6.578 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.000582/0.1264, allocations: 247.3 kB / 443 MB, free: 6.332 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.603e-05/0.1264, allocations: 59.34 kB / 443.1 MB, free: 6.262 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002246/0.1266, allocations: 211.8 kB / 443.3 MB, free: 6.047 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.647e-05/0.1267, allocations: 33.69 kB / 443.3 MB, free: 6.008 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.1268, allocations: 152.1 kB / 443.5 MB, free: 5.855 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.017e-05/0.1268, allocations: 78.89 kB / 443.5 MB, free: 5.777 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.876e-05/0.127, allocations: 69.69 kB / 443.6 MB, free: 5.703 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.1271, allocations: 338.8 kB / 443.9 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000157/0.1272, allocations: 67.97 kB / 444 MB, free: 5.297 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002204/0.1275, allocations: 166.9 kB / 444.2 MB, free: 5.094 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001395/0.1289, allocations: 477.3 kB / 444.6 MB, free: 4.586 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.1289, allocations: 0 / 444.6 MB, free: 4.586 MB / 318.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005295/0.1294, allocations: 313 kB / 444.9 MB, free: 4.273 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.1295, allocations: 4 kB / 444.9 MB, free: 4.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.1295, allocations: 7.938 kB / 444.9 MB, free: 4.262 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.1295, allocations: 4 kB / 445 MB, free: 4.258 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003248/0.1298, allocations: 80.28 kB / 445 MB, free: 4.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.1298, allocations: 11.98 kB / 445 MB, free: 4.168 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001573/0.13, allocations: 31.69 kB / 445.1 MB, free: 4.137 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.272e-05/0.13, allocations: 16 kB / 445.1 MB, free: 4.121 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.0001755/0.1302, allocations: 169.4 kB / 445.3 MB, free: 3.945 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.218e-05/0.1303, allocations: 19.75 kB / 445.3 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004421/0.1307, allocations: 227.9 kB / 445.5 MB, free: 3.695 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.1307, allocations: 0 / 445.5 MB, free: 3.695 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1307, allocations: 3.938 kB / 445.5 MB, free: 3.691 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.1307, allocations: 0 / 445.5 MB, free: 3.691 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004558/0.1312, allocations: 313.3 kB / 445.8 MB, free: 3.336 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.1312, allocations: 7.922 kB / 445.8 MB, free: 3.328 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003265/0.1315, allocations: 55.91 kB / 445.9 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.1316, allocations: 0 / 445.9 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.38e-05/0.1316, allocations: 8 kB / 445.9 MB, free: 3.266 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.1316, allocations: 4 kB / 445.9 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1316, allocations: 0 / 445.9 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005726/0.1322, allocations: 389.8 kB / 446.3 MB, free: 2.863 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.559e-05/0.1322, allocations: 100.8 kB / 446.4 MB, free: 2.746 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.01e-05/0.1323, allocations: 4 kB / 446.4 MB, free: 2.742 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001524/0.1324, allocations: 11.98 kB / 446.4 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.234e-05/0.1325, allocations: 23.97 kB / 446.4 MB, free: 2.707 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.43e-05/0.1325, allocations: 8 kB / 446.4 MB, free: 2.699 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001021/0.1326, allocations: 145 kB / 446.5 MB, free: 2.559 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1327, allocations: 0 / 446.5 MB, free: 2.559 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002901/0.1329, allocations: 43.91 kB / 446.6 MB, free: 2.516 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.0001063/0.1331, allocations: 107.2 kB / 446.7 MB, free: 2.402 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000436/0.1335, allocations: 215.7 kB / 446.9 MB, free: 2.191 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1335, allocations: 0 / 446.9 MB, free: 2.191 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001629/0.1337, allocations: 85.73 kB / 447 MB, free: 2.109 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003268/0.134, allocations: 32.59 kB / 447 MB, free: 2.078 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009062/0.1349, allocations: 0.5345 MB / 447.6 MB, free: 1.52 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.1352, allocations: 0.7482 MB / 448.3 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.751e-05/0.1354, allocations: 30.28 kB / 448.3 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.473e-05/0.1354, allocations: 27.44 kB / 448.4 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1354, allocations: 0 / 448.4 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of Templates: time 0.00479/0.1402, allocations: 2.082 MB / 450.4 MB, free: 14.61 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 cvode -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe 2>&1)