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.0008856/0.0008856, allocations: 76.52 kB / 19.95 MB, free: 4.613 MB / 18.57 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.000789/0.000789, allocations: 173.2 kB / 23.23 MB, free: 1.332 MB / 18.57 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.878/0.878, allocations: 177.1 MB / 203.5 MB, free: 5.754 MB / 186.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.0642/0.0642, allocations: 18.13 MB / 278.1 MB, free: 11.54 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) 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: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 415.1 MB, free: 12.67 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.45e-05/2.661e-05, allocations: 2.281 kB / 415.1 MB, free: 12.67 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.001503/0.00153, allocations: 1.076 MB / 416.1 MB, free: 12.07 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001212/0.002742, allocations: 1.327 MB / 417.5 MB, free: 11.12 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.612e-05/0.002828, allocations: 2.688 kB / 417.5 MB, free: 11.12 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003081/0.003136, allocations: 71.36 kB / 417.5 MB, free: 11.08 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001619/0.003298, allocations: 89.72 kB / 417.6 MB, free: 11.04 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003234/0.003621, allocations: 217.2 kB / 417.8 MB, free: 10.95 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.000263/0.003884, allocations: 260.3 kB / 418.1 MB, free: 10.86 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001171/0.004001, allocations: 38.55 kB / 418.1 MB, free: 10.83 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001274/0.004129, allocations: 116 kB / 418.2 MB, free: 10.79 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002294/0.004358, allocations: 171.6 kB / 418.4 MB, free: 10.75 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.797e-05/0.004406, allocations: 21.84 kB / 418.4 MB, free: 10.75 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.611e-05/0.004442, allocations: 22.91 kB / 418.5 MB, free: 10.75 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001397/0.004582, allocations: 119.6 kB / 418.6 MB, free: 10.69 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 8.319e-05/0.004665, allocations: 67.72 kB / 418.6 MB, free: 10.65 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000324/0.004989, allocations: 272.6 kB / 418.9 MB, free: 10.55 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.004993, allocations: 4 kB / 418.9 MB, free: 10.55 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.004994, allocations: 3.938 kB / 418.9 MB, free: 10.55 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.005002, allocations: 0 / 418.9 MB, free: 10.55 MB / 330.7 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.001285/0.006286, allocations: 0.6879 MB / 419.6 MB, free: 10.13 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.006331, allocations: 10.33 kB / 419.6 MB, free: 10.13 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.373e-05/0.006375, allocations: 47.17 kB / 419.7 MB, free: 10.08 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.812e-05/0.006423, allocations: 34.73 kB / 419.7 MB, free: 10.06 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000583/0.007006, allocations: 356.6 kB / 420 MB, free: 9.859 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.453e-05/0.007031, allocations: 14.5 kB / 420 MB, free: 9.852 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.015e-05/0.007061, allocations: 14.64 kB / 420.1 MB, free: 9.848 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002702/0.007331, allocations: 189.5 kB / 420.2 MB, free: 9.77 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.007344, allocations: 5.578 kB / 420.3 MB, free: 9.766 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.551e-05/0.00736, allocations: 10 kB / 420.3 MB, free: 9.758 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.007368, allocations: 4.156 kB / 420.3 MB, free: 9.758 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002846/0.007653, allocations: 195.9 kB / 420.5 MB, free: 9.707 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008964/0.008549, allocations: 0.6196 MB / 421.1 MB, free: 9.348 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004633/0.009013, allocations: 262.5 kB / 421.3 MB, free: 9.25 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001566/0.009169, allocations: 121.6 kB / 421.5 MB, free: 9.207 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.787e-05/0.009187, allocations: 2.688 kB / 421.5 MB, free: 9.207 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.288e-05/0.0092, allocations: 37.48 kB / 421.5 MB, free: 9.164 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.443e-06/0.009201, allocations: 4 kB / 421.5 MB, free: 9.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.001119/0.01032, allocations: 0.6169 MB / 422.1 MB, free: 8.973 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.459e-05/0.01034, allocations: 57.62 kB / 422.2 MB, free: 8.906 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005308/0.01088, allocations: 413.7 kB / 422.6 MB, free: 8.738 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.01089, allocations: 25.7 kB / 422.6 MB, free: 8.707 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.652e-05/0.01095, allocations: 154.3 kB / 422.7 MB, free: 8.574 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.178e-05/0.01101, allocations: 92.38 kB / 422.8 MB, free: 8.5 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.384e-05/0.01106, allocations: 43.38 kB / 422.9 MB, free: 8.473 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.319e-05/0.01112, allocations: 341.1 kB / 423.2 MB, free: 8.148 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000129/0.01125, allocations: 102.8 kB / 423.3 MB, free: 8.117 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001247/0.01137, allocations: 112.1 kB / 423.4 MB, free: 8.082 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001294/0.01266, allocations: 0.7097 MB / 424.1 MB, free: 7.898 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.01267, allocations: 1.219 kB / 424.1 MB, free: 7.898 MB / 330.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005719/0.01324, allocations: 441.9 kB / 424.6 MB, free: 7.73 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.01326, allocations: 6.781 kB / 424.6 MB, free: 7.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/0.01326, allocations: 1.562 kB / 424.6 MB, free: 7.73 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002159/0.01348, allocations: 94.34 kB / 424.7 MB, free: 7.703 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.01358, allocations: 44.66 kB / 424.7 MB, free: 7.695 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001174/0.01476, allocations: 1.731 MB / 426.4 MB, free: 6.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002119/0.01497, allocations: 69.95 kB / 426.5 MB, free: 6.234 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.412e-05/0.01498, allocations: 5.531 kB / 426.5 MB, free: 6.234 MB / 330.7 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.0001506/0.01513, allocations: 174.7 kB / 426.7 MB, free: 6.09 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.719e-05/0.01517, allocations: 29.36 kB / 426.7 MB, free: 6.074 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.384e-05/0.01521, allocations: 46.95 kB / 426.8 MB, free: 6.039 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-06/0.01522, allocations: 2.281 kB / 426.8 MB, free: 6.039 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.01522, allocations: 1.375 kB / 426.8 MB, free: 6.039 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.01523, allocations: 5.312 kB / 426.8 MB, free: 6.035 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002409/0.01547, allocations: 294.2 kB / 427.1 MB, free: 5.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.01547, allocations: 4.734 kB / 427.1 MB, free: 5.816 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001146/0.01558, allocations: 28.52 kB / 427.1 MB, free: 5.816 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001666/0.01575, allocations: 99.7 kB / 427.2 MB, free: 5.785 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.74e-05/0.01577, allocations: 7.781 kB / 427.2 MB, free: 5.781 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009079/0.01667, allocations: 1.732 MB / 428.9 MB, free: 4.32 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.01668, allocations: 1.344 kB / 428.9 MB, free: 4.32 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006925/0.01737, allocations: 0.6145 MB / 429.5 MB, free: 4.02 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.928e-05/0.01741, allocations: 43.42 kB / 429.6 MB, free: 3.992 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.382e-05/0.01743, allocations: 10.14 kB / 429.6 MB, free: 3.988 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002192/0.01765, allocations: 58.84 kB / 429.7 MB, free: 3.98 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.479e-05/0.01772, allocations: 20.97 kB / 429.7 MB, free: 3.977 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.175e-05/0.01773, allocations: 8.422 kB / 429.7 MB, free: 3.973 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004373/0.01817, allocations: 330 kB / 430 MB, free: 3.844 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01817, allocations: 0 / 430 MB, free: 3.844 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002307/0.0184, allocations: 61.53 kB / 430.1 MB, free: 3.836 MB / 330.7 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.0007761/0.01917, allocations: 1.163 MB / 431.2 MB, free: 2.992 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005135/0.01969, allocations: 398.1 kB / 431.6 MB, free: 2.797 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.01969, allocations: 0 / 431.6 MB, free: 2.797 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002365/0.01992, allocations: 281.9 kB / 431.9 MB, free: 2.625 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002659/0.02019, allocations: 41.7 kB / 431.9 MB, free: 2.605 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003676/0.02387, allocations: 3.555 MB / 435.5 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001119/0.02398, allocations: 182.6 kB / 435.7 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.937e-05/0.02408, allocations: 64.52 kB / 435.7 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.451e-05/0.02416, allocations: 84.84 kB / 435.8 MB, free: 476 kB / 330.7 MB Notification: Performance of SimCode: time 4.9e-07/0.02416, allocations: 0 / 435.8 MB, free: 476 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02216/0.04632, allocations: 7.454 MB / 443.3 MB, free: 12.06 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.056/7.102, allocations: 14.56 kB / 443.3 MB, free: 12.05 MB / 346.7 MB " [Timeout remaining time 653] (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: 9.011688116006553] Failed to read output from testmodel.py, exit status != 0: 7.184847850352526 7.193391673 7.18670886 Calling exit ...