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.005054/0.005054, allocations: 101.1 kB / 15.73 MB, free: 6.047 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.001177/0.001177, allocations: 201.5 kB / 16.68 MB, free: 5.973 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.301/1.301, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2139/0.2139, allocations: 22.35 MB / 312.9 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 62.34 kB / 436.6 MB, free: 34.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09596/0.09713, allocations: 54.96 MB / 491.5 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation): time 0.0024/0.09957, allocations: 1.916 MB / 493.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008983/0.1005, allocations: 0.5845 MB / 494 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.404e-05/0.1006, allocations: 4 kB / 494 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002794/0.1009, allocations: 59.56 kB / 494.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001582/0.101, allocations: 51.7 kB / 494.1 MB, free: 15.09 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.0002236/0.1013, allocations: 111.8 kB / 494.3 MB, free: 14.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003067/0.1016, allocations: 308 kB / 494.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001267/0.1017, allocations: 52.39 kB / 494.6 MB, free: 14.63 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001384/0.1019, allocations: 119.5 kB / 494.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001774/0.1021, allocations: 135.5 kB / 494.9 MB, free: 14.38 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.399e-05/0.1021, allocations: 16 kB / 494.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.869e-05/0.1021, allocations: 20 kB / 494.9 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.983e-05/0.1022, allocations: 59.77 kB / 494.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.665e-05/0.1023, allocations: 95.39 kB / 495 MB, free: 14.19 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002001/0.1025, allocations: 199.8 kB / 495.2 MB, free: 14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.1025, allocations: 11.92 kB / 495.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1025, allocations: 0 / 495.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.1025, allocations: 0 / 495.2 MB, free: 13.98 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.001162/0.1037, allocations: 0.5807 MB / 495.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.1038, allocations: 12.03 kB / 495.8 MB, free: 13.34 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.728e-05/0.1038, allocations: 50.73 kB / 495.9 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.436e-05/0.1039, allocations: 24.66 kB / 495.9 MB, free: 13.26 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000526/0.1044, allocations: 315.4 kB / 496.2 MB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.163e-05/0.1044, allocations: 12.38 kB / 496.2 MB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.6e-05/0.1045, allocations: 20.38 kB / 496.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003266/0.1048, allocations: 207.5 kB / 496.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.1048, allocations: 0 / 496.5 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.038e-05/0.1048, allocations: 19.91 kB / 496.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.1049, allocations: 4 kB / 496.5 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003057/0.1052, allocations: 151.8 kB / 496.6 MB, free: 12.49 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009366/0.1061, allocations: 0.7309 MB / 497.4 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004491/0.1066, allocations: 217.3 kB / 497.6 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001434/0.1067, allocations: 80.83 kB / 497.7 MB, free: 11.4 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.674e-05/0.1068, allocations: 7.938 kB / 497.7 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.267e-05/0.1068, allocations: 34.5 kB / 497.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of pre-optimization done (n=20): time 1.202e-06/0.1068, allocations: 0 / 497.7 MB, free: 11.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005206/0.1073, allocations: 265.6 kB / 498 MB, free: 11.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.868e-05/0.1074, allocations: 55.41 kB / 498 MB, free: 11.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004515/0.1078, allocations: 288.8 kB / 498.3 MB, free: 10.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.131e-05/0.1078, allocations: 33.7 kB / 498.3 MB, free: 10.69 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.462e-05/0.1079, allocations: 140.3 kB / 498.5 MB, free: 10.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.532e-05/0.108, allocations: 82.98 kB / 498.5 MB, free: 10.46 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.004e-05/0.1081, allocations: 49.7 kB / 498.6 MB, free: 10.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000109/0.1082, allocations: 334.8 kB / 498.9 MB, free: 10.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001429/0.1083, allocations: 76.23 kB / 499 MB, free: 9.996 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001697/0.1085, allocations: 123.2 kB / 499.1 MB, free: 9.855 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001315/0.1098, allocations: 463.7 kB / 499.6 MB, free: 9.383 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1099, allocations: 0 / 499.6 MB, free: 9.383 MB / 366.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004324/0.1103, allocations: 284.3 kB / 499.8 MB, free: 9.102 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.1103, allocations: 8 kB / 499.8 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.1103, allocations: 0 / 499.8 MB, free: 9.094 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.1104, allocations: 4 kB / 499.9 MB, free: 9.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000277/0.1106, allocations: 60.09 kB / 499.9 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.798e-06/0.1107, allocations: 11.98 kB / 499.9 MB, free: 9.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002417/0.1109, allocations: 47.75 kB / 500 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.869e-05/0.1109, allocations: 12 kB / 500 MB, free: 8.961 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.0001727/0.1111, allocations: 150.5 kB / 0.4884 GB, free: 8.805 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.548e-05/0.1112, allocations: 27.59 kB / 0.4884 GB, free: 8.777 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004361/0.1116, allocations: 236.4 kB / 0.4887 GB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.1116, allocations: 3.984 kB / 0.4887 GB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1116, allocations: 0 / 0.4887 GB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1116, allocations: 4 kB / 0.4887 GB, free: 8.531 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002893/0.1119, allocations: 293.3 kB / 0.4889 GB, free: 8.195 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.1119, allocations: 4 kB / 0.4889 GB, free: 8.191 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002673/0.1122, allocations: 43.92 kB / 0.489 GB, free: 8.148 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.1122, allocations: 4 kB / 0.489 GB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.797e-05/0.1123, allocations: 7.938 kB / 0.489 GB, free: 8.137 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.1123, allocations: 4 kB / 0.489 GB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1123, allocations: 0 / 0.489 GB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005183/0.1128, allocations: 412.4 kB / 0.4894 GB, free: 7.715 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.278e-05/0.1129, allocations: 100.8 kB / 0.4895 GB, free: 7.598 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.059e-05/0.1129, allocations: 8 kB / 0.4895 GB, free: 7.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002576/0.1132, allocations: 35.95 kB / 0.4895 GB, free: 7.555 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.603e-05/0.1132, allocations: 7.984 kB / 0.4895 GB, free: 7.547 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/0.1132, allocations: 8 kB / 0.4896 GB, free: 7.539 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003742/0.1136, allocations: 220.4 kB / 0.4898 GB, free: 7.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1136, allocations: 0 / 0.4898 GB, free: 7.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000272/0.1139, allocations: 47.91 kB / 0.4898 GB, free: 7.273 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.000783/0.1147, allocations: 0.9329 MB / 0.4907 GB, free: 6.316 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003734/0.1151, allocations: 203.8 kB / 0.4909 GB, free: 6.117 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1151, allocations: 0 / 0.4909 GB, free: 6.117 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001522/0.1152, allocations: 91.91 kB / 0.491 GB, free: 6.027 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003246/0.1156, allocations: 36.34 kB / 0.491 GB, free: 5.992 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003528/0.1191, allocations: 2.746 MB / 0.4937 GB, free: 3.133 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000317/0.1194, allocations: 0.7597 MB / 0.4945 GB, free: 2.348 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000113/0.1196, allocations: 41.94 kB / 0.4945 GB, free: 2.309 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001254/0.1197, allocations: 75.41 kB / 0.4946 GB, free: 2.234 MB / 366.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1197, allocations: 0 / 0.4946 GB, free: 2.234 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02/0.1397, allocations: 4.67 MB / 0.4991 GB, free: 13.64 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.462/7.602, allocations: 7.188 kB / 0.4991 GB, free: 13.64 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)