Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.FF_compensation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.Typical_control_structures.FF_compensation,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.FF_compensation,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007585/0.007585, allocations: 99.77 kB / 15.73 MB, free: 6.012 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001855/0.001855, allocations: 193.5 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09634/0.09634, allocations: 22.32 MB / 312.9 MB, free: 8.871 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001831/0.001831, allocations: 67.89 kB / 436.5 MB, free: 12.23 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09836/0.1002, allocations: 54.96 MB / 491.5 MB, free: 5.227 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation): time 0.002958/0.1032, allocations: 1.9 MB / 493.4 MB, free: 3.309 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009999/0.1042, allocations: 0.5923 MB / 494 MB, free: 2.711 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.541e-05/0.1043, allocations: 7.938 kB / 494 MB, free: 2.703 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003282/0.1047, allocations: 51.59 kB / 494 MB, free: 2.652 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001763/0.1049, allocations: 51.69 kB / 494.1 MB, free: 2.602 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.0002493/0.1051, allocations: 111.8 kB / 494.2 MB, free: 2.492 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003711/0.1055, allocations: 312 kB / 494.5 MB, free: 2.188 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001403/0.1056, allocations: 56.38 kB / 494.6 MB, free: 2.133 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001517/0.1058, allocations: 111.6 kB / 494.7 MB, free: 2.023 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002056/0.106, allocations: 127.5 kB / 494.8 MB, free: 1.898 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.395e-05/0.1061, allocations: 16 kB / 494.8 MB, free: 1.883 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.353e-05/0.1061, allocations: 23.94 kB / 494.8 MB, free: 1.859 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.487e-05/0.1062, allocations: 63.8 kB / 494.9 MB, free: 1.797 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000106/0.1063, allocations: 95.34 kB / 495 MB, free: 1.703 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002447/0.1066, allocations: 199.1 kB / 495.2 MB, free: 1.508 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1066, allocations: 4 kB / 495.2 MB, free: 1.504 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1066, allocations: 0 / 495.2 MB, free: 1.504 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.1066, allocations: 0 / 495.2 MB, free: 1.504 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.001317/0.1079, allocations: 0.5958 MB / 495.8 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.108, allocations: 8.031 kB / 495.8 MB, free: 0.8516 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.478e-05/0.108, allocations: 50.73 kB / 495.8 MB, free: 0.793 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.26e-05/0.1081, allocations: 24.8 kB / 495.9 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006076/0.1087, allocations: 319.6 kB / 496.2 MB, free: 428 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.208e-05/0.1087, allocations: 16.38 kB / 496.2 MB, free: 412 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.768e-05/0.1088, allocations: 16.38 kB / 496.2 MB, free: 396 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004011/0.1092, allocations: 207.6 kB / 496.4 MB, free: 172 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.1092, allocations: 0 / 496.4 MB, free: 172 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.933e-05/0.1092, allocations: 4 kB / 496.4 MB, free: 168 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.1092, allocations: 15.88 kB / 496.4 MB, free: 152 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003284/0.1096, allocations: 147.9 kB / 496.6 MB, free: 4 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001049/0.1106, allocations: 0.7272 MB / 497.3 MB, free: 15.22 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000488/0.1111, allocations: 222.6 kB / 497.5 MB, free: 14.99 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/0.1113, allocations: 80.81 kB / 497.6 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.175e-05/0.1113, allocations: 7.938 kB / 497.6 MB, free: 14.9 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/0.1114, allocations: 38.56 kB / 497.7 MB, free: 14.86 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.152e-06/0.1114, allocations: 0 / 497.7 MB, free: 14.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005736/0.112, allocations: 267.9 kB / 497.9 MB, free: 14.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.762e-05/0.112, allocations: 59.34 kB / 498 MB, free: 14.52 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005248/0.1125, allocations: 292.9 kB / 498.3 MB, free: 14.22 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.276e-05/0.1126, allocations: 29.7 kB / 498.3 MB, free: 14.19 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.1127, allocations: 156.3 kB / 498.4 MB, free: 14.03 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.232e-05/0.1127, allocations: 71.39 kB / 498.5 MB, free: 13.96 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.999e-05/0.1128, allocations: 49.7 kB / 498.6 MB, free: 13.91 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.113, allocations: 334.8 kB / 498.9 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.1131, allocations: 72.23 kB / 499 MB, free: 13.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001853/0.1133, allocations: 135 kB / 499.1 MB, free: 13.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001352/0.1147, allocations: 459.6 kB / 499.5 MB, free: 12.88 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1147, allocations: 0 / 499.5 MB, free: 12.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004655/0.1152, allocations: 283.5 kB / 499.8 MB, free: 12.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.1152, allocations: 8 kB / 499.8 MB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1152, allocations: 0 / 499.8 MB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.1152, allocations: 4 kB / 499.8 MB, free: 12.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002698/0.1155, allocations: 63.91 kB / 499.9 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.1155, allocations: 7.938 kB / 499.9 MB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000251/0.1158, allocations: 47.8 kB / 499.9 MB, free: 12.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2e-05/0.1158, allocations: 12 kB / 500 MB, free: 12.45 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: M.y:VARIABLE(flow=false start = M.y_start fixed = true ) "Connector of Real output signal" type: Real PI.xfb:VARIABLE(fixed = true ) type: Real P.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (PI.LOsat,PI.HIsat,PI.iNoDec,PI.iNoInc,PI.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001856/0.116, allocations: 158.4 kB / 0.4884 GB, free: 12.29 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.851e-05/0.1161, allocations: 23.8 kB / 0.4884 GB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004419/0.1165, allocations: 231.7 kB / 0.4886 GB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.1165, allocations: 4 kB / 0.4886 GB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1165, allocations: 0 / 0.4886 GB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.83e-06/0.1166, allocations: 0 / 0.4886 GB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003377/0.1169, allocations: 297.5 kB / 0.4889 GB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.1169, allocations: 0 / 0.4889 GB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002606/0.1172, allocations: 47.86 kB / 0.489 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.1172, allocations: 0 / 0.489 GB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.472e-05/0.1172, allocations: 11.98 kB / 0.489 GB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.1172, allocations: 0 / 0.489 GB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1172, allocations: 0 / 0.489 GB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005896/0.1178, allocations: 419 kB / 0.4894 GB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.551e-05/0.1179, allocations: 108.9 kB / 0.4895 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.384e-05/0.1179, allocations: 8 kB / 0.4895 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002565/0.1182, allocations: 31.89 kB / 0.4895 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.732e-05/0.1183, allocations: 15.98 kB / 0.4895 GB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.364e-05/0.1183, allocations: 7.984 kB / 0.4895 GB, free: 11.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004121/0.1187, allocations: 220.4 kB / 0.4897 GB, free: 10.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1187, allocations: 0 / 0.4897 GB, free: 10.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002736/0.119, allocations: 43.94 kB / 0.4898 GB, free: 10.75 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (M.y,C.x_scaled[1],P.x_scaled[1],PI.xfb,PI.xBias,PI.u,PI.csfil) * Number of discrete variables: 2 (PI.HIsat,PI.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008845/0.1199, allocations: 0.9439 MB / 0.4907 GB, free: 9.785 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003979/0.1203, allocations: 197.8 kB / 0.4909 GB, free: 9.594 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1203, allocations: 0 / 0.4909 GB, free: 9.594 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001677/0.1205, allocations: 95.89 kB / 0.491 GB, free: 9.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003426/0.1208, allocations: 30.45 kB / 0.491 GB, free: 9.473 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003919/0.1248, allocations: 2.735 MB / 0.4937 GB, free: 6.621 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000374/0.1251, allocations: 0.7635 MB / 0.4944 GB, free: 5.832 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001148/0.1253, allocations: 41.92 kB / 0.4945 GB, free: 5.793 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001275/0.1254, allocations: 71.42 kB / 0.4945 GB, free: 5.723 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1254, allocations: 0 / 0.4945 GB, free: 5.723 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02584/0.1513, allocations: 4.673 MB / 0.4991 GB, free: 1.141 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.712/7.863, allocations: 15.22 kB / 0.4991 GB, free: 1.129 MB / 382.1 MB (rm -f AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.FF_compensation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_FF_compensation_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_FF_compensation.fmu > AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe 2>&1)