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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 102.1 kB / 19.7 MB, free: 2.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 218.2 kB / 23.01 MB, free: 4.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.501/1.501, allocations: 230.6 MB / 256.8 MB, free: 8.082 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1092/0.1092, allocations: 24.11 MB / 337.3 MB, free: 11.5 MB / 270.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Ignoring simflag -noemit -variableFilter=.* since it seems broken on HelloWorld Running command: translateModel(AES.Coursework.Typical_control_structures.Cascade_with_locks,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,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=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Cascade_with_locks") [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002248/0.002248, allocations: 73.92 kB / 475.3 MB, free: 5.172 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3635/0.3658, allocations: 59.59 MB / 0.5224 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.002895/0.3687, allocations: 1.901 MB / 0.5243 GB, free: 9.523 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004542/0.3691, allocations: 200.8 kB / 0.5244 GB, free: 9.379 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.3692, allocations: 6.156 kB / 0.5245 GB, free: 9.375 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001456/0.3694, allocations: 34.73 kB / 0.5245 GB, free: 9.348 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.763e-05/0.3695, allocations: 19.41 kB / 0.5245 GB, free: 9.332 MB / 382.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.0002662/0.3697, allocations: 95.78 kB / 0.5246 GB, free: 9.277 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002893/0.37, allocations: 243.4 kB / 0.5248 GB, free: 9.164 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001412/0.3702, allocations: 43.64 kB / 0.5249 GB, free: 9.145 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.258e-05/0.3702, allocations: 85.36 kB / 0.525 GB, free: 9.102 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001319/0.3704, allocations: 93.72 kB / 0.525 GB, free: 9.051 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.95e-05/0.3704, allocations: 18.34 kB / 0.5251 GB, free: 9.051 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.235e-05/0.3704, allocations: 19.97 kB / 0.5251 GB, free: 9.051 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.65e-05/0.3705, allocations: 53.53 kB / 0.5251 GB, free: 9.016 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.386e-05/0.3706, allocations: 91.62 kB / 0.5252 GB, free: 8.953 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002371/0.3708, allocations: 203.2 kB / 0.5254 GB, free: 8.859 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3708, allocations: 1.219 kB / 0.5254 GB, free: 8.859 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3708, allocations: 0 / 0.5254 GB, free: 8.859 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.3708, allocations: 0 / 0.5254 GB, free: 8.859 MB / 382.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.000775/0.3716, allocations: 445.6 kB / 0.5258 GB, free: 8.496 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.3716, allocations: 13.7 kB / 0.5258 GB, free: 8.492 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.413e-05/0.3717, allocations: 30.59 kB / 0.5259 GB, free: 8.477 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002833/0.372, allocations: 188.8 kB / 0.5261 GB, free: 8.301 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.799e-05/0.372, allocations: 18.47 kB / 0.5261 GB, free: 8.293 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.699e-05/0.3721, allocations: 25.45 kB / 0.5261 GB, free: 8.285 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004252/0.3725, allocations: 230.2 kB / 0.5263 GB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.204e-05/0.3725, allocations: 9.609 kB / 0.5263 GB, free: 8.145 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.289e-05/0.3725, allocations: 19.33 kB / 0.5263 GB, free: 8.129 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.3725, allocations: 4.562 kB / 0.5264 GB, free: 8.129 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003475/0.3729, allocations: 157.1 kB / 0.5265 GB, free: 8.082 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001654/0.3745, allocations: 0.9885 MB / 0.5275 GB, free: 7.344 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003365/0.3749, allocations: 154 kB / 0.5276 GB, free: 7.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.375, allocations: 67.34 kB / 0.5277 GB, free: 7.238 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.969e-05/0.3751, allocations: 3.969 kB / 0.5277 GB, free: 7.238 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.946e-05/0.3751, allocations: 36.45 kB / 0.5277 GB, free: 7.195 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.553e-06/0.3751, allocations: 0 / 0.5277 GB, free: 7.195 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005718/0.3756, allocations: 243.8 kB / 0.5279 GB, free: 7.086 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.663e-05/0.3757, allocations: 59 kB / 0.528 GB, free: 7.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001799/0.3759, allocations: 212.2 kB / 0.5282 GB, free: 6.883 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.903e-05/0.3759, allocations: 31.17 kB / 0.5282 GB, free: 6.848 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.986e-05/0.376, allocations: 162 kB / 0.5284 GB, free: 6.703 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.813e-05/0.376, allocations: 80.66 kB / 0.5285 GB, free: 6.641 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.361e-05/0.3761, allocations: 67.39 kB / 0.5285 GB, free: 6.602 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.745e-05/0.3762, allocations: 331.3 kB / 0.5288 GB, free: 6.281 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001719/0.3763, allocations: 81.39 kB / 0.5289 GB, free: 6.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002186/0.3766, allocations: 166.6 kB / 0.5291 GB, free: 6.113 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001352/0.3779, allocations: 471.6 kB / 0.5295 GB, free: 5.879 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.3779, allocations: 1.094 kB / 0.5295 GB, free: 5.879 MB / 382.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005221/0.3784, allocations: 312.6 kB / 0.5298 GB, free: 5.734 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.3785, allocations: 7.281 kB / 0.5298 GB, free: 5.734 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.3785, allocations: 2.281 kB / 0.5298 GB, free: 5.734 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.321e-05/0.3785, allocations: 8.469 kB / 0.5299 GB, free: 5.734 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000335/0.3788, allocations: 81.16 kB / 0.5299 GB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.282e-05/0.3788, allocations: 4.531 kB / 0.5299 GB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00018/0.379, allocations: 46.39 kB / 0.53 GB, free: 5.695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.492e-05/0.379, allocations: 14.88 kB / 0.53 GB, free: 5.691 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.0001674/0.3792, allocations: 146.8 kB / 0.5301 GB, free: 5.551 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.694e-05/0.3793, allocations: 27.27 kB / 0.5302 GB, free: 5.535 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004591/0.3797, allocations: 217.6 kB / 0.5304 GB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.3797, allocations: 6.344 kB / 0.5304 GB, free: 5.422 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3797, allocations: 0.7969 kB / 0.5304 GB, free: 5.422 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.3797, allocations: 0.5156 kB / 0.5304 GB, free: 5.422 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004614/0.3802, allocations: 288.2 kB / 0.5306 GB, free: 5.207 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.3802, allocations: 3.938 kB / 0.5307 GB, free: 5.203 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003387/0.3805, allocations: 57.73 kB / 0.5307 GB, free: 5.199 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/0.3805, allocations: 5.828 kB / 0.5307 GB, free: 5.195 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.17e-05/0.3806, allocations: 7.688 kB / 0.5307 GB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.3806, allocations: 1.156 kB / 0.5307 GB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3806, allocations: 4 kB / 0.5307 GB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005592/0.3811, allocations: 377 kB / 0.5311 GB, free: 4.961 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.431e-05/0.3812, allocations: 27.67 kB / 0.5311 GB, free: 4.941 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.2e-05/0.3812, allocations: 6 kB / 0.5311 GB, free: 4.938 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001579/0.3814, allocations: 12.75 kB / 0.5311 GB, free: 4.934 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.366e-05/0.3814, allocations: 24.36 kB / 0.5312 GB, free: 4.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.3815, allocations: 8.5 kB / 0.5312 GB, free: 4.926 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000105/0.3816, allocations: 142.6 kB / 0.5313 GB, free: 4.832 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3816, allocations: 0 / 0.5313 GB, free: 4.832 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003202/0.3819, allocations: 40.62 kB / 0.5313 GB, free: 4.824 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 9.57e-05/0.382, allocations: 114 kB / 0.5314 GB, free: 4.723 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004613/0.3824, allocations: 198.1 kB / 0.5316 GB, free: 4.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3824, allocations: 0 / 0.5316 GB, free: 4.66 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001774/0.3826, allocations: 96.8 kB / 0.5317 GB, free: 4.629 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003402/0.383, allocations: 28.83 kB / 0.5318 GB, free: 4.613 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009426/0.3839, allocations: 0.5644 MB / 0.5323 GB, free: 4.242 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002053/0.3841, allocations: 0.7451 MB / 0.533 GB, free: 3.547 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.127e-05/0.3842, allocations: 29.91 kB / 0.5331 GB, free: 3.535 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3842, allocations: 4 kB / 0.5331 GB, free: 3.531 MB / 382.1 MB Notification: Performance of Templates: time 0.005776/0.39, allocations: 2.698 MB / 0.5357 GB, free: 3.305 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.makefile [Timeout 660] (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_STDOUT,LOG_ASSERT,LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.630798154976219] Failed to read output from testmodel.py, exit status != 0: 0.39981171884573996 0.413622949 0.039514555 Calling exit ...