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.001336/0.001336, allocations: 112.6 kB / 16.41 MB, free: 6.492 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.001213/0.001213, allocations: 189.6 kB / 17.34 MB, free: 5.766 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.329/1.329, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08774/0.08774, allocations: 22.33 MB / 313.5 MB, free: 8.879 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002135/0.002136, allocations: 63.89 kB / 437.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1283, allocations: 54.96 MB / 492.7 MB, free: 4.766 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.003317/0.1316, allocations: 1.863 MB / 494.5 MB, free: 2.883 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005888/0.1323, allocations: 199.3 kB / 494.7 MB, free: 2.688 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000157/0.1324, allocations: 0 / 494.7 MB, free: 2.688 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001733/0.1326, allocations: 39.55 kB / 494.8 MB, free: 2.648 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.749e-05/0.1328, allocations: 15.8 kB / 494.8 MB, free: 2.633 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.0002877/0.1331, allocations: 87.88 kB / 494.9 MB, free: 2.547 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003281/0.1334, allocations: 244.8 kB / 495.1 MB, free: 2.309 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001675/0.1336, allocations: 56.39 kB / 495.2 MB, free: 2.258 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001235/0.1337, allocations: 83.69 kB / 495.2 MB, free: 2.176 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001463/0.1339, allocations: 95.47 kB / 495.3 MB, free: 2.082 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.047e-05/0.1339, allocations: 20 kB / 495.3 MB, free: 2.062 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.922e-05/0.1339, allocations: 20 kB / 495.4 MB, free: 2.043 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.896e-05/0.134, allocations: 51.83 kB / 495.4 MB, free: 1.992 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.946e-05/0.1341, allocations: 95.45 kB / 495.5 MB, free: 1.898 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002378/0.1343, allocations: 203.1 kB / 495.7 MB, free: 1.699 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1343, allocations: 4 kB / 495.7 MB, free: 1.695 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.1343, allocations: 0 / 495.7 MB, free: 1.695 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.104e-05/0.1344, allocations: 3.984 kB / 495.7 MB, free: 1.691 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.0008662/0.1352, allocations: 0.503 MB / 496.2 MB, free: 1.137 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/0.1353, allocations: 12.03 kB / 496.2 MB, free: 1.125 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.545e-05/0.1354, allocations: 24.66 kB / 496.3 MB, free: 1.102 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003349/0.1357, allocations: 236.6 kB / 496.5 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.427e-05/0.1357, allocations: 16.81 kB / 496.5 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.642e-05/0.1358, allocations: 24.38 kB / 496.5 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004436/0.1363, allocations: 240.8 kB / 496.8 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.056e-05/0.1363, allocations: 192 / 496.8 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.935e-05/0.1363, allocations: 15.94 kB / 496.8 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.967e-06/0.1363, allocations: 7.938 kB / 496.8 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000347/0.1367, allocations: 161 kB / 496.9 MB, free: 356 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001671/0.1384, allocations: 1.018 MB / 498 MB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002997/0.1387, allocations: 157.2 kB / 498.1 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001399/0.1388, allocations: 72.77 kB / 498.2 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.028e-05/0.1389, allocations: 7.984 kB / 498.2 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.066e-05/0.1389, allocations: 34.56 kB / 498.2 MB, free: 14.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.874e-06/0.1389, allocations: 0 / 498.2 MB, free: 14.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.000573/0.1395, allocations: 252.6 kB / 498.5 MB, free: 14.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.91e-05/0.1395, allocations: 51.41 kB / 498.5 MB, free: 14.67 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001905/0.1397, allocations: 215.8 kB / 498.7 MB, free: 14.45 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.668e-05/0.1397, allocations: 29.7 kB / 498.8 MB, free: 14.41 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.558e-05/0.1398, allocations: 152.1 kB / 498.9 MB, free: 14.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.529e-05/0.1399, allocations: 74.91 kB / 499 MB, free: 14.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.969e-05/0.14, allocations: 69.61 kB / 499.1 MB, free: 14.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.1401, allocations: 334.8 kB / 499.4 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001886/0.1403, allocations: 83.91 kB / 499.5 MB, free: 13.69 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000214/0.1406, allocations: 166.8 kB / 499.6 MB, free: 13.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001353/0.1419, allocations: 480.8 kB / 0.4884 GB, free: 12.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.1419, allocations: 4 kB / 0.4884 GB, free: 12.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005134/0.1425, allocations: 309 kB / 0.4887 GB, free: 12.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.1425, allocations: 8 kB / 0.4887 GB, free: 12.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.1425, allocations: 4 kB / 0.4887 GB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.953e-05/0.1425, allocations: 4 kB / 0.4887 GB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003073/0.1428, allocations: 75.89 kB / 0.4888 GB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.366e-05/0.1429, allocations: 8.312 kB / 0.4888 GB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001817/0.143, allocations: 51.61 kB / 0.4888 GB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.213e-05/0.1431, allocations: 8 kB / 0.4888 GB, free: 12.51 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.0002115/0.1433, allocations: 153.7 kB / 0.489 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.659e-05/0.1433, allocations: 23.66 kB / 0.489 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004588/0.1438, allocations: 228.9 kB / 0.4892 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.1438, allocations: 4 kB / 0.4892 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.1438, allocations: 0 / 0.4892 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.1439, allocations: 0 / 0.4892 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004824/0.1443, allocations: 313.3 kB / 0.4895 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.1444, allocations: 3.938 kB / 0.4895 GB, free: 11.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003261/0.1447, allocations: 59.97 kB / 0.4896 GB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.1447, allocations: 3.938 kB / 0.4896 GB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.028e-05/0.1447, allocations: 8 kB / 0.4896 GB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.1447, allocations: 0 / 0.4896 GB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.1447, allocations: 4 kB / 0.4896 GB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005675/0.1453, allocations: 390.2 kB / 0.49 GB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.051e-05/0.1454, allocations: 96.8 kB / 0.4901 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.373e-05/0.1454, allocations: 8 kB / 0.4901 GB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001533/0.1456, allocations: 11.98 kB / 0.4901 GB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.329e-05/0.1457, allocations: 27.97 kB / 0.4901 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.453e-05/0.1457, allocations: 11.98 kB / 0.4901 GB, free: 11.08 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001157/0.1458, allocations: 145 kB / 0.4903 GB, free: 10.94 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1458, allocations: 0 / 0.4903 GB, free: 10.94 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003019/0.1461, allocations: 43.91 kB / 0.4903 GB, free: 10.9 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.0001273/0.1462, allocations: 111.2 kB / 0.4904 GB, free: 10.78 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004242/0.1467, allocations: 207.9 kB / 0.4906 GB, free: 10.58 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1467, allocations: 0 / 0.4906 GB, free: 10.58 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001728/0.1469, allocations: 99.75 kB / 0.4907 GB, free: 10.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003668/0.1472, allocations: 28.55 kB / 0.4907 GB, free: 10.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000943/0.1482, allocations: 0.5634 MB / 0.4913 GB, free: 9.863 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000291/0.1485, allocations: 0.7482 MB / 0.492 GB, free: 9.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.489e-05/0.1486, allocations: 27.44 kB / 0.492 GB, free: 9.062 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1486, allocations: 4 kB / 0.492 GB, free: 9.059 MB / 382.1 MB Notification: Performance of Templates: time 0.005065/0.1537, allocations: 2.684 MB / 0.4947 GB, free: 6.363 MB / 382.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 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe 2>&1)