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.004579/0.004579, allocations: 104.6 kB / 15.74 MB, free: 6.484 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.001014/0.001014, allocations: 189.1 kB / 16.67 MB, free: 6.379 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.23/0.23, allocations: 22.37 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 62.97 kB / 437.1 MB, free: 33.86 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1202, allocations: 54.96 MB / 492 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.002885/0.1231, allocations: 1.877 MB / 493.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004573/0.1236, allocations: 199.4 kB / 494.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.981e-05/0.1237, allocations: 4 kB / 494.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001385/0.1238, allocations: 31.55 kB / 494.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.388e-05/0.1239, allocations: 27.78 kB / 494.1 MB, free: 15.08 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.0002549/0.1242, allocations: 87.89 kB / 494.2 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003149/0.1245, allocations: 236.8 kB / 494.5 MB, free: 14.76 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001862/0.1247, allocations: 60.39 kB / 494.5 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001037/0.1248, allocations: 91.61 kB / 494.6 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000148/0.125, allocations: 87.55 kB / 494.7 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.087e-05/0.125, allocations: 23.94 kB / 494.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.981e-05/0.125, allocations: 16 kB / 494.7 MB, free: 14.49 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.267e-05/0.1251, allocations: 51.83 kB / 494.8 MB, free: 14.44 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.562e-05/0.1252, allocations: 99.39 kB / 494.9 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002577/0.1255, allocations: 195.3 kB / 495.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.1255, allocations: 3.938 kB / 495.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.1255, allocations: 0 / 495.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.1255, allocations: 4 kB / 495.1 MB, free: 14.14 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.000856/0.1264, allocations: 0.4992 MB / 495.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.1264, allocations: 12.03 kB / 495.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.305e-05/0.1265, allocations: 24.66 kB / 495.6 MB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002958/0.1268, allocations: 240.5 kB / 495.9 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.28e-05/0.1268, allocations: 20.81 kB / 495.9 MB, free: 13.26 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.756e-05/0.1269, allocations: 32.31 kB / 495.9 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004633/0.1273, allocations: 240.8 kB / 496.1 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.1274, allocations: 192 / 496.1 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.922e-05/0.1274, allocations: 7.938 kB / 496.1 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.1274, allocations: 8 kB / 496.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003541/0.1278, allocations: 157 kB / 496.3 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001982/0.1298, allocations: 1.022 MB / 497.3 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000313/0.1301, allocations: 150.6 kB / 497.5 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001947/0.1303, allocations: 77.94 kB / 497.6 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.441e-05/0.1303, allocations: 4 kB / 497.6 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.424e-05/0.1304, allocations: 42.5 kB / 497.6 MB, free: 11.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.192e-06/0.1304, allocations: 3.938 kB / 497.6 MB, free: 11.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005559/0.1309, allocations: 234.9 kB / 497.8 MB, free: 11.19 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.416e-05/0.131, allocations: 55.41 kB / 497.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002142/0.1312, allocations: 215.7 kB / 498.1 MB, free: 10.9 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.546e-05/0.1312, allocations: 33.7 kB / 498.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001181/0.1314, allocations: 156.1 kB / 498.3 MB, free: 10.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.465e-05/0.1314, allocations: 78.91 kB / 498.4 MB, free: 10.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.1315, allocations: 69.59 kB / 498.4 MB, free: 10.55 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.1317, allocations: 334.8 kB / 498.8 MB, free: 10.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000178/0.1319, allocations: 67.97 kB / 498.8 MB, free: 10.14 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002306/0.1321, allocations: 174.8 kB / 499 MB, free: 9.934 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/0.1335, allocations: 477.3 kB / 499.5 MB, free: 9.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.1335, allocations: 0 / 499.5 MB, free: 9.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005062/0.1341, allocations: 309.3 kB / 499.8 MB, free: 9.121 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.1341, allocations: 8 kB / 499.8 MB, free: 9.113 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.1341, allocations: 7.938 kB / 499.8 MB, free: 9.105 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.07e-05/0.1341, allocations: 8 kB / 499.8 MB, free: 9.098 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003124/0.1344, allocations: 83.83 kB / 499.9 MB, free: 9.016 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.1345, allocations: 4 kB / 499.9 MB, free: 9.012 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001708/0.1346, allocations: 35.67 kB / 499.9 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.243e-05/0.1347, allocations: 16 kB / 499.9 MB, free: 8.961 MB / 366.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.0001821/0.1349, allocations: 157.8 kB / 0.4884 GB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.83e-05/0.135, allocations: 31.64 kB / 0.4884 GB, free: 8.766 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004879/0.1354, allocations: 217.3 kB / 0.4886 GB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.1355, allocations: 4 kB / 0.4886 GB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.1355, allocations: 0 / 0.4886 GB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.1355, allocations: 3.984 kB / 0.4886 GB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004869/0.136, allocations: 317.3 kB / 0.4889 GB, free: 8.176 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.136, allocations: 3.938 kB / 0.4889 GB, free: 8.172 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003316/0.1363, allocations: 55.91 kB / 0.489 GB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.149e-06/0.1363, allocations: 4 kB / 0.489 GB, free: 8.113 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.581e-05/0.1364, allocations: 7.984 kB / 0.489 GB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.1364, allocations: 0 / 0.489 GB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1364, allocations: 4 kB / 0.489 GB, free: 8.102 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005745/0.137, allocations: 372.8 kB / 0.4893 GB, free: 7.719 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.632e-05/0.1371, allocations: 104.7 kB / 0.4894 GB, free: 7.598 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.125e-05/0.1371, allocations: 7.984 kB / 0.4894 GB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001615/0.1373, allocations: 12 kB / 0.4894 GB, free: 7.578 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.484e-05/0.1373, allocations: 23.95 kB / 0.4895 GB, free: 7.555 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.224e-05/0.1374, allocations: 4 kB / 0.4895 GB, free: 7.551 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001105/0.1375, allocations: 149.2 kB / 0.4896 GB, free: 7.406 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.1375, allocations: 0 / 0.4896 GB, free: 7.406 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002946/0.1378, allocations: 51.94 kB / 0.4897 GB, free: 7.355 MB / 366.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.0001154/0.1379, allocations: 111.2 kB / 0.4898 GB, free: 7.238 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004086/0.1383, allocations: 203 kB / 0.49 GB, free: 7.043 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1383, allocations: 0.75 kB / 0.49 GB, free: 7.043 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001725/0.1385, allocations: 103.8 kB / 0.4901 GB, free: 6.941 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003381/0.1389, allocations: 31.41 kB / 0.4901 GB, free: 6.914 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008846/0.1398, allocations: 0.5376 MB / 0.4906 GB, free: 6.355 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/0.1401, allocations: 0.7482 MB / 0.4914 GB, free: 5.582 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001087/0.1402, allocations: 26.28 kB / 0.4914 GB, free: 5.555 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.755e-05/0.1403, allocations: 23.44 kB / 0.4914 GB, free: 5.531 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1403, allocations: 3.938 kB / 0.4914 GB, free: 5.527 MB / 366.1 MB Notification: Performance of Templates: time 0.00518/0.1455, allocations: 2.189 MB / 0.4935 GB, free: 3.34 MB / 366.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)