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.001769/0.001769, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.001653/0.001653, allocations: 219.9 kB / 22.26 MB, free: 5.125 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.495/1.495, allocations: 230.6 MB / 256 MB, free: 7.973 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.1113/0.1113, allocations: 24.12 MB / 336.6 MB, free: 11.43 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.FF_compensation,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation",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.002244/0.002244, allocations: 67.91 kB / 473.3 MB, free: 6.387 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3579/0.3602, allocations: 59.61 MB / 0.5204 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation): time 0.002866/0.363, allocations: 1.924 MB / 0.5223 GB, free: 8.742 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001117/0.3641, allocations: 0.6436 MB / 0.5229 GB, free: 8.293 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.3643, allocations: 6.031 kB / 0.5229 GB, free: 8.289 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002965/0.3645, allocations: 50.61 kB / 0.523 GB, free: 8.262 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001731/0.3647, allocations: 50.53 kB / 0.523 GB, free: 8.234 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.0003/0.365, allocations: 127.3 kB / 0.5231 GB, free: 8.172 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000449/0.3655, allocations: 356.2 kB / 0.5235 GB, free: 8.027 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.3656, allocations: 45.91 kB / 0.5235 GB, free: 8.008 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000184/0.3658, allocations: 128.8 kB / 0.5237 GB, free: 7.957 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002128/0.366, allocations: 137.6 kB / 0.5238 GB, free: 7.898 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.806e-05/0.366, allocations: 18.06 kB / 0.5238 GB, free: 7.898 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.446e-05/0.3661, allocations: 21.38 kB / 0.5238 GB, free: 7.895 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.993e-05/0.3662, allocations: 60.48 kB / 0.5239 GB, free: 7.863 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.228e-05/0.3662, allocations: 94.3 kB / 0.524 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002568/0.3665, allocations: 204.9 kB / 0.5242 GB, free: 7.707 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.3665, allocations: 1.812 kB / 0.5242 GB, free: 7.707 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3665, allocations: 0 / 0.5242 GB, free: 7.707 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.3665, allocations: 4 kB / 0.5242 GB, free: 7.703 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.001252/0.3678, allocations: 0.5108 MB / 0.5247 GB, free: 7.34 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.3678, allocations: 10.52 kB / 0.5247 GB, free: 7.34 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.364e-05/0.3678, allocations: 51.73 kB / 0.5247 GB, free: 7.289 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.153e-05/0.3679, allocations: 24.92 kB / 0.5248 GB, free: 7.277 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005362/0.3684, allocations: 261.9 kB / 0.525 GB, free: 7.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.073e-05/0.3685, allocations: 15.91 kB / 0.525 GB, free: 7.082 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.348e-05/0.3685, allocations: 19.56 kB / 0.525 GB, free: 7.074 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003599/0.3689, allocations: 198.4 kB / 0.5252 GB, free: 6.965 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.3689, allocations: 0 / 0.5252 GB, free: 6.965 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.009e-05/0.3689, allocations: 6.312 kB / 0.5252 GB, free: 6.961 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.3689, allocations: 3.781 kB / 0.5252 GB, free: 6.961 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003557/0.3692, allocations: 162.4 kB / 0.5254 GB, free: 6.906 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009642/0.3702, allocations: 0.6997 MB / 0.5261 GB, free: 6.383 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004794/0.3707, allocations: 212.8 kB / 0.5263 GB, free: 6.301 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001518/0.3708, allocations: 82.78 kB / 0.5264 GB, free: 6.266 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.904e-05/0.3709, allocations: 9.75 kB / 0.5264 GB, free: 6.258 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.348e-05/0.3709, allocations: 36.56 kB / 0.5264 GB, free: 6.215 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.884e-06/0.3709, allocations: 0 / 0.5264 GB, free: 6.215 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005546/0.3714, allocations: 264.8 kB / 0.5267 GB, free: 6.105 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.076e-05/0.3715, allocations: 52.84 kB / 0.5267 GB, free: 6.043 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004638/0.3719, allocations: 295 kB / 0.527 GB, free: 5.895 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.68e-05/0.3719, allocations: 38.86 kB / 0.527 GB, free: 5.852 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.439e-05/0.372, allocations: 140.7 kB / 0.5272 GB, free: 5.723 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.562e-05/0.3721, allocations: 78.59 kB / 0.5272 GB, free: 5.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.202e-05/0.3721, allocations: 54.89 kB / 0.5273 GB, free: 5.625 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.113e-05/0.3722, allocations: 336.1 kB / 0.5276 GB, free: 5.301 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001523/0.3723, allocations: 73.48 kB / 0.5277 GB, free: 5.273 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001692/0.3725, allocations: 127.8 kB / 0.5278 GB, free: 5.188 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001323/0.3738, allocations: 455 kB / 0.5282 GB, free: 5.012 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.3738, allocations: 1.312 kB / 0.5282 GB, free: 5.012 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004302/0.3743, allocations: 288.4 kB / 0.5285 GB, free: 4.879 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.3743, allocations: 7.281 kB / 0.5285 GB, free: 4.879 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.3743, allocations: 5.531 kB / 0.5285 GB, free: 4.875 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.879e-05/0.3743, allocations: 2.5 kB / 0.5285 GB, free: 4.875 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002901/0.3746, allocations: 61.41 kB / 0.5286 GB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.3746, allocations: 4.344 kB / 0.5286 GB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002811/0.3749, allocations: 53.66 kB / 0.5286 GB, free: 4.848 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.3749, allocations: 19.55 kB / 0.5287 GB, free: 4.836 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.0001627/0.3751, allocations: 149.1 kB / 0.5288 GB, free: 4.699 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.959e-05/0.3751, allocations: 26.02 kB / 0.5288 GB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004463/0.3756, allocations: 237.2 kB / 0.529 GB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.3756, allocations: 3.406 kB / 0.5291 GB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.3756, allocations: 0 / 0.5291 GB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/0.3756, allocations: 1.5 kB / 0.5291 GB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003092/0.3759, allocations: 271 kB / 0.5293 GB, free: 4.359 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.3759, allocations: 4.75 kB / 0.5293 GB, free: 4.355 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000276/0.3762, allocations: 45.47 kB / 0.5294 GB, free: 4.352 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.3762, allocations: 1.125 kB / 0.5294 GB, free: 4.352 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.276e-05/0.3762, allocations: 7.766 kB / 0.5294 GB, free: 4.348 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.3762, allocations: 1.188 kB / 0.5294 GB, free: 4.348 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.3762, allocations: 0 / 0.5294 GB, free: 4.348 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005467/0.3768, allocations: 408.8 kB / 0.5298 GB, free: 4.109 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.056e-05/0.3768, allocations: 26.48 kB / 0.5298 GB, free: 4.094 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.748e-05/0.3768, allocations: 6.984 kB / 0.5298 GB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002733/0.3771, allocations: 26.36 kB / 0.5298 GB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.096e-05/0.3772, allocations: 16.48 kB / 0.5298 GB, free: 4.086 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.3772, allocations: 4.797 kB / 0.5298 GB, free: 4.086 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003976/0.3776, allocations: 224.2 kB / 0.53 GB, free: 3.977 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3776, allocations: 1.656 kB / 0.5301 GB, free: 3.977 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003029/0.3779, allocations: 42.56 kB / 0.5301 GB, free: 3.965 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.0006699/0.3786, allocations: 0.946 MB / 0.531 GB, free: 3.191 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004125/0.379, allocations: 186 kB / 0.5312 GB, free: 3.137 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.379, allocations: 0 / 0.5312 GB, free: 3.137 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001602/0.3791, allocations: 92.78 kB / 0.5313 GB, free: 3.109 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003586/0.3795, allocations: 32.2 kB / 0.5313 GB, free: 3.098 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003744/0.3832, allocations: 2.752 MB / 0.534 GB, free: 1.293 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002106/0.3834, allocations: 0.7602 MB / 0.5347 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001436/0.3836, allocations: 40.19 kB / 0.5348 GB, free: 0.582 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001283/0.3837, allocations: 75.48 kB / 0.5349 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3837, allocations: 1.125 kB / 0.5349 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03385/0.4176, allocations: 4.984 MB / 0.5397 GB, free: 15.58 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.93, allocations: 7.641 kB / 0.5397 GB, free: 15.58 MB / 398.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.691591406008229] Failed to read output from testmodel.py, exit status != 0: 12.042496400885284 12.069091376 11.697737378 Calling exit ...