Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Cascade_basic.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.0007801/0.0007801, allocations: 115 kB / 19.71 MB, free: 0.5 MB / 13.93 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.0008289/0.0008289, allocations: 200.1 kB / 23.01 MB, free: 3.105 MB / 13.93 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 0.9356/0.9356, allocations: 230.6 MB / 256.8 MB, free: 3.48 MB / 202.7 MB " [Timeout remaining time 179] 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.06511/0.06511, allocations: 24.52 MB / 337.7 MB, free: 7.191 MB / 266.7 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: "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Cascade_basic,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_basic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Cascade_basic,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_basic",fmuType="me",version="2.0",platforms={"static"}) [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.0009562/0.0009562, allocations: 75.89 kB / 475.5 MB, free: 1.309 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2838, allocations: 59.7 MB / 0.5226 GB, free: 10.13 MB / 378.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_basic): time 0.002088/0.2859, allocations: 1.9 MB / 0.5245 GB, free: 8.797 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003543/0.2862, allocations: 198.5 kB / 0.5247 GB, free: 8.656 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.147e-05/0.2863, allocations: 9.344 kB / 0.5247 GB, free: 8.648 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000111/0.2864, allocations: 34.47 kB / 0.5247 GB, free: 8.621 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.04e-05/0.2865, allocations: 22.97 kB / 0.5247 GB, free: 8.602 MB / 378.7 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.0002278/0.2867, allocations: 96.88 kB / 0.5248 GB, free: 8.547 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000221/0.2869, allocations: 239.2 kB / 0.5251 GB, free: 8.434 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.287, allocations: 41.66 kB / 0.5251 GB, free: 8.418 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.696e-05/0.2871, allocations: 82.09 kB / 0.5252 GB, free: 8.379 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.71e-05/0.2872, allocations: 99.97 kB / 0.5253 GB, free: 8.32 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.256e-05/0.2873, allocations: 18.78 kB / 0.5253 GB, free: 8.32 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.355e-05/0.2873, allocations: 19.69 kB / 0.5253 GB, free: 8.32 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.586e-05/0.2873, allocations: 48.55 kB / 0.5253 GB, free: 8.289 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.873e-05/0.2874, allocations: 103.4 kB / 0.5254 GB, free: 8.215 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000188/0.2876, allocations: 190.1 kB / 0.5256 GB, free: 8.129 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2876, allocations: 1.156 kB / 0.5256 GB, free: 8.129 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2876, allocations: 0 / 0.5256 GB, free: 8.129 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.2876, allocations: 0 / 0.5256 GB, free: 8.129 MB / 378.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.0005298/0.2881, allocations: 452.7 kB / 0.5261 GB, free: 7.762 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.2881, allocations: 10.89 kB / 0.5261 GB, free: 7.762 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.494e-05/0.2882, allocations: 52.88 kB / 0.5261 GB, free: 7.711 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.767e-05/0.2882, allocations: 26.36 kB / 0.5261 GB, free: 7.699 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002082/0.2884, allocations: 184.1 kB / 0.5263 GB, free: 7.527 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.85e-05/0.2885, allocations: 18.91 kB / 0.5263 GB, free: 7.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.467e-05/0.2885, allocations: 25.09 kB / 0.5264 GB, free: 7.512 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004841/0.289, allocations: 236.6 kB / 0.5266 GB, free: 7.371 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.289, allocations: 4.938 kB / 0.5266 GB, free: 7.367 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.761e-05/0.289, allocations: 9.938 kB / 0.5266 GB, free: 7.359 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/0.289, allocations: 5.562 kB / 0.5266 GB, free: 7.359 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003036/0.2893, allocations: 152.4 kB / 0.5268 GB, free: 7.312 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001265/0.2906, allocations: 0.9909 MB / 0.5277 GB, free: 6.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002925/0.2909, allocations: 150.7 kB / 0.5279 GB, free: 6.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001034/0.291, allocations: 66.66 kB / 0.5279 GB, free: 6.469 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.534e-05/0.291, allocations: 2.75 kB / 0.5279 GB, free: 6.469 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.807e-05/0.291, allocations: 40.38 kB / 0.528 GB, free: 6.422 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 1.893e-06/0.291, allocations: 0.9688 kB / 0.528 GB, free: 6.422 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004695/0.2915, allocations: 237.9 kB / 0.5282 GB, free: 6.312 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.823e-05/0.2915, allocations: 54.52 kB / 0.5282 GB, free: 6.25 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001853/0.2917, allocations: 212 kB / 0.5285 GB, free: 6.113 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.409e-05/0.2917, allocations: 30.83 kB / 0.5285 GB, free: 6.078 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.468e-05/0.2918, allocations: 167 kB / 0.5286 GB, free: 5.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.215e-05/0.2919, allocations: 80.27 kB / 0.5287 GB, free: 5.867 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001004/0.292, allocations: 68.05 kB / 0.5288 GB, free: 5.828 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.404e-05/0.292, allocations: 335.3 kB / 0.5291 GB, free: 5.504 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001484/0.2922, allocations: 75.31 kB / 0.5292 GB, free: 5.477 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001385/0.2923, allocations: 167.9 kB / 0.5293 GB, free: 5.336 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008505/0.2932, allocations: 466.9 kB / 0.5298 GB, free: 5.098 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.2932, allocations: 0.8125 kB / 0.5298 GB, free: 5.098 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000364/0.2935, allocations: 306.8 kB / 0.5301 GB, free: 4.957 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.743e-05/0.2935, allocations: 6.031 kB / 0.5301 GB, free: 4.957 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.2935, allocations: 3.844 kB / 0.5301 GB, free: 4.957 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.2936, allocations: 4.781 kB / 0.5301 GB, free: 4.957 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000202/0.2938, allocations: 81.83 kB / 0.5302 GB, free: 4.945 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.086e-05/0.2938, allocations: 6.141 kB / 0.5302 GB, free: 4.945 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/0.2939, allocations: 42.03 kB / 0.5302 GB, free: 4.918 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.99e-05/0.2939, allocations: 15.94 kB / 0.5302 GB, free: 4.914 MB / 378.7 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.0001949/0.2941, allocations: 144.7 kB / 0.5304 GB, free: 4.777 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.304e-05/0.2941, allocations: 25.45 kB / 0.5304 GB, free: 4.762 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000354/0.2945, allocations: 221.3 kB / 0.5306 GB, free: 4.645 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.2945, allocations: 2.75 kB / 0.5306 GB, free: 4.645 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.2945, allocations: 1.344 kB / 0.5306 GB, free: 4.645 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.942e-06/0.2945, allocations: 1.922 kB / 0.5306 GB, free: 4.645 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003354/0.2948, allocations: 290 kB / 0.5309 GB, free: 4.426 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.2948, allocations: 1.188 kB / 0.5309 GB, free: 4.426 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000187/0.295, allocations: 52.34 kB / 0.5309 GB, free: 4.426 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.295, allocations: 5.781 kB / 0.5309 GB, free: 4.422 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.794e-05/0.2951, allocations: 6.953 kB / 0.5309 GB, free: 4.418 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.2951, allocations: 5.031 kB / 0.5309 GB, free: 4.414 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2951, allocations: 1.094 kB / 0.531 GB, free: 4.414 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004092/0.2955, allocations: 376.5 kB / 0.5313 GB, free: 4.184 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.156e-05/0.2955, allocations: 27.58 kB / 0.5313 GB, free: 4.164 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.14e-05/0.2955, allocations: 2.188 kB / 0.5313 GB, free: 4.164 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.008e-05/0.2956, allocations: 11.91 kB / 0.5313 GB, free: 4.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.632e-05/0.2957, allocations: 26.45 kB / 0.5314 GB, free: 4.152 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.2957, allocations: 9.328 kB / 0.5314 GB, free: 4.148 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.329e-05/0.2958, allocations: 139.9 kB / 0.5315 GB, free: 4.059 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2958, allocations: 0 / 0.5315 GB, free: 4.059 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002454/0.296, allocations: 40.16 kB / 0.5316 GB, free: 4.051 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_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.0005149/0.2965, allocations: 0.924 MB / 0.5325 GB, free: 3.277 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003523/0.2969, allocations: 195.4 kB / 0.5326 GB, free: 3.211 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2969, allocations: 1.062 kB / 0.5326 GB, free: 3.211 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001245/0.297, allocations: 91.58 kB / 0.5327 GB, free: 3.184 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002562/0.2973, allocations: 29.64 kB / 0.5328 GB, free: 3.168 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002233/0.2995, allocations: 2.632 MB / 0.5353 GB, free: 1.266 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001569/0.2997, allocations: 0.7489 MB / 0.5361 GB, free: 0.5664 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001084/0.2998, allocations: 28.61 kB / 0.5361 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.2999, allocations: 72.28 kB / 0.5362 GB, free: 0.5117 MB / 378.7 MB Notification: Performance of SimCode: time 6.21e-07/0.2999, allocations: 0 / 0.5362 GB, free: 0.5117 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02155/0.3214, allocations: 4.949 MB / 0.541 GB, free: 15.12 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.499/6.821, allocations: 6.344 kB / 0.541 GB, free: 15.11 MB / 394.7 MB " [Timeout remaining time 653] (rm -f AES_AES.Coursework.Typical_control_structures.Cascade_basic.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Cascade_basic.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Cascade_basic.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Cascade_basic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Cascade_basic_fmu --startTime=0 --stopTime=200 --stepSize=0.4 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Cascade_basic.fmu > AES_AES.Coursework.Typical_control_structures.Cascade_basic.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.764560601906851] Failed to read output from testmodel.py, exit status != 0: 6.899548479123041 6.90926299 6.620035891 Calling exit ...