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.005181/0.005181, allocations: 101.5 kB / 15.73 MB, free: 6.035 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.001133/0.001133, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2102/0.2102, allocations: 22.35 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 70.11 kB / 436.6 MB, free: 34 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08264/0.08389, allocations: 54.96 MB / 491.5 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_with_locks): time 0.00258/0.08651, allocations: 1.873 MB / 493.4 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004945/0.08703, allocations: 199.3 kB / 493.6 MB, free: 15.65 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000112/0.08716, allocations: 8 kB / 493.6 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001415/0.08733, allocations: 35.53 kB / 493.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 8.364e-05/0.08742, allocations: 19.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.000248/0.08768, allocations: 83.88 kB / 493.7 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002849/0.08797, allocations: 236.8 kB / 494 MB, free: 15.28 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.08813, allocations: 60.38 kB / 494 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001039/0.08824, allocations: 91.62 kB / 494.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001348/0.08839, allocations: 91.53 kB / 494.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.648e-05/0.08843, allocations: 20 kB / 494.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.029e-05/0.08846, allocations: 20 kB / 494.2 MB, free: 15 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.475e-05/0.08851, allocations: 47.83 kB / 494.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 9.045e-05/0.08861, allocations: 103.3 kB / 494.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002029/0.08882, allocations: 187.3 kB / 494.6 MB, free: 14.67 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.08883, allocations: 4 kB / 494.6 MB, free: 14.67 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.08884, allocations: 0 / 494.6 MB, free: 14.67 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.294e-05/0.08886, allocations: 0 / 494.6 MB, free: 14.67 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.0008002/0.08966, allocations: 0.5116 MB / 495.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.08971, allocations: 8.031 kB / 495.1 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.31e-05/0.08977, allocations: 58.72 kB / 495.2 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.235e-05/0.08983, allocations: 32.53 kB / 495.2 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002796/0.09011, allocations: 244.5 kB / 495.4 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.285e-05/0.09015, allocations: 16.81 kB / 495.4 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.801e-05/0.09021, allocations: 24.38 kB / 495.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004092/0.09062, allocations: 236.8 kB / 495.7 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.09064, allocations: 3.938 kB / 495.7 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.131e-05/0.09069, allocations: 12 kB / 495.7 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.803e-06/0.0907, allocations: 4 kB / 495.7 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003398/0.09105, allocations: 165 kB / 495.9 MB, free: 13.24 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00164/0.09269, allocations: 1.018 MB / 496.9 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003099/0.09302, allocations: 154.6 kB / 497.1 MB, free: 12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001475/0.09318, allocations: 68.83 kB / 497.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.509e-05/0.09322, allocations: 8 kB / 497.1 MB, free: 11.92 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/0.09325, allocations: 34.5 kB / 497.2 MB, free: 11.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.593e-06/0.09326, allocations: 0 / 497.2 MB, free: 11.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005761/0.09384, allocations: 239.9 kB / 497.4 MB, free: 11.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.09389, allocations: 55.41 kB / 497.4 MB, free: 11.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001903/0.09408, allocations: 211.8 kB / 497.7 MB, free: 11.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.339e-05/0.09412, allocations: 33.7 kB / 497.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.32e-05/0.09422, allocations: 156.1 kB / 497.8 MB, free: 11.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.861e-05/0.09428, allocations: 78.89 kB / 497.9 MB, free: 11.08 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.809e-05/0.09438, allocations: 69.61 kB / 498 MB, free: 11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.09451, allocations: 334.8 kB / 498.3 MB, free: 10.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001912/0.09471, allocations: 79.91 kB / 498.4 MB, free: 10.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/0.09493, allocations: 166.8 kB / 498.6 MB, free: 10.39 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001399/0.09634, allocations: 473.3 kB / 499 MB, free: 9.887 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.738e-06/0.09636, allocations: 7.938 kB / 499 MB, free: 9.879 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005166/0.09688, allocations: 309 kB / 499.3 MB, free: 9.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.09691, allocations: 8 kB / 499.3 MB, free: 9.562 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.09692, allocations: 4 kB / 499.3 MB, free: 9.559 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.09694, allocations: 4 kB / 499.3 MB, free: 9.555 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000317/0.09726, allocations: 83.83 kB / 499.4 MB, free: 9.473 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.09728, allocations: 4 kB / 499.4 MB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00018/0.09747, allocations: 40.05 kB / 499.5 MB, free: 9.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.271e-05/0.0975, allocations: 16 kB / 499.5 MB, free: 9.414 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.000188/0.0977, allocations: 149.7 kB / 499.6 MB, free: 9.258 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.842e-05/0.09775, allocations: 27.66 kB / 499.7 MB, free: 9.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004676/0.09823, allocations: 225.9 kB / 499.9 MB, free: 9 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.09824, allocations: 8 kB / 499.9 MB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.09825, allocations: 4 kB / 499.9 MB, free: 8.988 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.09827, allocations: 3.984 kB / 499.9 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004806/0.09875, allocations: 313.3 kB / 0.4885 GB, free: 8.629 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.09877, allocations: 3.938 kB / 0.4885 GB, free: 8.625 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003438/0.09912, allocations: 55.97 kB / 0.4885 GB, free: 8.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.989e-06/0.09913, allocations: 0 / 0.4885 GB, free: 8.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.166e-05/0.09916, allocations: 11.94 kB / 0.4885 GB, free: 8.559 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.09916, allocations: 0 / 0.4885 GB, free: 8.559 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.09917, allocations: 0 / 0.4885 GB, free: 8.559 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005679/0.09974, allocations: 383.5 kB / 0.4889 GB, free: 8.164 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.009e-05/0.09981, allocations: 100.8 kB / 0.489 GB, free: 8.047 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.139e-05/0.09985, allocations: 8 kB / 0.489 GB, free: 8.039 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000158/0.1, allocations: 7.984 kB / 0.489 GB, free: 8.031 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.586e-05/0.1001, allocations: 23.97 kB / 0.489 GB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/0.1001, allocations: 8 kB / 0.489 GB, free: 8 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001076/0.1002, allocations: 149 kB / 0.4892 GB, free: 7.855 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1002, allocations: 0 / 0.4892 GB, free: 7.855 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003019/0.1005, allocations: 47.91 kB / 0.4892 GB, free: 7.809 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.0008087/0.1014, allocations: 0.9235 MB / 0.4901 GB, free: 6.863 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004225/0.1018, allocations: 203.7 kB / 0.4903 GB, free: 6.664 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1018, allocations: 3.938 kB / 0.4903 GB, free: 6.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001743/0.102, allocations: 95.84 kB / 0.4904 GB, free: 6.566 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003121/0.1023, allocations: 25.41 kB / 0.4905 GB, free: 6.543 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003087/0.1054, allocations: 2.651 MB / 0.493 GB, free: 3.742 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.1057, allocations: 0.7558 MB / 0.4938 GB, free: 2.961 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001118/0.1058, allocations: 26.3 kB / 0.4938 GB, free: 2.938 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.1059, allocations: 75.41 kB / 0.4939 GB, free: 2.863 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1059, allocations: 0 / 0.4939 GB, free: 2.863 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02134/0.1273, allocations: 4.752 MB / 0.4985 GB, free: 14.2 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.875/8.002, allocations: 7.156 kB / 0.4985 GB, free: 14.2 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Cascade_with_locks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Cascade_with_locks.fmu > AES_AES.Coursework.Typical_control_structures.Cascade_with_locks.pipe 2>&1)