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.0007968/0.0007968, allocations: 76.52 kB / 19.95 MB, free: 4.598 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.0008635/0.0008635, allocations: 169.2 kB / 23.23 MB, free: 1.316 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.8723/0.8723, allocations: 177.2 MB / 203.5 MB, free: 5.746 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.06246/0.06246, allocations: 18.12 MB / 278.1 MB, free: 11.55 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_1dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.IMC_scheme_1dof,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_IMC_scheme_1dof",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 415.1 MB, free: 12.71 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.972e-05/2.144e-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_1dof): time 0.001637/0.001658, allocations: 1.031 MB / 416.1 MB, free: 12.13 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001157/0.002815, allocations: 1.267 MB / 417.4 MB, free: 11.22 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.713e-05/0.002893, allocations: 2.75 kB / 417.4 MB, free: 11.22 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002991/0.003192, allocations: 55.36 kB / 417.4 MB, free: 11.19 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000151/0.003343, allocations: 70.83 kB / 417.5 MB, free: 11.16 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002836/0.003626, allocations: 165.8 kB / 417.6 MB, free: 11.09 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002112/0.003837, allocations: 199 kB / 417.8 MB, free: 11.02 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.003944, allocations: 33.38 kB / 417.9 MB, free: 11 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.004055, allocations: 95.91 kB / 418 MB, free: 10.96 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001735/0.004228, allocations: 134.5 kB / 418.1 MB, free: 10.93 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.178e-05/0.00427, allocations: 19 kB / 418.1 MB, free: 10.93 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.558e-05/0.004296, allocations: 19.41 kB / 418.1 MB, free: 10.93 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 8.976e-05/0.004385, allocations: 88.86 kB / 418.2 MB, free: 10.89 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.365e-05/0.004449, allocations: 67.44 kB / 418.3 MB, free: 10.85 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002125/0.004662, allocations: 230.6 kB / 418.5 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.004664, allocations: 0 / 418.5 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.004665, allocations: 0.5156 kB / 418.5 MB, free: 10.77 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.00467, allocations: 0 / 418.5 MB, free: 10.77 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0009308/0.0056, allocations: 0.5956 MB / 419.1 MB, free: 10.39 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.005639, allocations: 14.67 kB / 419.1 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.385e-05/0.005673, allocations: 46.47 kB / 419.2 MB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.133e-05/0.005714, allocations: 27.97 kB / 419.2 MB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005071/0.006221, allocations: 296 kB / 419.5 MB, free: 10.13 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.948e-05/0.006241, allocations: 13.75 kB / 419.5 MB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.566e-05/0.006276, allocations: 17.66 kB / 419.5 MB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003201/0.006597, allocations: 170.1 kB / 419.7 MB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.006614, allocations: 2.656 kB / 419.7 MB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.951e-05/0.006633, allocations: 9.203 kB / 419.7 MB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.006639, allocations: 3.656 kB / 419.7 MB, free: 10.04 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003411/0.006981, allocations: 164.3 kB / 419.9 MB, free: 9.992 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007982/0.007779, allocations: 0.5532 MB / 420.4 MB, free: 9.656 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002766/0.008055, allocations: 212.5 kB / 420.6 MB, free: 9.57 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001276/0.008183, allocations: 110.5 kB / 420.7 MB, free: 9.527 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.612e-05/0.008199, allocations: 1.469 kB / 420.7 MB, free: 9.527 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.509e-05/0.008214, allocations: 34.14 kB / 420.8 MB, free: 9.488 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 1.453e-06/0.008216, allocations: 0 / 420.8 MB, free: 9.488 MB / 330.7 MB Notification: Performance of matching and sorting (n=20): time 0.001119/0.009335, allocations: 0.5691 MB / 421.3 MB, free: 9.316 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.255e-05/0.009358, allocations: 53.81 kB / 421.4 MB, free: 9.254 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004343/0.009792, allocations: 345.9 kB / 421.7 MB, free: 9.098 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.452e-05/0.009806, allocations: 29.7 kB / 421.8 MB, free: 9.062 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.403e-05/0.00986, allocations: 138.5 kB / 421.9 MB, free: 8.941 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.104e-05/0.009911, allocations: 85.59 kB / 422 MB, free: 8.871 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.317e-05/0.009965, allocations: 45.2 kB / 422 MB, free: 8.84 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.826e-05/0.01001, allocations: 337.2 kB / 422.3 MB, free: 8.516 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000125/0.01014, allocations: 90.05 kB / 422.4 MB, free: 8.488 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001153/0.01025, allocations: 94.91 kB / 422.5 MB, free: 8.457 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001136/0.01139, allocations: 0.6079 MB / 423.1 MB, free: 8.309 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.01139, allocations: 5.375 kB / 423.1 MB, free: 8.305 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004946/0.01189, allocations: 405.6 kB / 423.5 MB, free: 8.145 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.0119, allocations: 6.594 kB / 423.5 MB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.01191, allocations: 1.031 kB / 423.5 MB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002169/0.01212, allocations: 90.03 kB / 423.6 MB, free: 8.121 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/0.01224, allocations: 43.14 kB / 423.7 MB, free: 8.109 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001149/0.01339, allocations: 1.724 MB / 425.4 MB, free: 6.668 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001736/0.01356, allocations: 55.81 kB / 425.5 MB, free: 6.656 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.269e-05/0.01357, allocations: 6.375 kB / 425.5 MB, free: 6.656 MB / 330.7 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.0001585/0.01373, allocations: 165.7 kB / 425.6 MB, free: 6.512 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.138e-05/0.01376, allocations: 22.27 kB / 425.6 MB, free: 6.5 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.198e-05/0.0138, allocations: 36.73 kB / 425.7 MB, free: 6.469 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-06/0.01381, allocations: 6.188 kB / 425.7 MB, free: 6.465 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.01381, allocations: 1.125 kB / 425.7 MB, free: 6.465 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.01382, allocations: 1.219 kB / 425.7 MB, free: 6.465 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002889/0.01411, allocations: 268.1 kB / 425.9 MB, free: 6.258 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.01411, allocations: 0 / 425.9 MB, free: 6.258 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001296/0.01424, allocations: 29.7 kB / 426 MB, free: 6.254 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002032/0.01444, allocations: 89.08 kB / 426.1 MB, free: 6.23 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.133e-05/0.01446, allocations: 8.484 kB / 426.1 MB, free: 6.227 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009853/0.01545, allocations: 1.739 MB / 427.8 MB, free: 4.766 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.01545, allocations: 1.156 kB / 427.8 MB, free: 4.766 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005952/0.01605, allocations: 0.5545 MB / 428.4 MB, free: 4.488 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.215e-05/0.01608, allocations: 37.17 kB / 428.4 MB, free: 4.465 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.024e-05/0.0161, allocations: 7.812 kB / 428.4 MB, free: 4.461 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001909/0.01629, allocations: 41.33 kB / 428.5 MB, free: 4.461 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.07e-05/0.01635, allocations: 18.47 kB / 428.5 MB, free: 4.457 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/0.01636, allocations: 7.812 kB / 428.5 MB, free: 4.453 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003577/0.01672, allocations: 274.6 kB / 428.7 MB, free: 4.34 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01672, allocations: 3.938 kB / 428.7 MB, free: 4.336 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000256/0.01697, allocations: 54.84 kB / 428.8 MB, free: 4.328 MB / 330.7 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.0007297/0.0177, allocations: 1.102 MB / 429.9 MB, free: 3.508 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004715/0.01818, allocations: 366.6 kB / 430.3 MB, free: 3.32 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.01818, allocations: 1.25 kB / 430.3 MB, free: 3.32 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002061/0.01838, allocations: 245.7 kB / 430.5 MB, free: 3.168 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002511/0.01863, allocations: 38.56 kB / 430.5 MB, free: 3.152 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003148/0.02178, allocations: 3.123 MB / 433.7 MB, free: 1.379 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001166/0.0219, allocations: 156.2 kB / 433.8 MB, free: 1.297 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.13e-05/0.02199, allocations: 54.25 kB / 433.9 MB, free: 1.289 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.983e-05/0.02207, allocations: 72.62 kB / 433.9 MB, free: 1.234 MB / 330.7 MB Notification: Performance of SimCode: time 4.21e-07/0.02207, allocations: 0 / 433.9 MB, free: 1.234 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02004/0.04211, allocations: 6.562 MB / 440.5 MB, free: 14 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.023/7.065, allocations: 3.906 kB / 440.5 MB, free: 14 MB / 346.7 MB " [Timeout remaining time 653] (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: 8.938908085227013] Failed to read output from testmodel.py, exit status != 0: 7.14702760335058 7.154636355 7.148338074 Calling exit ...