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.001419/0.001419, allocations: 100.3 kB / 19.72 MB, free: 1.785 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.001557/0.001557, allocations: 204.6 kB / 23.01 MB, free: 4.621 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.5/1.5, allocations: 230.6 MB / 256.8 MB, free: 7.781 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.1067/0.1067, allocations: 24.04 MB / 337.2 MB, free: 11.34 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.002167/0.002167, allocations: 71.89 kB / 473.8 MB, free: 6.391 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3565/0.3587, allocations: 59.57 MB / 0.5209 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Tuning_brushup.IMC_scheme_2dof): time 0.002426/0.3611, allocations: 1.081 MB / 0.522 GB, free: 9.422 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001584/0.3627, allocations: 1.323 MB / 0.5233 GB, free: 8.477 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.075e-05/0.3628, allocations: 2.531 kB / 0.5233 GB, free: 8.477 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003344/0.3631, allocations: 72.52 kB / 0.5233 GB, free: 8.441 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002412/0.3633, allocations: 84.22 kB / 0.5234 GB, free: 8.402 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003612/0.3637, allocations: 158.5 kB / 0.5236 GB, free: 8.332 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006298/0.3643, allocations: 468.1 kB / 0.524 GB, free: 8.168 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.3644, allocations: 34.44 kB / 0.524 GB, free: 8.152 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002753/0.3647, allocations: 183.7 kB / 0.5242 GB, free: 8.086 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002593/0.365, allocations: 199.7 kB / 0.5244 GB, free: 8.023 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.347e-05/0.365, allocations: 23.06 kB / 0.5244 GB, free: 8.023 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.476e-05/0.3651, allocations: 25.56 kB / 0.5244 GB, free: 8.02 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001305/0.3652, allocations: 109.3 kB / 0.5245 GB, free: 7.977 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.295e-05/0.3653, allocations: 92.88 kB / 0.5246 GB, free: 7.918 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002953/0.3656, allocations: 278 kB / 0.5249 GB, free: 7.809 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3656, allocations: 0 / 0.5249 GB, free: 7.809 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3656, allocations: 1.125 kB / 0.5249 GB, free: 7.809 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.3656, allocations: 0 / 0.5249 GB, free: 7.809 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.00186/0.3675, allocations: 0.6916 MB / 0.5256 GB, free: 7.391 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.3675, allocations: 10.02 kB / 0.5256 GB, free: 7.391 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.738e-05/0.3676, allocations: 46.58 kB / 0.5256 GB, free: 7.344 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.06e-05/0.3676, allocations: 32.52 kB / 0.5257 GB, free: 7.328 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009553/0.3686, allocations: 356.3 kB / 0.526 GB, free: 7.129 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.862e-05/0.3686, allocations: 10.44 kB / 0.526 GB, free: 7.125 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.888e-05/0.3686, allocations: 18.31 kB / 0.526 GB, free: 7.117 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003444/0.369, allocations: 188.4 kB / 0.5262 GB, free: 7.039 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.369, allocations: 9.938 kB / 0.5262 GB, free: 7.031 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.08e-05/0.369, allocations: 5.219 kB / 0.5262 GB, free: 7.027 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.369, allocations: 7.609 kB / 0.5262 GB, free: 7.023 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003826/0.3694, allocations: 197.2 kB / 0.5264 GB, free: 6.973 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00112/0.3705, allocations: 0.6248 MB / 0.527 GB, free: 6.609 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005669/0.3711, allocations: 256 kB / 0.5273 GB, free: 6.516 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002115/0.3713, allocations: 123.6 kB / 0.5274 GB, free: 6.469 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.378e-05/0.3713, allocations: 2.844 kB / 0.5274 GB, free: 6.469 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.576e-05/0.3713, allocations: 37.95 kB / 0.5274 GB, free: 6.426 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.683e-06/0.3713, allocations: 0 / 0.5274 GB, free: 6.426 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.001841/0.3732, allocations: 0.6217 MB / 0.528 GB, free: 6.234 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.489e-05/0.3732, allocations: 54.75 kB / 0.5281 GB, free: 6.172 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009377/0.3742, allocations: 413.2 kB / 0.5285 GB, free: 6.004 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.148e-05/0.3742, allocations: 30.8 kB / 0.5285 GB, free: 5.969 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.203e-05/0.3742, allocations: 145.6 kB / 0.5287 GB, free: 5.844 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.234e-05/0.3743, allocations: 88.31 kB / 0.5287 GB, free: 5.773 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.781e-05/0.3744, allocations: 51 kB / 0.5288 GB, free: 5.738 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.888e-05/0.3745, allocations: 345.7 kB / 0.5291 GB, free: 5.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001875/0.3747, allocations: 103 kB / 0.5292 GB, free: 5.379 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001864/0.3748, allocations: 113.1 kB / 0.5293 GB, free: 5.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002198/0.377, allocations: 0.7058 MB / 0.53 GB, free: 5.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.377, allocations: 1.312 kB / 0.53 GB, free: 5.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008439/0.3779, allocations: 439.1 kB / 0.5304 GB, free: 4.996 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.3779, allocations: 9.688 kB / 0.5304 GB, free: 4.992 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.3779, allocations: 0 / 0.5304 GB, free: 4.992 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003252/0.3782, allocations: 94.39 kB / 0.5305 GB, free: 4.965 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001924/0.3784, allocations: 44.42 kB / 0.5306 GB, free: 4.957 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00178/0.3802, allocations: 1.731 MB / 0.5323 GB, free: 3.504 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004764/0.3807, allocations: 74.05 kB / 0.5323 GB, free: 3.484 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.687e-05/0.3807, allocations: 9.156 kB / 0.5323 GB, free: 3.48 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.0002721/0.381, allocations: 169.2 kB / 0.5325 GB, free: 3.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.067e-05/0.3811, allocations: 29.81 kB / 0.5325 GB, free: 3.324 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.743e-05/0.3812, allocations: 46.59 kB / 0.5326 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-06/0.3812, allocations: 2.125 kB / 0.5326 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.3812, allocations: 1.375 kB / 0.5326 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.3812, allocations: 2.672 kB / 0.5326 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003954/0.3816, allocations: 296.6 kB / 0.5329 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3816, allocations: 0 / 0.5329 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002142/0.3818, allocations: 34.38 kB / 0.5329 GB, free: 3.066 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002954/0.3821, allocations: 98.33 kB / 0.533 GB, free: 3.035 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.932e-05/0.3821, allocations: 9.703 kB / 0.533 GB, free: 3.031 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001634/0.3837, allocations: 1.731 MB / 0.5347 GB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.3837, allocations: 0.5156 kB / 0.5347 GB, free: 1.574 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/0.3848, allocations: 0.6166 MB / 0.5353 GB, free: 1.273 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.719e-05/0.3849, allocations: 39.34 kB / 0.5353 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.264e-05/0.3849, allocations: 12.89 kB / 0.5353 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004434/0.3854, allocations: 55.48 kB / 0.5354 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.952e-05/0.3854, allocations: 24 kB / 0.5354 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.708e-05/0.3855, allocations: 5.031 kB / 0.5354 GB, free: 1.23 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008399/0.3863, allocations: 329.1 kB / 0.5357 GB, free: 1.105 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3863, allocations: 5.031 kB / 0.5357 GB, free: 1.102 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003889/0.3867, allocations: 60.88 kB / 0.5358 GB, free: 1.094 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.001271/0.388, allocations: 1.16 MB / 0.5369 GB, free: 268 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007925/0.3888, allocations: 400.8 kB / 0.5373 GB, free: 64 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3888, allocations: 1.156 kB / 0.5373 GB, free: 64 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004469/0.3892, allocations: 279.9 kB / 0.5376 GB, free: 15.89 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004257/0.3896, allocations: 47.77 kB / 0.5376 GB, free: 15.87 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006988/0.3966, allocations: 3.587 MB / 0.5411 GB, free: 13.95 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002388/0.3969, allocations: 185.9 kB / 0.5413 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001997/0.3971, allocations: 63.45 kB / 0.5414 GB, free: 13.85 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000171/0.3972, allocations: 85.22 kB / 0.5415 GB, free: 13.79 MB / 398.1 MB Notification: Performance of SimCode: time 1.182e-06/0.3972, allocations: 0 / 0.5415 GB, free: 13.79 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03866/0.4359, allocations: 7.289 MB / 0.5486 GB, free: 10.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.23, allocations: 10.5 kB / 0.5486 GB, free: 10.22 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 & 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: 15.062375823967159] Failed to read output from testmodel.py, exit status != 0: 12.345904713962227 12.362858185 11.993775678 Calling exit ...