Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.FF_compensation.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.001766/0.001766, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001636/0.001636, allocations: 215.1 kB / 23.04 MB, free: 5.074 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.48/1.48, allocations: 230.6 MB / 256.8 MB, free: 7.98 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.1085/0.1085, allocations: 22.93 MB / 336.2 MB, free: 12.57 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) Running command: "" <> buildModelFMU(AES.Coursework.Typical_control_structures.FF_compensation,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.FF_compensation,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation",fmuType="cs",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.001955/0.001955, allocations: 63.89 kB / 472.3 MB, free: 7.977 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3347, allocations: 59.28 MB / 0.5191 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation): time 0.002761/0.3375, allocations: 1.945 MB / 0.521 GB, free: 9.344 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009768/0.3384, allocations: 0.6303 MB / 0.5216 GB, free: 8.91 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.069e-05/0.3385, allocations: 9.375 kB / 0.5216 GB, free: 8.902 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003232/0.3389, allocations: 57.91 kB / 0.5217 GB, free: 8.867 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001842/0.339, allocations: 46.66 kB / 0.5217 GB, free: 8.844 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. Notification: Performance of NFTyping.typeClassSections: time 0.0003257/0.3394, allocations: 126.5 kB / 0.5218 GB, free: 8.781 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005609/0.3399, allocations: 352.6 kB / 0.5222 GB, free: 8.641 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001492/0.3401, allocations: 39.98 kB / 0.5222 GB, free: 8.629 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002251/0.3403, allocations: 134.7 kB / 0.5223 GB, free: 8.574 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002744/0.3406, allocations: 136.4 kB / 0.5225 GB, free: 8.516 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.929e-05/0.3406, allocations: 17.88 kB / 0.5225 GB, free: 8.516 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.216e-05/0.3407, allocations: 19.12 kB / 0.5225 GB, free: 8.516 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001069/0.3408, allocations: 64.11 kB / 0.5226 GB, free: 8.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.3409, allocations: 98.09 kB / 0.5227 GB, free: 8.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003475/0.3412, allocations: 196.9 kB / 0.5228 GB, free: 8.328 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/0.3412, allocations: 4.75 kB / 0.5229 GB, free: 8.324 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3412, allocations: 5.094 kB / 0.5229 GB, free: 8.32 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.798e-06/0.3413, allocations: 0 / 0.5229 GB, free: 8.32 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.001425/0.3427, allocations: 0.5174 MB / 0.5234 GB, free: 7.953 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.784e-05/0.3427, allocations: 9.922 kB / 0.5234 GB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.376e-05/0.3428, allocations: 8.266 kB / 0.5234 GB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.122e-05/0.3428, allocations: 51.53 kB / 0.5234 GB, free: 7.898 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.485e-05/0.3429, allocations: 24.42 kB / 0.5235 GB, free: 7.887 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006302/0.3435, allocations: 262.8 kB / 0.5237 GB, free: 7.699 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.779e-05/0.3436, allocations: 14.91 kB / 0.5237 GB, free: 7.695 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.126e-05/0.3436, allocations: 20.25 kB / 0.5237 GB, free: 7.688 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000414/0.344, allocations: 193.7 kB / 0.5239 GB, free: 7.582 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.3441, allocations: 5.062 kB / 0.5239 GB, free: 7.578 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.079e-05/0.3441, allocations: 8.906 kB / 0.5239 GB, free: 7.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.3441, allocations: 4.312 kB / 0.5239 GB, free: 7.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000345/0.3444, allocations: 161.5 kB / 0.5241 GB, free: 7.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001057/0.3455, allocations: 0.7032 MB / 0.5248 GB, free: 6.992 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005084/0.346, allocations: 207.9 kB / 0.525 GB, free: 6.914 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001516/0.3461, allocations: 89.23 kB / 0.5251 GB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.071e-05/0.3462, allocations: 2.656 kB / 0.5251 GB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.855e-05/0.3462, allocations: 35.94 kB / 0.5251 GB, free: 6.828 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.383e-06/0.3462, allocations: 0 / 0.5251 GB, free: 6.828 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005471/0.3467, allocations: 261 kB / 0.5254 GB, free: 6.719 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.605e-05/0.3468, allocations: 55.62 kB / 0.5254 GB, free: 6.656 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005105/0.3473, allocations: 297.2 kB / 0.5257 GB, free: 6.504 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.069e-05/0.3473, allocations: 26.95 kB / 0.5257 GB, free: 6.473 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.806e-05/0.3474, allocations: 147 kB / 0.5259 GB, free: 6.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.937e-05/0.3475, allocations: 77.03 kB / 0.5259 GB, free: 6.281 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.909e-05/0.3475, allocations: 51.58 kB / 0.526 GB, free: 6.246 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.891e-05/0.3476, allocations: 335.9 kB / 0.5263 GB, free: 5.922 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001547/0.3478, allocations: 78.73 kB / 0.5264 GB, free: 5.891 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001848/0.348, allocations: 127.9 kB / 0.5265 GB, free: 5.805 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001523/0.3495, allocations: 453.8 kB / 0.5269 GB, free: 5.625 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.3495, allocations: 1.469 kB / 0.5269 GB, free: 5.625 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005049/0.35, allocations: 284.7 kB / 0.5272 GB, free: 5.496 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.35, allocations: 5.438 kB / 0.5272 GB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.35, allocations: 2.828 kB / 0.5272 GB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.164e-05/0.3501, allocations: 2.312 kB / 0.5272 GB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002992/0.3504, allocations: 64.97 kB / 0.5273 GB, free: 5.488 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.3504, allocations: 3.312 kB / 0.5273 GB, free: 5.488 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002733/0.3506, allocations: 59.53 kB / 0.5273 GB, free: 5.461 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.784e-05/0.3507, allocations: 7.406 kB / 0.5273 GB, free: 5.461 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: M.y:VARIABLE(flow=false start = M.y_start fixed = true ) \"Connector of Real output signal\" type: Real PI.xfb:VARIABLE(fixed = true ) type: Real P.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (PI.LOsat,PI.HIsat,PI.iNoDec,PI.iNoInc,PI.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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.0001613/0.3508, allocations: 156.8 kB / 0.5275 GB, free: 5.316 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.763e-05/0.3509, allocations: 30.17 kB / 0.5275 GB, free: 5.297 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004061/0.3513, allocations: 236.5 kB / 0.5277 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.3513, allocations: 8.375 kB / 0.5277 GB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.3513, allocations: 1.938 kB / 0.5278 GB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.3513, allocations: 0 / 0.5278 GB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002728/0.3516, allocations: 269 kB / 0.528 GB, free: 4.969 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.3516, allocations: 5.344 kB / 0.528 GB, free: 4.965 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002629/0.3518, allocations: 40.34 kB / 0.5281 GB, free: 4.965 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/0.3518, allocations: 1.688 kB / 0.5281 GB, free: 4.965 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.005e-05/0.3518, allocations: 6.5 kB / 0.5281 GB, free: 4.961 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.564e-06/0.3518, allocations: 2.438 kB / 0.5281 GB, free: 4.961 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3519, allocations: 0 / 0.5281 GB, free: 4.961 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005423/0.3524, allocations: 410.6 kB / 0.5285 GB, free: 4.723 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.529e-05/0.3524, allocations: 26.92 kB / 0.5285 GB, free: 4.707 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.592e-05/0.3525, allocations: 6.172 kB / 0.5285 GB, free: 4.703 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002669/0.3527, allocations: 25.92 kB / 0.5285 GB, free: 4.703 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.701e-05/0.3528, allocations: 17.69 kB / 0.5285 GB, free: 4.699 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.3528, allocations: 9.281 kB / 0.5285 GB, free: 4.695 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004078/0.3532, allocations: 219.9 kB / 0.5287 GB, free: 4.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3532, allocations: 0 / 0.5287 GB, free: 4.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002938/0.3535, allocations: 43.22 kB / 0.5288 GB, free: 4.578 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (M.y,C.x_scaled[1],P.x_scaled[1],PI.xfb,PI.xBias,PI.u,PI.csfil) * Number of discrete variables: 2 (PI.HIsat,PI.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * 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.0006805/0.3542, allocations: 0.942 MB / 0.5297 GB, free: 3.812 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000387/0.3546, allocations: 184.8 kB / 0.5299 GB, free: 3.758 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.3546, allocations: 1.344 kB / 0.5299 GB, free: 3.758 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001596/0.3547, allocations: 87.17 kB / 0.53 GB, free: 3.734 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003481/0.3551, allocations: 42.08 kB / 0.53 GB, free: 3.715 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003604/0.3587, allocations: 2.75 MB / 0.5327 GB, free: 1.914 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001909/0.3589, allocations: 0.7561 MB / 0.5334 GB, free: 1.215 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001371/0.359, allocations: 36.98 kB / 0.5335 GB, free: 1.211 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.3592, allocations: 71.06 kB / 0.5335 GB, free: 1.16 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3592, allocations: 0.5625 kB / 0.5335 GB, free: 1.16 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02673/0.3859, allocations: 5.033 MB / 0.5384 GB, free: 368 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.37/11.76, allocations: 5.625 kB / 0.5385 GB, free: 368 kB / 382.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.FF_compensation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_FF_compensation_fmu --startTime=0 --stopTime=100 --stepSize=0.2 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_FF_compensation.fmu > AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.578141222998966] Failed to read output from testmodel.py, exit status != 0: 11.9366794959642 11.960088201 11.615324095 Calling exit ...