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.005767/0.005767, allocations: 102.8 kB / 15.74 MB, free: 6.5 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.001226/0.001227, allocations: 197.7 kB / 16.68 MB, free: 6.375 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.411/1.411, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2827/0.2827, allocations: 22.35 MB / 312.9 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 60 kB / 437.1 MB, free: 33.91 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.113, allocations: 54.96 MB / 492 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.00324/0.1163, allocations: 1.88 MB / 493.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005798/0.1169, allocations: 195.4 kB / 494.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001721/0.1171, allocations: 0 / 494.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001735/0.1173, allocations: 39.55 kB / 494.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 9.489e-05/0.1174, allocations: 15.81 kB / 494.1 MB, free: 15.11 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.0003385/0.1178, allocations: 91.86 kB / 494.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003575/0.1181, allocations: 240.8 kB / 494.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001875/0.1183, allocations: 60.39 kB / 494.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001195/0.1184, allocations: 79.64 kB / 494.6 MB, free: 14.65 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001725/0.1186, allocations: 99.52 kB / 494.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.439e-05/0.1187, allocations: 23.94 kB / 494.7 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.259e-05/0.1187, allocations: 20 kB / 494.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.459e-05/0.1188, allocations: 43.83 kB / 494.8 MB, free: 14.47 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.748e-05/0.1189, allocations: 103.4 kB / 494.9 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002679/0.1192, allocations: 187.1 kB / 495.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.1192, allocations: 3.938 kB / 495.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1192, allocations: 0 / 495.1 MB, free: 14.18 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.1192, allocations: 0 / 495.1 MB, free: 14.18 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.0008876/0.1201, allocations: 0.5184 MB / 495.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.1201, allocations: 15.97 kB / 495.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.481e-05/0.1202, allocations: 24.8 kB / 495.6 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003144/0.1205, allocations: 244.6 kB / 495.9 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.729e-05/0.1206, allocations: 16.81 kB / 495.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.843e-05/0.1206, allocations: 28.38 kB / 495.9 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000432/0.1211, allocations: 236.8 kB / 496.1 MB, free: 12.99 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.1211, allocations: 192 / 496.1 MB, free: 12.99 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.446e-05/0.1211, allocations: 11.94 kB / 496.2 MB, free: 12.98 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.1211, allocations: 8 kB / 496.2 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003582/0.1215, allocations: 161 kB / 496.3 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001759/0.1233, allocations: 1.022 MB / 497.3 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003124/0.1236, allocations: 146.6 kB / 497.5 MB, free: 11.57 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/0.1238, allocations: 72.83 kB / 497.6 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.595e-05/0.1238, allocations: 4 kB / 497.6 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.823e-05/0.1238, allocations: 38.5 kB / 497.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.453e-06/0.1239, allocations: 0 / 497.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005892/0.1244, allocations: 239.8 kB / 497.8 MB, free: 11.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.497e-05/0.1245, allocations: 55.41 kB / 497.9 MB, free: 11.14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002235/0.1247, allocations: 219.7 kB / 498.1 MB, free: 10.92 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.251e-05/0.1248, allocations: 33.7 kB / 498.1 MB, free: 10.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.1249, allocations: 156.4 kB / 498.3 MB, free: 10.72 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.892e-05/0.1249, allocations: 83.33 kB / 498.4 MB, free: 10.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.125, allocations: 65.66 kB / 498.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.1252, allocations: 338.8 kB / 498.8 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001758/0.1254, allocations: 75.95 kB / 498.8 MB, free: 10.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000238/0.1256, allocations: 166.8 kB / 499 MB, free: 9.949 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001411/0.127, allocations: 477.3 kB / 499.5 MB, free: 9.445 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.1271, allocations: 0 / 499.5 MB, free: 9.445 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005493/0.1276, allocations: 313.4 kB / 499.8 MB, free: 9.133 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.1276, allocations: 8 kB / 499.8 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.1277, allocations: 0 / 499.8 MB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.1277, allocations: 8 kB / 499.8 MB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003176/0.128, allocations: 83.83 kB / 499.9 MB, free: 9.035 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.293e-05/0.128, allocations: 4 kB / 499.9 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002016/0.1282, allocations: 47.66 kB / 499.9 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.703e-05/0.1283, allocations: 12 kB / 499.9 MB, free: 8.973 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.0002026/0.1285, allocations: 157.8 kB / 0.4884 GB, free: 8.809 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.411e-05/0.1285, allocations: 27.8 kB / 0.4884 GB, free: 8.781 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005174/0.1291, allocations: 227.2 kB / 0.4886 GB, free: 8.547 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-05/0.1291, allocations: 4 kB / 0.4886 GB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.1291, allocations: 0 / 0.4886 GB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.1291, allocations: 0 / 0.4886 GB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005538/0.1297, allocations: 321.3 kB / 0.4889 GB, free: 8.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.1297, allocations: 3.938 kB / 0.4889 GB, free: 8.176 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003277/0.13, allocations: 55.91 kB / 0.489 GB, free: 8.121 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.13, allocations: 4 kB / 0.489 GB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.197e-05/0.1301, allocations: 4 kB / 0.489 GB, free: 8.113 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.372e-06/0.1301, allocations: 4 kB / 0.489 GB, free: 8.109 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1301, allocations: 0 / 0.489 GB, free: 8.109 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006067/0.1307, allocations: 384.9 kB / 0.4894 GB, free: 7.715 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.674e-05/0.1308, allocations: 100.8 kB / 0.4895 GB, free: 7.598 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.426e-05/0.1308, allocations: 8 kB / 0.4895 GB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001509/0.131, allocations: 7.984 kB / 0.4895 GB, free: 7.582 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.135e-05/0.1311, allocations: 19.97 kB / 0.4895 GB, free: 7.562 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.1311, allocations: 15.98 kB / 0.4895 GB, free: 7.547 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00011/0.1312, allocations: 141 kB / 0.4896 GB, free: 7.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1312, allocations: 0 / 0.4896 GB, free: 7.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003197/0.1315, allocations: 44.05 kB / 0.4897 GB, free: 7.367 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.0001138/0.1316, allocations: 119.1 kB / 0.4898 GB, free: 7.242 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004508/0.1321, allocations: 203.7 kB / 0.49 GB, free: 7.043 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.1321, allocations: 0.75 kB / 0.49 GB, free: 7.043 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001775/0.1323, allocations: 104.5 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.0003256/0.1326, allocations: 24.61 kB / 0.4901 GB, free: 6.918 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009744/0.1336, allocations: 0.5458 MB / 0.4906 GB, free: 6.355 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004002/0.134, allocations: 0.7482 MB / 0.4914 GB, free: 5.582 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001213/0.1342, allocations: 22.3 kB / 0.4914 GB, free: 5.559 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.559e-05/0.1342, allocations: 31.42 kB / 0.4914 GB, free: 5.527 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1342, allocations: 3.938 kB / 0.4914 GB, free: 5.523 MB / 366.1 MB Notification: Performance of Templates: time 0.005716/0.14, allocations: 2.109 MB / 0.4935 GB, free: 3.414 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)