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.001047/0.001047, allocations: 72.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.001205/0.001205, allocations: 169.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.8981/0.8981, allocations: 177.1 MB / 203.5 MB, free: 5.738 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.06179/0.06179, allocations: 18.13 MB / 278.1 MB, free: 11.53 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 1.944e-06/1.944e-06, allocations: 1.375 kB / 415.1 MB, free: 12.71 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.718e-05/1.913e-05, allocations: 2.281 kB / 415.1 MB, free: 12.7 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.001587/0.001606, allocations: 1.075 MB / 416.1 MB, free: 12.1 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001166/0.002772, allocations: 1.321 MB / 417.5 MB, free: 11.16 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.25e-05/0.002854, allocations: 6.812 kB / 417.5 MB, free: 11.15 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002959/0.00315, allocations: 72.58 kB / 417.5 MB, free: 11.12 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001662/0.003316, allocations: 93.17 kB / 417.6 MB, free: 11.07 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002966/0.003613, allocations: 212.3 kB / 417.8 MB, free: 10.99 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002603/0.003873, allocations: 262.7 kB / 418.1 MB, free: 10.89 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.003999, allocations: 39.81 kB / 418.1 MB, free: 10.86 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001537/0.004153, allocations: 120.5 kB / 418.2 MB, free: 10.82 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002316/0.004384, allocations: 167.7 kB / 418.4 MB, free: 10.78 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.781e-05/0.004432, allocations: 21.47 kB / 418.4 MB, free: 10.78 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.147e-05/0.004464, allocations: 22.06 kB / 418.5 MB, free: 10.78 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001187/0.004582, allocations: 112.5 kB / 418.6 MB, free: 10.73 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.617e-05/0.004658, allocations: 72.97 kB / 418.6 MB, free: 10.69 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002847/0.004943, allocations: 277.8 kB / 418.9 MB, free: 10.58 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.726e-06/0.004946, allocations: 5.281 kB / 418.9 MB, free: 10.58 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.004947, allocations: 0 / 418.9 MB, free: 10.58 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.004952, allocations: 0 / 418.9 MB, free: 10.58 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.001136/0.006088, allocations: 0.6887 MB / 419.6 MB, free: 10.16 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.006126, allocations: 10.17 kB / 419.6 MB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.665e-05/0.006163, allocations: 50.27 kB / 419.7 MB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.047e-05/0.006204, allocations: 31.16 kB / 419.7 MB, free: 10.09 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005436/0.006747, allocations: 352.6 kB / 420 MB, free: 9.895 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.006764, allocations: 11.25 kB / 420 MB, free: 9.891 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.887e-05/0.006793, allocations: 21.95 kB / 420.1 MB, free: 9.879 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000251/0.007044, allocations: 186.5 kB / 420.2 MB, free: 9.805 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.007056, allocations: 4.703 kB / 420.3 MB, free: 9.801 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.534e-05/0.007072, allocations: 9.5 kB / 420.3 MB, free: 9.793 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.007078, allocations: 3.156 kB / 420.3 MB, free: 9.793 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002794/0.007357, allocations: 199.8 kB / 420.5 MB, free: 9.738 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007834/0.008141, allocations: 0.616 MB / 421.1 MB, free: 9.383 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003998/0.00854, allocations: 266.5 kB / 421.3 MB, free: 9.281 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001571/0.008697, allocations: 127.8 kB / 421.5 MB, free: 9.234 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.747e-05/0.008715, allocations: 3.391 kB / 421.5 MB, free: 9.234 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.159e-05/0.008727, allocations: 31.62 kB / 421.5 MB, free: 9.195 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.453e-06/0.008728, allocations: 5.062 kB / 421.5 MB, free: 9.191 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.001174/0.009902, allocations: 0.6176 MB / 422.1 MB, free: 9.004 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.317e-05/0.009925, allocations: 54.19 kB / 422.2 MB, free: 8.941 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005229/0.01045, allocations: 416.7 kB / 422.6 MB, free: 8.77 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.507e-05/0.01046, allocations: 30.83 kB / 422.6 MB, free: 8.734 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.452e-05/0.01053, allocations: 149.7 kB / 422.8 MB, free: 8.605 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.549e-05/0.01058, allocations: 92.38 kB / 422.8 MB, free: 8.531 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.494e-05/0.01064, allocations: 47.97 kB / 422.9 MB, free: 8.5 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.706e-05/0.01068, allocations: 341.3 kB / 423.2 MB, free: 8.176 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.01081, allocations: 103.4 kB / 423.3 MB, free: 8.145 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000127/0.01094, allocations: 101.2 kB / 423.4 MB, free: 8.117 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001292/0.01223, allocations: 0.713 MB / 424.1 MB, free: 7.93 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.155e-06/0.01224, allocations: 4.516 kB / 424.1 MB, free: 7.926 MB / 330.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005444/0.01278, allocations: 444.7 kB / 424.6 MB, free: 7.758 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.0128, allocations: 6.422 kB / 424.6 MB, free: 7.758 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.0128, allocations: 2.812 kB / 424.6 MB, free: 7.758 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002141/0.01302, allocations: 94.52 kB / 424.7 MB, free: 7.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.01313, allocations: 44.47 kB / 424.7 MB, free: 7.723 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001167/0.0143, allocations: 1.725 MB / 426.4 MB, free: 6.281 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002212/0.01452, allocations: 72.67 kB / 426.5 MB, free: 6.262 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.43e-05/0.01453, allocations: 6.297 kB / 426.5 MB, free: 6.262 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.0001467/0.01468, allocations: 174.8 kB / 426.7 MB, free: 6.117 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.47e-05/0.01471, allocations: 31.91 kB / 426.7 MB, free: 6.098 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.613e-05/0.01476, allocations: 43.27 kB / 426.8 MB, free: 6.066 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.01476, allocations: 2.438 kB / 426.8 MB, free: 6.066 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.81e-06/0.01477, allocations: 1.766 kB / 426.8 MB, free: 6.066 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.01477, allocations: 2.016 kB / 426.8 MB, free: 6.066 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002499/0.01502, allocations: 294.6 kB / 427.1 MB, free: 5.852 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.01502, allocations: 0 / 427.1 MB, free: 5.852 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001169/0.01514, allocations: 36.88 kB / 427.1 MB, free: 5.844 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001732/0.01531, allocations: 97.81 kB / 427.2 MB, free: 5.812 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.85e-05/0.01533, allocations: 8.703 kB / 427.2 MB, free: 5.809 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009363/0.01627, allocations: 1.728 MB / 428.9 MB, free: 4.352 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.01627, allocations: 1.219 kB / 428.9 MB, free: 4.352 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006558/0.01692, allocations: 0.6227 MB / 429.6 MB, free: 4.043 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.729e-05/0.01696, allocations: 35.27 kB / 429.6 MB, free: 4.023 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.297e-05/0.01698, allocations: 9.312 kB / 429.6 MB, free: 4.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002087/0.01719, allocations: 56.58 kB / 429.6 MB, free: 4.016 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.539e-05/0.01725, allocations: 19.36 kB / 429.7 MB, free: 4.012 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.819e-06/0.01726, allocations: 4.406 kB / 429.7 MB, free: 4.012 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004305/0.01769, allocations: 329.7 kB / 430 MB, free: 3.883 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01769, allocations: 0 / 430 MB, free: 3.883 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002244/0.01791, allocations: 61.62 kB / 430.1 MB, free: 3.875 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.0007589/0.01867, allocations: 1.172 MB / 431.2 MB, free: 3.023 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004649/0.01914, allocations: 401.3 kB / 431.6 MB, free: 2.828 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.01914, allocations: 0 / 431.6 MB, free: 2.828 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002161/0.01935, allocations: 276.8 kB / 431.9 MB, free: 2.656 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002717/0.01963, allocations: 45.11 kB / 431.9 MB, free: 2.637 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003678/0.0233, allocations: 3.563 MB / 435.5 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001316/0.02344, allocations: 182.2 kB / 435.7 MB, free: 0.5781 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001054/0.02354, allocations: 61.05 kB / 435.7 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.009e-05/0.02363, allocations: 92.44 kB / 435.8 MB, free: 488 kB / 330.7 MB Notification: Performance of SimCode: time 5.82e-07/0.02363, allocations: 0 / 435.8 MB, free: 488 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02133/0.04496, allocations: 7.44 MB / 443.3 MB, free: 12.09 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.29/7.335, allocations: 11.94 kB / 443.3 MB, free: 12.08 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.IMC_scheme_2dof_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.12 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.348893069662154] Failed to read output from testmodel.py, exit status != 0: 7.4177441811189055 7.426331684 7.419524586 Calling exit ...