Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.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.Cascade_with_locks,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_with_locks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Cascade_with_locks,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_with_locks",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.006391/0.006391, allocations: 99.52 kB / 15.73 MB, free: 6.039 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.001463/0.001463, allocations: 200.8 kB / 16.68 MB, free: 5.965 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.293/1.293, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1969/0.1969, allocations: 22.36 MB / 312.9 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 57.84 kB / 436.6 MB, free: 33.93 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09205/0.09326, allocations: 54.96 MB / 491.5 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.002338/0.09564, allocations: 1.868 MB / 493.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004091/0.09606, allocations: 195.4 kB / 493.6 MB, free: 15.65 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.186e-05/0.09615, allocations: 3.938 kB / 493.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001278/0.09629, allocations: 39.59 kB / 493.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.479e-05/0.09637, allocations: 15.81 kB / 493.7 MB, free: 15.59 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. [/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.0002116/0.09658, allocations: 87.88 kB / 493.7 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002451/0.09684, allocations: 240.8 kB / 494 MB, free: 15.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001412/0.09698, allocations: 60.64 kB / 494 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.914e-05/0.09707, allocations: 87.64 kB / 494.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001228/0.0972, allocations: 99.45 kB / 494.2 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.199e-05/0.09724, allocations: 20 kB / 494.2 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.624e-05/0.09727, allocations: 20 kB / 494.3 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.91e-05/0.09733, allocations: 51.78 kB / 494.3 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.659e-05/0.09742, allocations: 95.39 kB / 494.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002177/0.09764, allocations: 203 kB / 494.6 MB, free: 14.65 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.09765, allocations: 0 / 494.6 MB, free: 14.65 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.562e-06/0.09766, allocations: 0 / 494.6 MB, free: 14.65 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.09767, allocations: 0 / 494.6 MB, free: 14.65 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007971/0.09847, allocations: 0.5106 MB / 495.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.09852, allocations: 8.031 kB / 495.1 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.535e-05/0.09858, allocations: 58.72 kB / 495.2 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.044e-05/0.09863, allocations: 28.73 kB / 495.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002739/0.09891, allocations: 240.7 kB / 495.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.25e-05/0.09895, allocations: 16.81 kB / 495.5 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.668e-05/0.09901, allocations: 28.38 kB / 495.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004265/0.09944, allocations: 240.8 kB / 495.7 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.09946, allocations: 3.938 kB / 495.7 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.086e-05/0.09949, allocations: 4 kB / 495.7 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.0995, allocations: 8 kB / 495.7 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003389/0.09985, allocations: 161 kB / 495.9 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001618/0.1015, allocations: 1.022 MB / 496.9 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000305/0.1018, allocations: 158.5 kB / 497.1 MB, free: 11.98 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001532/0.102, allocations: 68.83 kB / 497.1 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.489e-05/0.102, allocations: 4 kB / 497.1 MB, free: 11.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.498e-05/0.102, allocations: 38.56 kB / 497.2 MB, free: 11.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.313e-06/0.102, allocations: 0 / 497.2 MB, free: 11.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005576/0.1026, allocations: 240.2 kB / 497.4 MB, free: 11.62 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.614e-05/0.1026, allocations: 55.41 kB / 497.5 MB, free: 11.55 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001871/0.1028, allocations: 219.7 kB / 497.7 MB, free: 11.33 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.149e-05/0.1029, allocations: 33.7 kB / 497.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.93e-05/0.103, allocations: 152.4 kB / 497.9 MB, free: 11.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.944e-05/0.103, allocations: 83.33 kB / 497.9 MB, free: 11.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.604e-05/0.1031, allocations: 69.64 kB / 498 MB, free: 10.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.1033, allocations: 338.8 kB / 498.3 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001736/0.1034, allocations: 75.95 kB / 498.4 MB, free: 10.56 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002126/0.1037, allocations: 169 kB / 498.6 MB, free: 10.36 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001377/0.105, allocations: 473.3 kB / 499 MB, free: 9.859 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.155e-06/0.1051, allocations: 3.938 kB / 499 MB, free: 9.855 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.000525/0.1056, allocations: 313.5 kB / 499.4 MB, free: 9.543 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.1056, allocations: 9.719 kB / 499.4 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.1056, allocations: 0 / 499.4 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.1057, allocations: 8 kB / 499.4 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003048/0.106, allocations: 83.83 kB / 499.5 MB, free: 9.445 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.878e-06/0.106, allocations: 7.984 kB / 499.5 MB, free: 9.438 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001645/0.1062, allocations: 43.61 kB / 499.5 MB, free: 9.395 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.089e-05/0.1062, allocations: 16 kB / 499.5 MB, free: 9.379 MB / 366.1 MB Warning: Assuming fixed start value for the following 2 variables: P_I.y:VARIABLE(flow=false start = P_I.y_start fixed = true ) "Connector of Real output signal" type: Real P_E.y:VARIABLE(flow=false start = P_E.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 8 (PI_I.LOsat,PI_I.HIsat,PI_E.LOsat,PI_E.HIsat,PI_I.iNoDec,PI_I.iNoInc,PI_I.iTS,PI_E.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0001684/0.1064, allocations: 157.7 kB / 499.7 MB, free: 9.215 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.275e-05/0.1064, allocations: 27.8 kB / 499.7 MB, free: 9.188 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000431/0.1069, allocations: 225.9 kB / 499.9 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.99e-06/0.1069, allocations: 4 kB / 499.9 MB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1069, allocations: 0 / 499.9 MB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1069, allocations: 0 / 499.9 MB, free: 8.953 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004501/0.1073, allocations: 317.3 kB / 0.4885 GB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.1074, allocations: 0 / 0.4885 GB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003183/0.1077, allocations: 55.91 kB / 0.4886 GB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1077, allocations: 4 kB / 0.4886 GB, free: 8.535 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.745e-05/0.1077, allocations: 4 kB / 0.4886 GB, free: 8.531 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.1077, allocations: 4 kB / 0.4886 GB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1077, allocations: 0 / 0.4886 GB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005701/0.1083, allocations: 384.6 kB / 0.4889 GB, free: 8.133 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.16e-05/0.1084, allocations: 96.91 kB / 0.489 GB, free: 8.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.091e-05/0.1084, allocations: 8 kB / 0.489 GB, free: 8.012 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001552/0.1086, allocations: 15.98 kB / 0.4891 GB, free: 7.996 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.517e-05/0.1086, allocations: 24 kB / 0.4891 GB, free: 7.973 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.264e-05/0.1087, allocations: 8 kB / 0.4891 GB, free: 7.965 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.973e-05/0.1088, allocations: 145 kB / 0.4892 GB, free: 7.824 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1088, allocations: 0 / 0.4892 GB, free: 7.824 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002902/0.1091, allocations: 43.95 kB / 0.4893 GB, free: 7.781 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (P_I.y,P_E.y,PI_E.xfb,PI_E.xBias,PI_E.u,PI_E.csfil,PI_I.xfb,PI_I.xBias,PI_I.u,PI_I.csfil) * Number of discrete variables: 4 (PI_E.HIsat,PI_E.LOsat,PI_I.HIsat,PI_I.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 23 * 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.000817/0.1099, allocations: 0.9266 MB / 0.4902 GB, free: 6.832 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004098/0.1103, allocations: 215.8 kB / 0.4904 GB, free: 6.621 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1103, allocations: 3.938 kB / 0.4904 GB, free: 6.617 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000165/0.1105, allocations: 91.89 kB / 0.4905 GB, free: 6.527 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000307/0.1108, allocations: 28.66 kB / 0.4905 GB, free: 6.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002881/0.1137, allocations: 2.652 MB / 0.4931 GB, free: 3.699 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002762/0.114, allocations: 0.752 MB / 0.4938 GB, free: 2.922 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001075/0.1141, allocations: 30.28 kB / 0.4939 GB, free: 2.895 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001238/0.1142, allocations: 79.41 kB / 0.4939 GB, free: 2.816 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1142, allocations: 3.938 kB / 0.4939 GB, free: 2.812 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0216/0.1359, allocations: 4.644 MB / 0.4985 GB, free: 14.26 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.874/8.01, allocations: 10.86 kB / 0.4985 GB, free: 14.25 MB / 382.1 MB (rm -f AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.Cascade_with_locks_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 AES_AES_Coursework_Typical_control_structures_Cascade_with_locks.fmu > AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe 2>&1)