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: "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Cascade_with_locks,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_with_locks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Cascade_with_locks,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_with_locks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001267/0.001268, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.00146/0.001461, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 223.3 MB / 240 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2299/0.2299, allocations: 22.35 MB / 313.4 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003251/0.0003255, allocations: 8 kB / 382 MB, free: 10.46 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2949/0.2953, allocations: 55.97 MB / 438 MB, free: 39.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.001649/0.297, allocations: 1.515 MB / 439.5 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004045/0.2974, allocations: 200.1 kB / 439.7 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.701e-05/0.2975, allocations: 0 / 439.7 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001046/0.2976, allocations: 22.95 kB / 439.7 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.835e-05/0.2977, allocations: 11.86 kB / 439.8 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001769/0.2979, allocations: 66.92 kB / 439.8 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001998/0.2981, allocations: 204.3 kB / 440 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000119/0.2982, allocations: 43.94 kB / 440.1 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.13e-05/0.2983, allocations: 64.95 kB / 440.1 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.843e-05/0.2984, allocations: 86.8 kB / 440.2 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.415e-05/0.2984, allocations: 8.062 kB / 440.2 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.227e-05/0.2984, allocations: 8.188 kB / 440.2 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.941e-05/0.2985, allocations: 41.09 kB / 440.3 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.034e-05/0.2985, allocations: 57.2 kB / 440.3 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001178/0.2986, allocations: 127.9 kB / 440.4 MB, free: 37.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.2986, allocations: 2.719 kB / 440.4 MB, free: 37.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.2986, allocations: 0 / 440.4 MB, free: 37.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.2987, allocations: 0 / 440.4 MB, free: 37.51 MB / 350.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.0006084/0.2993, allocations: 484.7 kB / 440.9 MB, free: 37.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.2993, allocations: 8.469 kB / 440.9 MB, free: 37.08 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.833e-05/0.2994, allocations: 57.22 kB / 441 MB, free: 37.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.147e-05/0.2994, allocations: 22.5 kB / 441 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002041/0.2996, allocations: 237.5 kB / 441.2 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.255e-05/0.2997, allocations: 22.66 kB / 441.3 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.398e-05/0.2997, allocations: 23.5 kB / 441.3 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003412/0.3001, allocations: 237.7 kB / 441.5 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.3001, allocations: 3.953 kB / 441.5 MB, free: 36.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.937e-05/0.3001, allocations: 14.97 kB / 441.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.3001, allocations: 6.156 kB / 441.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002744/0.3004, allocations: 162.3 kB / 441.7 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001292/0.3017, allocations: 1.038 MB / 442.7 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002556/0.302, allocations: 156.3 kB / 442.9 MB, free: 35.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.3021, allocations: 77.22 kB / 443 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.794e-05/0.3021, allocations: 192 / 443 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.956e-05/0.3021, allocations: 37.72 kB / 443 MB, free: 35.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.112e-06/0.3022, allocations: 4 kB / 443 MB, free: 35.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.0004605/0.3026, allocations: 237 kB / 443.2 MB, free: 35.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.229e-05/0.3027, allocations: 51.41 kB / 443.3 MB, free: 35.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001455/0.3028, allocations: 215.7 kB / 443.5 MB, free: 35.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/0.3028, allocations: 32.7 kB / 443.5 MB, free: 35.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.58e-05/0.3029, allocations: 154.5 kB / 443.7 MB, free: 35.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.115e-05/0.303, allocations: 78.06 kB / 443.8 MB, free: 35.08 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.221e-05/0.303, allocations: 8 kB / 443.8 MB, free: 35.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.71e-05/0.303, allocations: 335.2 kB / 444.1 MB, free: 34.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001361/0.3032, allocations: 73.11 kB / 444.2 MB, free: 34.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001695/0.3033, allocations: 169.1 kB / 444.3 MB, free: 34.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001823/0.3035, allocations: 95.16 kB / 444.4 MB, free: 34.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.3036, allocations: 3.953 kB / 444.4 MB, free: 34.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0004304/0.304, allocations: 303.3 kB / 444.7 MB, free: 34.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.648e-05/0.304, allocations: 8.25 kB / 444.7 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.304, allocations: 7.906 kB / 444.7 MB, free: 34.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.304, allocations: 3.594 kB / 444.7 MB, free: 34.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002995/0.3044, allocations: 90.88 kB / 444.8 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.3044, allocations: 3.094 kB / 444.8 MB, free: 34.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000151/0.3045, allocations: 45.62 kB / 444.9 MB, free: 34.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.923e-05/0.3046, allocations: 15.03 kB / 444.9 MB, free: 34.36 MB / 350.1 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_I.HIsat,PI_I.LOsat,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.0001838/0.3047, allocations: 149.1 kB / 445 MB, free: 34.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.976e-05/0.3048, allocations: 25.41 kB / 445.1 MB, free: 34.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000407/0.3052, allocations: 232.6 kB / 445.3 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.3052, allocations: 3.531 kB / 445.3 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.3052, allocations: 0 / 445.3 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.3052, allocations: 0 / 445.3 MB, free: 34.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003985/0.3056, allocations: 308.9 kB / 445.6 MB, free: 33.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.3057, allocations: 4 kB / 445.6 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003026/0.306, allocations: 61.67 kB / 445.7 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.306, allocations: 0 / 445.7 MB, free: 33.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.007e-05/0.306, allocations: 10.97 kB / 445.7 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.306, allocations: 0 / 445.7 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.306, allocations: 2.906 kB / 445.7 MB, free: 33.83 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004859/0.3065, allocations: 371.4 kB / 446 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.206e-05/0.3066, allocations: 102.4 kB / 446.1 MB, free: 33.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.225e-05/0.3066, allocations: 10.73 kB / 446.1 MB, free: 33.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000144/0.3068, allocations: 17.53 kB / 446.2 MB, free: 33.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.681e-05/0.3068, allocations: 25 kB / 446.2 MB, free: 33.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.216e-05/0.3068, allocations: 9.453 kB / 446.2 MB, free: 33.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.211e-05/0.3069, allocations: 141.3 kB / 446.3 MB, free: 33.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3069, allocations: 3.031 kB / 446.3 MB, free: 33.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003007/0.3072, allocations: 42.81 kB / 446.4 MB, free: 33.37 MB / 350.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 (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.0006782/0.3079, allocations: 0.9113 MB / 447.3 MB, free: 32.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003836/0.3083, allocations: 211.4 kB / 447.5 MB, free: 32.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3083, allocations: 0 / 447.5 MB, free: 32.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000146/0.3085, allocations: 93.44 kB / 447.6 MB, free: 32.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003374/0.3088, allocations: 31.8 kB / 447.6 MB, free: 32.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001885/0.3107, allocations: 1.509 MB / 449.1 MB, free: 31.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001651/0.3109, allocations: 0.7491 MB / 449.9 MB, free: 30.89 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001218/0.311, allocations: 29.88 kB / 449.9 MB, free: 30.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.3112, allocations: 71.44 kB / 450 MB, free: 30.84 MB / 350.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3112, allocations: 384 / 450 MB, free: 30.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0134/0.3246, allocations: 4.071 MB / 454 MB, free: 30.57 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001258/0.3247, allocations: 187 kB / 454.2 MB, free: 30.33 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.866/2.191, allocations: 4 kB / 454.2 MB, free: 30.32 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Cascade_with_locks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Cascade_with_locks.fmu > AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe 2>&1) Environment - environmentSimulation: