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 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 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.0929/0.0929, allocations: 21.61 MB / 36.56 MB, free: 1.059 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008903/0.0008904, allocations: 183.4 kB / 42.83 MB, free: 3.785 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.215/1.215, allocations: 223.2 MB / 272.1 MB, free: 1.379 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008893/0.0008894, allocations: 102.2 kB / 328.7 MB, free: 11.71 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002997/0.0002998, allocations: 8 kB / 397 MB, free: 46.47 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08083/0.08115, allocations: 55.83 MB / 452.9 MB, free: 6.629 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2724/0.3536, allocations: 79.21 MB / 0.5196 GB, free: 13.39 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001862/0.3538, allocations: 74 kB / 0.5197 GB, free: 13.39 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.006248/0.3601, allocations: 2.759 MB / 0.5224 GB, free: 12.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3601, allocations: 0 / 0.5224 GB, free: 12.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.253e-05/0.3601, allocations: 11.81 kB / 0.5224 GB, free: 12.91 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.0005039/0.3606, allocations: 484.7 kB / 0.5228 GB, free: 12.5 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.94e-05/0.3606, allocations: 7.438 kB / 0.5228 GB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.648e-05/0.3607, allocations: 26.34 kB / 0.5229 GB, free: 12.49 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001865/0.3609, allocations: 248.2 kB / 0.5231 GB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.726e-05/0.3609, allocations: 19.03 kB / 0.5231 GB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.63e-05/0.361, allocations: 23.84 kB / 0.5232 GB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003302/0.3613, allocations: 233.2 kB / 0.5234 GB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.3613, allocations: 3.875 kB / 0.5234 GB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.044e-05/0.3613, allocations: 13.61 kB / 0.5234 GB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.3613, allocations: 3.844 kB / 0.5234 GB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002792/0.3616, allocations: 163.2 kB / 0.5235 GB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001323/0.363, allocations: 1.038 MB / 0.5246 GB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002331/0.3632, allocations: 157.1 kB / 0.5247 GB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.456e-05/0.3632, allocations: 3.094 kB / 0.5247 GB, free: 11.5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.289e-05/0.3633, allocations: 36.84 kB / 0.5248 GB, free: 11.46 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.273e-06/0.3633, allocations: 0 / 0.5248 GB, free: 11.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004502/0.3637, allocations: 233.8 kB / 0.525 GB, free: 11.42 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.318e-05/0.3638, allocations: 62.84 kB / 0.525 GB, free: 11.35 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/0.3639, allocations: 190.3 kB / 0.5252 GB, free: 11.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.627e-05/0.3639, allocations: 32.3 kB / 0.5252 GB, free: 11.21 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.9e-05/0.364, allocations: 156.7 kB / 0.5254 GB, free: 11.1 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.721e-05/0.364, allocations: 77.67 kB / 0.5255 GB, free: 11.05 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.153e-05/0.364, allocations: 10.88 kB / 0.5255 GB, free: 11.05 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 4.472e-05/0.3641, allocations: 332.3 kB / 0.5258 GB, free: 10.74 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/0.3642, allocations: 74.56 kB / 0.5259 GB, free: 10.74 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001541/0.3644, allocations: 160.1 kB / 0.526 GB, free: 10.64 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001529/0.3645, allocations: 92.7 kB / 0.5261 GB, free: 10.62 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3645, allocations: 3.938 kB / 0.5261 GB, free: 10.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004035/0.3649, allocations: 309.1 kB / 0.5264 GB, free: 10.55 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.365, allocations: 3.844 kB / 0.5264 GB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.365, allocations: 3.844 kB / 0.5264 GB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.365, allocations: 3.844 kB / 0.5264 GB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003075/0.3653, allocations: 92.67 kB / 0.5265 GB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.3653, allocations: 7.844 kB / 0.5265 GB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001566/0.3655, allocations: 31.38 kB / 0.5265 GB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.94e-05/0.3655, allocations: 13.56 kB / 0.5266 GB, free: 10.53 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.0001526/0.3657, allocations: 149.4 kB / 0.5267 GB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.66e-05/0.3657, allocations: 23.2 kB / 0.5267 GB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003736/0.3661, allocations: 227 kB / 0.5269 GB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.3661, allocations: 3.656 kB / 0.5269 GB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.3661, allocations: 3.094 kB / 0.5269 GB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.3661, allocations: 0 / 0.5269 GB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003504/0.3665, allocations: 308.5 kB / 0.5272 GB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.3665, allocations: 0.8125 kB / 0.5272 GB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003546/0.3668, allocations: 65.14 kB / 0.5273 GB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.3669, allocations: 0 / 0.5273 GB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.046e-05/0.3669, allocations: 14.27 kB / 0.5273 GB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.3669, allocations: 3.375 kB / 0.5273 GB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3669, allocations: 0 / 0.5273 GB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004438/0.3673, allocations: 378.6 kB / 0.5277 GB, free: 9.973 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.064e-05/0.3674, allocations: 92.7 kB / 0.5278 GB, free: 9.867 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.763e-05/0.3674, allocations: 10.36 kB / 0.5278 GB, free: 9.867 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001604/0.3676, allocations: 22.39 kB / 0.5278 GB, free: 9.859 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.698e-05/0.3677, allocations: 20.77 kB / 0.5278 GB, free: 9.859 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.085e-05/0.3677, allocations: 3.844 kB / 0.5278 GB, free: 9.859 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.164e-05/0.3677, allocations: 148.1 kB / 0.528 GB, free: 9.777 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3678, allocations: 0 / 0.528 GB, free: 9.777 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002592/0.368, allocations: 48.47 kB / 0.528 GB, free: 9.773 MB / 362.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 8.345e-05/0.3681, allocations: 106.9 kB / 0.5281 GB, free: 9.684 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003298/0.3684, allocations: 208.8 kB / 0.5283 GB, free: 9.668 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.303e-06/0.3684, allocations: 0 / 0.5283 GB, free: 9.668 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001379/0.3686, allocations: 88.39 kB / 0.5284 GB, free: 9.664 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001969/0.3688, allocations: 23.09 kB / 0.5284 GB, free: 9.664 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006634/0.3695, allocations: 0.6085 MB / 0.529 GB, free: 9.324 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001239/0.3696, allocations: 0.7602 MB / 0.5298 GB, free: 8.621 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001147/0.3697, allocations: 34.06 kB / 0.5298 GB, free: 8.609 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.166e-05/0.3698, allocations: 22.69 kB / 0.5298 GB, free: 8.602 MB / 362.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3698, allocations: 0 / 0.5298 GB, free: 8.602 MB / 362.7 MB Notification: Performance of Templates: time 0.003431/0.3732, allocations: 1.772 MB / 0.5315 GB, free: 7.816 MB / 362.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 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe 2>&1)