Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.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.001414/0.001414, allocations: 76.45 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.001514/0.001514, allocations: 165.2 kB / 23.22 MB, free: 1.336 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.9204/0.9204, 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.06314/0.06314, 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.MSL_loop_2dof_noise,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_2dof_noise",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise,fileNamePrefix="AES_AES_Coursework_Tuning_brushup_MSL_loop_2dof_noise",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.342e-06/1.342e-06, allocations: 0 / 415 MB, free: 12.67 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.333e-05/2.468e-05, allocations: 6.578 kB / 415.1 MB, free: 12.67 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Blocks/Interfaces.mo:1329:5-1330:50:writable] Warning: An inner declaration for outer component globalSeed could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Blocks/Interfaces.mo:1329:5-1330:50:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"globalSeed\" component but an inner \"globalSeed\" component is not defined and therefore a default inner \"globalSeed\" component is introduced by the tool. To change the default setting, drag Noise.GlobalSeed into your model and specify the seed. Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise): time 0.02036/0.02039, allocations: 23.06 MB / 438.1 MB, free: 15.99 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002256/0.02265, allocations: 1.562 MB / 439.7 MB, free: 14.61 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001256/0.02277, allocations: 7.938 kB / 439.7 MB, free: 14.6 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003222/0.02309, allocations: 83.41 kB / 439.8 MB, free: 14.53 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001913/0.02328, allocations: 99.58 kB / 439.9 MB, free: 14.45 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. Notification: Performance of NFTyping.typeClassSections: time 0.0009539/0.02424, allocations: 0.5795 MB / 440.4 MB, free: 14.02 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003138/0.02455, allocations: 313.5 kB / 440.7 MB, free: 13.77 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001134/0.02467, allocations: 38.05 kB / 440.8 MB, free: 13.74 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001403/0.02481, allocations: 136.4 kB / 440.9 MB, free: 13.64 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004462/0.02525, allocations: 169.6 kB / 441.1 MB, free: 13.52 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.044e-05/0.02529, allocations: 24 kB / 441.1 MB, free: 13.5 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004933/0.02579, allocations: 446.1 kB / 441.5 MB, free: 13.17 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000113/0.0259, allocations: 101.5 kB / 441.6 MB, free: 13.09 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 8.576e-05/0.02598, allocations: 84.05 kB / 441.7 MB, free: 13.02 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007104/0.02669, allocations: 0.5926 MB / 442.3 MB, free: 12.61 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.0267, allocations: 0 / 442.3 MB, free: 12.61 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.0267, allocations: 0 / 442.3 MB, free: 12.61 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.02671, allocations: 0 / 442.3 MB, free: 12.61 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001264/0.02797, allocations: 0.7466 MB / 443.1 MB, free: 11.93 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.028, allocations: 8.031 kB / 443.1 MB, free: 11.92 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.211e-05/0.02805, allocations: 46.69 kB / 443.1 MB, free: 11.87 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.332e-05/0.02814, allocations: 37.36 kB / 443.2 MB, free: 11.83 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005183/0.02866, allocations: 342.8 kB / 443.5 MB, free: 11.53 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.969e-05/0.02868, allocations: 13.08 kB / 443.5 MB, free: 11.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.88e-05/0.02871, allocations: 17.16 kB / 443.5 MB, free: 11.5 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002676/0.02897, allocations: 181.2 kB / 443.7 MB, free: 11.35 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.02899, allocations: 4 kB / 443.7 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.029, allocations: 4.75 kB / 443.7 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.029, allocations: 8 kB / 443.7 MB, free: 11.33 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002631/0.02927, allocations: 169.7 kB / 443.9 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007522/0.03002, allocations: 0.575 MB / 444.5 MB, free: 10.67 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004089/0.03043, allocations: 254.7 kB / 444.7 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001292/0.03056, allocations: 107.5 kB / 444.8 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.535e-05/0.03057, allocations: 4 kB / 444.8 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002267/0.0308, allocations: 176.2 kB / 445 MB, free: 10.21 MB / 346.7 MB Notification: Performance of pre-optimization done (n=25): time 1.413e-06/0.0308, allocations: 0 / 445 MB, free: 10.21 MB / 346.7 MB Notification: Performance of matching and sorting (n=25): time 0.0009523/0.03175, allocations: 0.5294 MB / 445.5 MB, free: 9.766 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.775e-05/0.03179, allocations: 61.42 kB / 445.6 MB, free: 9.695 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004988/0.03229, allocations: 424.4 kB / 446 MB, free: 9.344 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.716e-05/0.03232, allocations: 38.97 kB / 446 MB, free: 9.301 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.377e-05/0.03241, allocations: 162.5 kB / 446.2 MB, free: 9.148 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.178e-05/0.03247, allocations: 85.16 kB / 446.3 MB, free: 9.07 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.296e-05/0.03255, allocations: 64.14 kB / 446.3 MB, free: 9.008 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.03265, allocations: 341.5 kB / 446.7 MB, free: 8.676 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001555/0.0328, allocations: 123.5 kB / 446.8 MB, free: 8.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001762/0.03298, allocations: 153.2 kB / 446.9 MB, free: 8.438 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001269/0.03425, allocations: 0.6651 MB / 447.6 MB, free: 7.906 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.03425, allocations: 4 kB / 447.6 MB, free: 7.902 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005148/0.03477, allocations: 456.8 kB / 448 MB, free: 7.508 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.03478, allocations: 4 kB / 448.1 MB, free: 7.504 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.03479, allocations: 0 / 448.1 MB, free: 7.504 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001754/0.03496, allocations: 81.86 kB / 448.1 MB, free: 7.438 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.659e-05/0.03506, allocations: 37.52 kB / 448.2 MB, free: 7.406 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001141/0.0362, allocations: 1.631 MB / 449.8 MB, free: 5.738 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001806/0.03638, allocations: 71.28 kB / 449.9 MB, free: 5.688 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.625e-05/0.0364, allocations: 12 kB / 449.9 MB, free: 5.676 MB / 346.7 MB Warning: Assuming fixed start value for the following 4 variables: Fn.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Cfb.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Process.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: 2 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition1,globalSeed.id_impure,globalSeed.seed,noise.actualGlobalSeed,noise.localSeed,$PRE.noise.r_raw,$PRE.noise.r,$PRE.noise.state[4],$PRE.noise.state[3],$PRE.noise.state[2],$PRE.noise.state[1],noise.r_raw,noise.r,noise.state[4],noise.state[3],noise.state[2],noise.state[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 1 * 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.0002105/0.03661, allocations: 166.8 kB / 450 MB, free: 5.512 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.859e-05/0.03664, allocations: 31.77 kB / 450.1 MB, free: 5.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.012e-05/0.03668, allocations: 45.72 kB / 450.1 MB, free: 5.441 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.03668, allocations: 4 kB / 450.1 MB, free: 5.438 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.03668, allocations: 7.594 kB / 450.1 MB, free: 5.434 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.03668, allocations: 0 / 450.1 MB, free: 5.434 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002216/0.03691, allocations: 275.9 kB / 450.4 MB, free: 5.152 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.03691, allocations: 4.938 kB / 450.4 MB, free: 5.148 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.344e-05/0.03699, allocations: 20.03 kB / 450.4 MB, free: 5.133 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001354/0.03713, allocations: 77.88 kB / 450.5 MB, free: 5.07 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.79e-05/0.03715, allocations: 13.3 kB / 450.5 MB, free: 5.059 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001269/0.03841, allocations: 1.818 MB / 452.3 MB, free: 3.207 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.03842, allocations: 3.938 kB / 452.3 MB, free: 3.203 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005791/0.039, allocations: 0.5156 MB / 452.8 MB, free: 2.668 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.055e-05/0.03904, allocations: 43.92 kB / 452.9 MB, free: 2.625 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.32e-05/0.03906, allocations: 12 kB / 452.9 MB, free: 2.613 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.03921, allocations: 51.86 kB / 453 MB, free: 2.562 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.444e-05/0.03927, allocations: 27.84 kB / 453 MB, free: 2.535 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.014e-05/0.03928, allocations: 8 kB / 453 MB, free: 2.527 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003484/0.03963, allocations: 318.9 kB / 453.3 MB, free: 2.219 MB / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03963, allocations: 3.938 kB / 453.3 MB, free: 2.215 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003694/0.04, allocations: 159.6 kB / 453.5 MB, free: 2.059 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Process.x_scaled[1],Process.x_scaled[2],Cfb.x_scaled[1],Fn.x_scaled[1]) * Number of discrete variables: 7 ($whenCondition1,noise.state[1],noise.state[2],noise.state[3],noise.state[4],noise.r,noise.r_raw) * Number of discrete states: 4 (noise.state[1],noise.state[2],noise.state[3],noise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001174/0.04117, allocations: 1.295 MB / 454.8 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004792/0.04165, allocations: 406.4 kB / 455.2 MB, free: 368 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.04165, allocations: 0 / 455.2 MB, free: 368 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002635/0.04191, allocations: 258.5 kB / 455.4 MB, free: 96 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001989/0.04211, allocations: 45.12 kB / 455.4 MB, free: 52 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003582/0.04569, allocations: 3.512 MB / 459 MB, free: 12.44 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001126/0.04581, allocations: 191.4 kB / 459.1 MB, free: 12.23 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.152e-05/0.0459, allocations: 54.25 kB / 459.2 MB, free: 12.18 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.545e-05/0.04599, allocations: 96.45 kB / 459.3 MB, free: 12.09 MB / 362.7 MB Notification: Performance of SimCode: time 3.81e-07/0.04599, allocations: 4 kB / 459.3 MB, free: 12.08 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02095/0.06695, allocations: 9.748 MB / 469 MB, free: 2.434 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.507/7.574, allocations: 3.938 kB / 469.1 MB, free: 2.43 MB / 362.7 MB " [Timeout remaining time 652] (rm -f AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe ; mkfifo AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe ; head -c 1048576 < AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe >> ../files/AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise_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_MSL_loop_2dof_noise.fmu > AES_AES.Coursework.Tuning_brushup.MSL_loop_2dof_noise.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.740450663492084] Failed to read output from testmodel.py, exit status != 0: 7.659935049712658 7.672918871 7.644305819 Calling exit ...