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.005157/0.005157, allocations: 102.6 kB / 15.73 MB, free: 5.902 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.001309/0.001309, allocations: 186.4 kB / 16.67 MB, free: 5.824 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.352/1.352, allocations: 222.9 MB / 240.4 MB, free: 4.129 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1926/0.1926, allocations: 22.34 MB / 312.9 MB, free: 12.38 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 62.81 kB / 436.6 MB, free: 34.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09227/0.09355, allocations: 54.97 MB / 491.5 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation): time 0.00268/0.09627, allocations: 1.911 MB / 493.4 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001066/0.09737, allocations: 0.5923 MB / 494 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.09752, allocations: 4 kB / 494 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000328/0.09785, allocations: 55.58 kB / 494.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001873/0.09807, allocations: 47.69 kB / 494.1 MB, free: 15.1 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.0002758/0.09836, allocations: 115.8 kB / 494.2 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004009/0.09877, allocations: 304 kB / 494.5 MB, free: 14.69 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001423/0.09892, allocations: 56.38 kB / 494.6 MB, free: 14.63 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000185/0.09912, allocations: 123.6 kB / 494.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002319/0.09936, allocations: 127.4 kB / 494.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.672e-05/0.09941, allocations: 20 kB / 494.9 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.267e-05/0.09945, allocations: 16 kB / 494.9 MB, free: 14.35 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.534e-05/0.09954, allocations: 59.81 kB / 494.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.872e-05/0.09965, allocations: 95.39 kB / 495 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002359/0.09989, allocations: 207.7 kB / 495.2 MB, free: 14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.09991, allocations: 4 kB / 495.2 MB, free: 13.99 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.09991, allocations: 0 / 495.2 MB, free: 13.99 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.09993, allocations: 0 / 495.2 MB, free: 13.99 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.0013/0.1012, allocations: 0.5827 MB / 495.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.1013, allocations: 12.03 kB / 495.8 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.535e-05/0.1013, allocations: 46.73 kB / 495.9 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.855e-05/0.1014, allocations: 28.59 kB / 495.9 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005865/0.102, allocations: 315.4 kB / 496.2 MB, free: 12.92 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.022e-05/0.102, allocations: 16.38 kB / 496.2 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.063e-05/0.1021, allocations: 16.38 kB / 496.2 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003538/0.1024, allocations: 211.6 kB / 496.4 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.1025, allocations: 3.938 kB / 496.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.353e-05/0.1025, allocations: 7.984 kB / 496.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.757e-05/0.1025, allocations: 8 kB / 496.5 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003277/0.1029, allocations: 155.8 kB / 496.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001062/0.1039, allocations: 0.7231 MB / 497.3 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004849/0.1044, allocations: 226.6 kB / 497.6 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001514/0.1046, allocations: 80.81 kB / 497.6 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.048e-05/0.1046, allocations: 3.938 kB / 497.6 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.181e-05/0.1047, allocations: 42.56 kB / 497.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of pre-optimization done (n=20): time 1.493e-06/0.1047, allocations: 0 / 497.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005569/0.1052, allocations: 261.6 kB / 497.9 MB, free: 11.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.628e-05/0.1053, allocations: 51.41 kB / 498 MB, free: 11.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005013/0.1058, allocations: 296.8 kB / 498.3 MB, free: 10.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.1058, allocations: 29.7 kB / 498.3 MB, free: 10.69 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.718e-05/0.1059, allocations: 144.3 kB / 498.5 MB, free: 10.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.731e-05/0.106, allocations: 74.98 kB / 498.5 MB, free: 10.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.004e-05/0.1061, allocations: 49.7 kB / 498.6 MB, free: 10.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.1062, allocations: 338.8 kB / 498.9 MB, free: 10.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001502/0.1064, allocations: 68.23 kB / 499 MB, free: 10 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001962/0.1066, allocations: 135.2 kB / 499.1 MB, free: 9.852 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001383/0.1079, allocations: 459.2 kB / 499.6 MB, free: 9.383 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.108, allocations: 0 / 499.6 MB, free: 9.383 MB / 366.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004713/0.1084, allocations: 280.6 kB / 499.8 MB, free: 9.105 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.1085, allocations: 8.031 kB / 499.8 MB, free: 9.098 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.1085, allocations: 4 kB / 499.8 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.1085, allocations: 4 kB / 499.8 MB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002874/0.1088, allocations: 63.91 kB / 499.9 MB, free: 9.027 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.1088, allocations: 4 kB / 499.9 MB, free: 9.023 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002653/0.1091, allocations: 47.73 kB / 500 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.89e-05/0.1091, allocations: 4 kB / 500 MB, free: 8.973 MB / 366.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.000192/0.1093, allocations: 162.4 kB / 0.4884 GB, free: 8.805 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.129e-05/0.1094, allocations: 27.66 kB / 0.4884 GB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004417/0.1098, allocations: 232.8 kB / 0.4886 GB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.1098, allocations: 4 kB / 0.4886 GB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.1099, allocations: 0 / 0.4886 GB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.1099, allocations: 0 / 0.4886 GB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000325/0.1102, allocations: 305.3 kB / 0.4889 GB, free: 8.191 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.1102, allocations: 0 / 0.4889 GB, free: 8.191 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002864/0.1105, allocations: 43.92 kB / 0.489 GB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.157e-06/0.1105, allocations: 0 / 0.489 GB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.719e-05/0.1105, allocations: 11.98 kB / 0.489 GB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.1106, allocations: 0 / 0.489 GB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1106, allocations: 3.938 kB / 0.489 GB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005711/0.1111, allocations: 413.2 kB / 0.4894 GB, free: 7.715 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.379e-05/0.1112, allocations: 100.9 kB / 0.4895 GB, free: 7.598 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.453e-05/0.1113, allocations: 4 kB / 0.4895 GB, free: 7.594 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002681/0.1115, allocations: 27.95 kB / 0.4895 GB, free: 7.566 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.707e-05/0.1116, allocations: 15.98 kB / 0.4895 GB, free: 7.551 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.417e-05/0.1116, allocations: 7.984 kB / 0.4895 GB, free: 7.543 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004223/0.1121, allocations: 224.4 kB / 0.4898 GB, free: 7.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1121, allocations: 0 / 0.4898 GB, free: 7.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002969/0.1124, allocations: 39.91 kB / 0.4898 GB, free: 7.281 MB / 366.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.0008923/0.1133, allocations: 0.94 MB / 0.4907 GB, free: 6.316 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004087/0.1137, allocations: 195.7 kB / 0.4909 GB, free: 6.125 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.1137, allocations: 0 / 0.4909 GB, free: 6.125 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000168/0.1139, allocations: 98.52 kB / 0.491 GB, free: 6.031 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003655/0.1143, allocations: 30.77 kB / 0.491 GB, free: 6.004 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003999/0.1183, allocations: 2.743 MB / 0.4937 GB, free: 3.145 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003429/0.1186, allocations: 0.7636 MB / 0.4944 GB, free: 2.355 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000138/0.1188, allocations: 41.92 kB / 0.4945 GB, free: 2.316 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000132/0.1189, allocations: 75.42 kB / 0.4946 GB, free: 2.242 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1189, allocations: 0 / 0.4946 GB, free: 2.242 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02259/0.1415, allocations: 4.761 MB / 0.4992 GB, free: 13.56 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.825/7.967, allocations: 8.938 kB / 0.4992 GB, free: 13.55 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)