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/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1064/0.1064, allocations: 21.45 MB / 36.4 MB, free: 1.164 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001122/0.001122, allocations: 179.2 kB / 42.62 MB, free: 3.984 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.91/1.91, allocations: 205.4 MB / 254.1 MB, free: 15.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001094/0.001094, allocations: 97.3 kB / 307.8 MB, free: 11.09 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003448/0.0003451, allocations: 12.06 kB / 373.2 MB, free: 59.14 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1221, allocations: 52.95 MB / 426.2 MB, free: 13.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3638/0.486, allocations: 78.31 MB / 0.4927 GB, free: 23.77 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002775/0.4863, allocations: 74.22 kB / 0.4927 GB, free: 23.77 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:52:3-52:25:writable] Warning: Connecting two signal sources while connecting iNoInc to noInc. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:53:3-53:25:writable] Warning: Connecting two signal sources while connecting iNoDec to noDec. Notification: Performance of FrontEnd - DAE generated: time 0.00812/0.4944, allocations: 2.747 MB / 0.4954 GB, free: 23.32 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.4945, allocations: 0 / 0.4954 GB, free: 23.32 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.888e-05/0.4945, allocations: 5.094 kB / 0.4954 GB, free: 23.32 MB / 362.7 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.0008079/0.4953, allocations: 489.4 kB / 0.4959 GB, free: 22.91 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.926e-05/0.4954, allocations: 9.562 kB / 0.4959 GB, free: 22.91 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.48e-05/0.4955, allocations: 26.97 kB / 0.4959 GB, free: 22.9 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000297/0.4958, allocations: 239.1 kB / 0.4962 GB, free: 22.68 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.826e-05/0.4958, allocations: 26.39 kB / 0.4962 GB, free: 22.67 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.011e-05/0.4959, allocations: 28.69 kB / 0.4962 GB, free: 22.67 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004819/0.4964, allocations: 231.6 kB / 0.4964 GB, free: 22.58 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.4964, allocations: 3.031 kB / 0.4964 GB, free: 22.58 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.585e-05/0.4964, allocations: 9.828 kB / 0.4964 GB, free: 22.58 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.4964, allocations: 5.312 kB / 0.4964 GB, free: 22.58 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003659/0.4968, allocations: 161.6 kB / 0.4966 GB, free: 22.57 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001739/0.4986, allocations: 1.047 MB / 0.4976 GB, free: 21.93 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000353/0.4989, allocations: 148.3 kB / 0.4978 GB, free: 21.9 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.365e-05/0.499, allocations: 5.25 kB / 0.4978 GB, free: 21.9 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.407e-05/0.499, allocations: 37.41 kB / 0.4978 GB, free: 21.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.433e-06/0.499, allocations: 4 kB / 0.4978 GB, free: 21.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006121/0.4996, allocations: 240.5 kB / 0.498 GB, free: 21.81 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.768e-05/0.4997, allocations: 54.72 kB / 0.4981 GB, free: 21.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001856/0.4999, allocations: 190.3 kB / 0.4983 GB, free: 21.64 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.021e-05/0.4999, allocations: 29.64 kB / 0.4983 GB, free: 21.61 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.221e-05/0.5, allocations: 154.9 kB / 0.4984 GB, free: 21.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.84e-05/0.5, allocations: 79.66 kB / 0.4985 GB, free: 21.45 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.171e-05/0.5001, allocations: 9 kB / 0.4985 GB, free: 21.45 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.341e-05/0.5001, allocations: 339.4 kB / 0.4989 GB, free: 21.13 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001442/0.5003, allocations: 74.12 kB / 0.4989 GB, free: 21.13 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000204/0.5005, allocations: 172.5 kB / 0.4991 GB, free: 21.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001938/0.5007, allocations: 93.5 kB / 0.4992 GB, free: 21.01 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.5007, allocations: 1.438 kB / 0.4992 GB, free: 21.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004965/0.5012, allocations: 308.5 kB / 0.4995 GB, free: 20.94 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.5012, allocations: 5.812 kB / 0.4995 GB, free: 20.94 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.878e-06/0.5013, allocations: 8.25 kB / 0.4995 GB, free: 20.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.184e-05/0.5013, allocations: 6.891 kB / 0.4995 GB, free: 20.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000373/0.5017, allocations: 79.48 kB / 0.4996 GB, free: 20.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.493e-05/0.5017, allocations: 6.844 kB / 0.4996 GB, free: 20.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001706/0.5019, allocations: 34.39 kB / 0.4996 GB, free: 20.92 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.931e-05/0.5019, allocations: 15.72 kB / 0.4996 GB, free: 20.92 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: PI_I.xfb:VARIABLE(fixed = true ) type: Real PI_E.xfb:VARIABLE(fixed = true ) 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_E.HIsat,PI_E.LOsat,PI_E.noInc,PI_E.noDec,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001222/0.5031, allocations: 158 kB / 0.4998 GB, free: 36.78 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.89e-05/0.5032, allocations: 21.03 kB / 0.4998 GB, free: 36.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000521/0.5037, allocations: 220 kB / 0.5 GB, free: 36.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/0.5037, allocations: 2.625 kB / 0.5 GB, free: 36.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.5038, allocations: 0 / 0.5 GB, free: 36.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.5038, allocations: 3.141 kB / 0.5 GB, free: 36.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005231/0.5043, allocations: 312.2 kB / 0.5003 GB, free: 36.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.5043, allocations: 7.031 kB / 0.5003 GB, free: 36.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003596/0.5047, allocations: 57.02 kB / 0.5004 GB, free: 36.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.5047, allocations: 1.562 kB / 0.5004 GB, free: 36.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.902e-05/0.5047, allocations: 6.078 kB / 0.5004 GB, free: 36.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.5047, allocations: 5.469 kB / 0.5004 GB, free: 36.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.5047, allocations: 3.938 kB / 0.5004 GB, free: 36.51 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00071/0.5055, allocations: 390.2 kB / 0.5008 GB, free: 36.34 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.681e-05/0.5055, allocations: 98.48 kB / 0.5008 GB, free: 36.24 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.473e-05/0.5056, allocations: 6.594 kB / 0.5009 GB, free: 36.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001596/0.5057, allocations: 10.14 kB / 0.5009 GB, free: 36.24 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.941e-05/0.5058, allocations: 25.36 kB / 0.5009 GB, free: 36.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.542e-05/0.5059, allocations: 9.5 kB / 0.5009 GB, free: 36.24 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001292/0.506, allocations: 138.3 kB / 0.501 GB, free: 36.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.506, allocations: 0 / 0.501 GB, free: 36.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000306/0.5063, allocations: 56.06 kB / 0.5011 GB, free: 36.15 MB / 378.7 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_E.noInc,PI_E.noDec) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001611/0.5065, allocations: 107 kB / 0.5012 GB, free: 36.06 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004808/0.507, allocations: 204.2 kB / 0.5014 GB, free: 36.05 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.507, allocations: 0.75 kB / 0.5014 GB, free: 36.05 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001894/0.5072, allocations: 96.67 kB / 0.5015 GB, free: 36.04 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002717/0.5075, allocations: 28.39 kB / 0.5015 GB, free: 36.03 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009228/0.5084, allocations: 0.6047 MB / 0.5021 GB, free: 35.7 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000359/0.5088, allocations: 0.7553 MB / 0.5028 GB, free: 35 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001324/0.5089, allocations: 31.61 kB / 0.5029 GB, free: 34.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.997e-05/0.509, allocations: 26.3 kB / 0.5029 GB, free: 34.98 MB / 378.7 MB Notification: Performance of SimCode: time 5.01e-07/0.509, allocations: 0 / 0.5029 GB, free: 34.98 MB / 378.7 MB Notification: Performance of Templates: time 0.004963/0.514, allocations: 1.765 MB / 0.5046 GB, free: 34.85 MB / 378.7 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 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe 2>&1)