Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.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.001888/0.001888, allocations: 110.4 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.002247/0.002247, allocations: 220.3 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.504/1.504, allocations: 230.6 MB / 256 MB, free: 8 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.1206/0.1206, allocations: 24.13 MB / 336.6 MB, free: 11.42 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_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_2dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof",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.002175/0.002175, allocations: 63.91 kB / 473.3 MB, free: 6.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3387/0.3409, allocations: 59.6 MB / 0.5204 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002363/0.3433, allocations: 1.149 MB / 0.5215 GB, free: 9.352 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001788/0.345, allocations: 1.357 MB / 0.5229 GB, free: 8.367 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001076/0.3451, allocations: 6.844 kB / 0.5229 GB, free: 8.363 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003932/0.3455, allocations: 72.48 kB / 0.5229 GB, free: 8.328 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002431/0.3458, allocations: 84.31 kB / 0.523 GB, free: 8.289 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003899/0.3462, allocations: 166.1 kB / 0.5232 GB, free: 8.211 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006764/0.3468, allocations: 476.7 kB / 0.5236 GB, free: 8.039 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001377/0.347, allocations: 39.81 kB / 0.5237 GB, free: 8.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002663/0.3473, allocations: 173.6 kB / 0.5238 GB, free: 7.961 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003425/0.3476, allocations: 209.6 kB / 0.524 GB, free: 7.891 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.914e-05/0.3477, allocations: 29.56 kB / 0.5241 GB, free: 7.883 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.959e-05/0.3477, allocations: 22.34 kB / 0.5241 GB, free: 7.883 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00016/0.3479, allocations: 110.8 kB / 0.5242 GB, free: 7.84 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001312/0.348, allocations: 120 kB / 0.5243 GB, free: 7.754 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003926/0.3484, allocations: 266.2 kB / 0.5246 GB, free: 7.652 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3484, allocations: 1.125 kB / 0.5246 GB, free: 7.652 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3484, allocations: 0 / 0.5246 GB, free: 7.652 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.3484, allocations: 0 / 0.5246 GB, free: 7.652 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.002088/0.3505, allocations: 0.6951 MB / 0.5252 GB, free: 7.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.3505, allocations: 9.484 kB / 0.5252 GB, free: 7.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.19e-05/0.3506, allocations: 52.06 kB / 0.5253 GB, free: 7.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.985e-05/0.3507, allocations: 30.5 kB / 0.5253 GB, free: 7.164 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001015/0.3517, allocations: 354.1 kB / 0.5257 GB, free: 6.969 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.3517, allocations: 18.38 kB / 0.5257 GB, free: 6.957 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.08e-05/0.3518, allocations: 14.31 kB / 0.5257 GB, free: 6.953 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003884/0.3521, allocations: 189.6 kB / 0.5259 GB, free: 6.875 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.3522, allocations: 3.953 kB / 0.5259 GB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.258e-05/0.3522, allocations: 6.125 kB / 0.5259 GB, free: 6.867 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.3522, allocations: 3.344 kB / 0.5259 GB, free: 6.867 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004297/0.3526, allocations: 201.6 kB / 0.5261 GB, free: 6.812 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001325/0.3539, allocations: 0.664 MB / 0.5267 GB, free: 6.441 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006118/0.3546, allocations: 262.3 kB / 0.527 GB, free: 6.348 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002305/0.3548, allocations: 130.9 kB / 0.5271 GB, free: 6.297 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.499e-05/0.3548, allocations: 2.188 kB / 0.5271 GB, free: 6.297 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.628e-05/0.3548, allocations: 33.67 kB / 0.5271 GB, free: 6.258 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.783e-06/0.3548, allocations: 0 / 0.5271 GB, free: 6.258 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.00235/0.3572, allocations: 0.6148 MB / 0.5277 GB, free: 6.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.133e-05/0.3572, allocations: 59.16 kB / 0.5278 GB, free: 6.004 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009737/0.3582, allocations: 415.3 kB / 0.5282 GB, free: 5.832 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/0.3582, allocations: 30.89 kB / 0.5282 GB, free: 5.797 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.313e-05/0.3583, allocations: 146.5 kB / 0.5284 GB, free: 5.672 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.396e-05/0.3584, allocations: 96.11 kB / 0.5285 GB, free: 5.594 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001127/0.3585, allocations: 51 kB / 0.5285 GB, free: 5.559 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.42e-05/0.3586, allocations: 344.6 kB / 0.5288 GB, free: 5.23 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003115/0.3589, allocations: 103.8 kB / 0.5289 GB, free: 5.199 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002053/0.3591, allocations: 101.2 kB / 0.529 GB, free: 5.172 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002369/0.3615, allocations: 0.7135 MB / 0.5297 GB, free: 4.984 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.3615, allocations: 0 / 0.5297 GB, free: 4.984 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009778/0.3625, allocations: 443.9 kB / 0.5301 GB, free: 4.816 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.3625, allocations: 8.344 kB / 0.5302 GB, free: 4.812 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.3625, allocations: 1.062 kB / 0.5302 GB, free: 4.812 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003185/0.3628, allocations: 91.39 kB / 0.5302 GB, free: 4.789 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002018/0.363, allocations: 40.02 kB / 0.5303 GB, free: 4.785 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001809/0.3648, allocations: 1.74 MB / 0.532 GB, free: 3.332 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004708/0.3653, allocations: 72.06 kB / 0.532 GB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.625e-05/0.3653, allocations: 13.47 kB / 0.5321 GB, free: 3.305 MB / 382.1 MB Warning: Assuming fixed start value for the following 7 variables: Cff.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] 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 (25): * Single equations (assignments): 24 * 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.0002489/0.3656, allocations: 181.9 kB / 0.5322 GB, free: 3.152 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.889e-05/0.3656, allocations: 28.72 kB / 0.5323 GB, free: 3.137 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.359e-05/0.3657, allocations: 43.48 kB / 0.5323 GB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.3657, allocations: 1.25 kB / 0.5323 GB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.3657, allocations: 2.844 kB / 0.5323 GB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.3657, allocations: 2.484 kB / 0.5323 GB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003629/0.3661, allocations: 332.1 kB / 0.5326 GB, free: 2.879 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3661, allocations: 0 / 0.5326 GB, free: 2.879 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002088/0.3663, allocations: 37 kB / 0.5327 GB, free: 2.871 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002807/0.3666, allocations: 91.41 kB / 0.5327 GB, free: 2.848 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.766e-05/0.3666, allocations: 7.812 kB / 0.5328 GB, free: 2.844 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001526/0.3682, allocations: 1.743 MB / 0.5345 GB, free: 1.383 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.3682, allocations: 0 / 0.5345 GB, free: 1.383 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.3693, allocations: 0.6268 MB / 0.5351 GB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.613e-05/0.3694, allocations: 44.05 kB / 0.5351 GB, free: 1.043 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.473e-05/0.3694, allocations: 9.312 kB / 0.5351 GB, free: 1.039 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004445/0.3699, allocations: 59.28 kB / 0.5352 GB, free: 1.031 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.751e-05/0.3699, allocations: 19.66 kB / 0.5352 GB, free: 1.027 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.67e-05/0.37, allocations: 12.31 kB / 0.5352 GB, free: 1.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008031/0.3708, allocations: 324.6 kB / 0.5355 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3708, allocations: 1.406 kB / 0.5355 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003876/0.3712, allocations: 60.31 kB / 0.5356 GB, free: 0.8906 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (P.x_scaled[1],P.x_scaled[2],HF.x_scaled[1],HF.x_scaled[2],M.x_scaled[1],M.x_scaled[2],Cff.x_scaled[1]) * 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 (18): * Single equations (assignments): 17 * 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.001171/0.3723, allocations: 1.165 MB / 0.5367 GB, free: 52 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008365/0.3732, allocations: 396.4 kB / 0.5371 GB, free: 15.85 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3732, allocations: 1.219 kB / 0.5371 GB, free: 15.85 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004591/0.3736, allocations: 273.2 kB / 0.5374 GB, free: 15.68 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000416/0.374, allocations: 44.77 kB / 0.5374 GB, free: 15.66 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007588/0.3816, allocations: 3.582 MB / 0.5409 GB, free: 13.74 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005057/0.3821, allocations: 0.7934 MB / 0.5417 GB, free: 13.04 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001882/0.3823, allocations: 64.05 kB / 0.5417 GB, free: 13.02 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001514/0.3825, allocations: 88.78 kB / 0.5418 GB, free: 12.96 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3825, allocations: 0 / 0.5418 GB, free: 12.96 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03967/0.4221, allocations: 6.836 MB / 0.5485 GB, free: 9.789 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/12.37, allocations: 5.609 kB / 0.5485 GB, free: 9.789 MB / 398.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof_fmu --startTime=0 --stopTime=60 --stepSize=0.12 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Tuning_brushup_IMC_scheme_2dof.fmu > AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.129991498077288] Failed to read output from testmodel.py, exit status != 0: 12.478855727007613 12.495041987 12.143138672 Calling exit ...