Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.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.001653/0.001653, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.002072/0.002072, allocations: 216.8 kB / 23.04 MB, free: 5.078 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.598/1.598, allocations: 230.6 MB / 256.8 MB, free: 8.012 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.1454/0.1454, allocations: 22.93 MB / 336.2 MB, free: 12.72 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.Tuning_brushup.IMC_scheme_1dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_1dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof",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.003192/0.003192, allocations: 67.88 kB / 472.3 MB, free: 8.051 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3492/0.3524, allocations: 59.29 MB / 0.5191 GB, free: 10.63 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_1dof): time 0.002358/0.3547, allocations: 1.081 MB / 0.5202 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00174/0.3565, allocations: 1.306 MB / 0.5214 GB, free: 9.098 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.613e-05/0.3565, allocations: 5.812 kB / 0.5214 GB, free: 9.094 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003461/0.3569, allocations: 55.91 kB / 0.5215 GB, free: 9.066 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002029/0.3571, allocations: 65.89 kB / 0.5216 GB, free: 9.035 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003266/0.3574, allocations: 129 kB / 0.5217 GB, free: 8.973 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005077/0.3579, allocations: 365.7 kB / 0.522 GB, free: 8.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001254/0.3581, allocations: 34.47 kB / 0.5221 GB, free: 8.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002044/0.3583, allocations: 134.5 kB / 0.5222 GB, free: 8.773 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002642/0.3585, allocations: 166.5 kB / 0.5223 GB, free: 8.719 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.417e-05/0.3586, allocations: 19.44 kB / 0.5224 GB, free: 8.719 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.58e-05/0.3586, allocations: 22.72 kB / 0.5224 GB, free: 8.715 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001279/0.3587, allocations: 95.25 kB / 0.5225 GB, free: 8.676 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.813e-05/0.3588, allocations: 95.34 kB / 0.5226 GB, free: 8.609 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002822/0.3591, allocations: 231.3 kB / 0.5228 GB, free: 8.516 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.3591, allocations: 0.8906 kB / 0.5228 GB, free: 8.516 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3591, allocations: 1.062 kB / 0.5228 GB, free: 8.516 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.723e-06/0.3591, allocations: 0 / 0.5228 GB, free: 8.516 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001666/0.3608, allocations: 0.593 MB / 0.5234 GB, free: 8.141 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.206e-05/0.3608, allocations: 17.89 kB / 0.5234 GB, free: 8.133 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.513e-05/0.3609, allocations: 3.531 kB / 0.5234 GB, free: 8.133 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.423e-05/0.3609, allocations: 46.97 kB / 0.5234 GB, free: 8.086 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.335e-05/0.361, allocations: 28.28 kB / 0.5235 GB, free: 8.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008282/0.3618, allocations: 301.2 kB / 0.5237 GB, free: 7.887 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/0.3618, allocations: 13.84 kB / 0.5238 GB, free: 7.879 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.07e-05/0.3619, allocations: 17.2 kB / 0.5238 GB, free: 7.871 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003132/0.3622, allocations: 172.5 kB / 0.5239 GB, free: 7.793 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.3622, allocations: 0.9062 kB / 0.5239 GB, free: 7.793 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.837e-05/0.3622, allocations: 4.719 kB / 0.5239 GB, free: 7.789 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.116e-06/0.3622, allocations: 7.5 kB / 0.524 GB, free: 7.785 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003068/0.3625, allocations: 166.5 kB / 0.5241 GB, free: 7.742 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009649/0.3635, allocations: 0.5962 MB / 0.5247 GB, free: 7.395 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003314/0.3638, allocations: 214.9 kB / 0.5249 GB, free: 7.305 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/0.364, allocations: 107.7 kB / 0.525 GB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.103e-05/0.364, allocations: 4.594 kB / 0.525 GB, free: 7.262 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.814e-05/0.364, allocations: 35.97 kB / 0.525 GB, free: 7.219 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.183e-06/0.364, allocations: 0 / 0.525 GB, free: 7.219 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.00182/0.3658, allocations: 0.5689 MB / 0.5256 GB, free: 7.047 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.376e-05/0.3659, allocations: 57.53 kB / 0.5257 GB, free: 6.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007481/0.3666, allocations: 334 kB / 0.526 GB, free: 6.832 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.115e-05/0.3666, allocations: 30.95 kB / 0.526 GB, free: 6.797 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.108e-05/0.3667, allocations: 137.9 kB / 0.5261 GB, free: 6.676 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.002e-05/0.3668, allocations: 82.08 kB / 0.5262 GB, free: 6.609 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.429e-05/0.3669, allocations: 40.77 kB / 0.5263 GB, free: 6.582 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.942e-05/0.3669, allocations: 338.4 kB / 0.5266 GB, free: 6.258 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001656/0.3671, allocations: 88.64 kB / 0.5267 GB, free: 6.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001717/0.3673, allocations: 91.33 kB / 0.5267 GB, free: 6.203 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001951/0.3692, allocations: 0.6267 MB / 0.5274 GB, free: 6.039 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3692, allocations: 0 / 0.5274 GB, free: 6.039 MB / 382.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007718/0.37, allocations: 393.8 kB / 0.5277 GB, free: 5.891 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.37, allocations: 10.06 kB / 0.5277 GB, free: 5.887 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.37, allocations: 4 kB / 0.5277 GB, free: 5.883 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003196/0.3703, allocations: 90.52 kB / 0.5278 GB, free: 5.859 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001743/0.3705, allocations: 31.22 kB / 0.5279 GB, free: 5.859 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00155/0.3721, allocations: 1.744 MB / 0.5296 GB, free: 4.402 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003684/0.3724, allocations: 58.27 kB / 0.5296 GB, free: 4.387 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.876e-05/0.3724, allocations: 12.31 kB / 0.5296 GB, free: 4.379 MB / 382.1 MB Warning: Assuming fixed start value for the following 6 variables: M.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] HF.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] HF.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] P.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] P.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001936/0.3726, allocations: 161.7 kB / 0.5298 GB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.407e-05/0.3727, allocations: 27.14 kB / 0.5298 GB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.826e-05/0.3728, allocations: 40.27 kB / 0.5299 GB, free: 4.191 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.3728, allocations: 2.219 kB / 0.5299 GB, free: 4.191 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.3728, allocations: 1.156 kB / 0.5299 GB, free: 4.191 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.3728, allocations: 1.031 kB / 0.5299 GB, free: 4.191 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003291/0.3731, allocations: 300.5 kB / 0.5301 GB, free: 3.977 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.3731, allocations: 1.094 kB / 0.5301 GB, free: 3.977 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001798/0.3733, allocations: 27.27 kB / 0.5302 GB, free: 3.973 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002748/0.3736, allocations: 99.64 kB / 0.5303 GB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.239e-05/0.3736, allocations: 3.703 kB / 0.5303 GB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001395/0.375, allocations: 1.758 MB / 0.532 GB, free: 2.469 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.375, allocations: 0 / 0.532 GB, free: 2.469 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000926/0.3759, allocations: 0.5605 MB / 0.5325 GB, free: 2.184 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.48e-05/0.376, allocations: 29.22 kB / 0.5326 GB, free: 2.168 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.746e-05/0.376, allocations: 7.453 kB / 0.5326 GB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003804/0.3764, allocations: 45.92 kB / 0.5326 GB, free: 2.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.362e-05/0.3765, allocations: 18.05 kB / 0.5326 GB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.3765, allocations: 8.656 kB / 0.5326 GB, free: 2.152 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006712/0.3772, allocations: 269.4 kB / 0.5329 GB, free: 2.039 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3772, allocations: 0 / 0.5329 GB, free: 2.039 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003632/0.3775, allocations: 55.94 kB / 0.5329 GB, free: 2.031 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001124/0.3786, allocations: 1.098 MB / 0.534 GB, free: 1.219 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006572/0.3793, allocations: 360.6 kB / 0.5344 GB, free: 1.035 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3793, allocations: 0 / 0.5344 GB, free: 1.035 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003368/0.3796, allocations: 249.7 kB / 0.5346 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003737/0.38, allocations: 34.09 kB / 0.5346 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005353/0.3854, allocations: 3.148 MB / 0.5377 GB, free: 15.07 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004399/0.3858, allocations: 0.7691 MB / 0.5385 GB, free: 14.36 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001536/0.386, allocations: 58.28 kB / 0.5385 GB, free: 14.35 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001274/0.3861, allocations: 72.75 kB / 0.5386 GB, free: 14.3 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3861, allocations: 0 / 0.5386 GB, free: 14.3 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03937/0.4255, allocations: 5.979 MB / 0.5444 GB, free: 12.12 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.83/12.26, allocations: 6.797 kB / 0.5444 GB, free: 12.12 MB / 398.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof.fmu > AES_AES.Coursework.Tuning_brushup.IMC_scheme_1dof.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.214811393991113] Failed to read output from testmodel.py, exit status != 0: 12.422304004023317 12.4397903 12.077062802 Calling exit ...