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.006032/0.006032, allocations: 96.09 kB / 15.73 MB, free: 6.043 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.00124/0.00124, allocations: 200.8 kB / 16.68 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.364/1.364, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1985/0.1985, allocations: 22.37 MB / 312.9 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001775/0.001775, allocations: 72.97 kB / 436.6 MB, free: 33.99 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08983/0.09162, 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.002365/0.09402, allocations: 1.866 MB / 493.4 MB, free: 15.85 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004587/0.09449, allocations: 195.4 kB / 493.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.04e-05/0.09459, allocations: 3.938 kB / 493.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.09473, allocations: 35.61 kB / 493.6 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 6.565e-05/0.09481, allocations: 15.8 kB / 493.7 MB, free: 15.61 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.0002283/0.09505, allocations: 91.81 kB / 493.7 MB, free: 15.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002918/0.09535, allocations: 240.8 kB / 494 MB, free: 15.28 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001535/0.09551, allocations: 56.67 kB / 494 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.529e-05/0.09561, allocations: 91.61 kB / 494.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001324/0.09575, allocations: 87.55 kB / 494.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.518e-05/0.0958, allocations: 20 kB / 494.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.433e-05/0.09584, allocations: 20 kB / 494.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.573e-05/0.0959, allocations: 55.81 kB / 494.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 8.919e-05/0.096, allocations: 95.41 kB / 494.4 MB, free: 14.87 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002351/0.09624, allocations: 195 kB / 494.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.09625, allocations: 0 / 494.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.09626, allocations: 4 kB / 494.6 MB, free: 14.67 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.09627, 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.0008545/0.09713, allocations: 0.5184 MB / 495.1 MB, free: 14.1 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.09717, allocations: 8.031 kB / 495.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.455e-05/0.09724, allocations: 58.73 kB / 495.2 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.075e-05/0.0973, allocations: 24.8 kB / 495.2 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002919/0.0976, allocations: 244.6 kB / 495.4 MB, free: 13.72 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.888e-05/0.09764, allocations: 20.81 kB / 495.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.349e-05/0.09769, allocations: 28.36 kB / 495.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004192/0.09812, allocations: 236.8 kB / 495.7 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.09814, allocations: 3.938 kB / 495.7 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.067e-05/0.09817, allocations: 15.88 kB / 495.7 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.09818, allocations: 8 kB / 495.7 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003356/0.09852, allocations: 153 kB / 495.9 MB, free: 13.24 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.1002, allocations: 1.026 MB / 496.9 MB, free: 12.15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000316/0.1005, allocations: 154.5 kB / 497.1 MB, free: 11.99 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001506/0.1007, allocations: 72.83 kB / 497.1 MB, free: 11.92 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.05e-05/0.1007, allocations: 0 / 497.1 MB, free: 11.92 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.606e-05/0.1007, allocations: 34.56 kB / 497.2 MB, free: 11.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.262e-06/0.1007, allocations: 0 / 497.2 MB, free: 11.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.0005654/0.1013, allocations: 247.9 kB / 497.4 MB, free: 11.63 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.035e-05/0.1014, allocations: 59.41 kB / 497.5 MB, free: 11.56 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002002/0.1016, allocations: 215.7 kB / 497.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.141e-05/0.1016, allocations: 25.7 kB / 497.7 MB, free: 11.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.1017, allocations: 152.4 kB / 497.9 MB, free: 11.15 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.943e-05/0.1018, allocations: 87.31 kB / 497.9 MB, free: 11.06 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.137e-05/0.1019, allocations: 69.64 kB / 498 MB, free: 10.99 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.102, allocations: 342.8 kB / 498.3 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.1022, allocations: 67.97 kB / 498.4 MB, free: 10.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002251/0.1024, allocations: 166.9 kB / 498.6 MB, free: 10.38 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001389/0.1038, allocations: 477.3 kB / 499 MB, free: 9.871 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.1039, allocations: 0 / 499 MB, free: 9.871 MB / 366.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005261/0.1044, allocations: 321 kB / 499.4 MB, free: 9.551 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.1044, allocations: 8 kB / 499.4 MB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.1044, allocations: 0 / 499.4 MB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.1044, allocations: 8.375 kB / 499.4 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003008/0.1048, allocations: 75.91 kB / 499.4 MB, free: 9.461 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.1048, allocations: 4 kB / 499.5 MB, free: 9.457 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001653/0.1049, allocations: 47.66 kB / 499.5 MB, free: 9.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.071e-05/0.105, allocations: 12 kB / 499.5 MB, free: 9.398 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.0001877/0.1052, allocations: 161.6 kB / 499.7 MB, free: 9.23 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.696e-05/0.1052, allocations: 27.8 kB / 499.7 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000452/0.1057, allocations: 222 kB / 499.9 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.855e-06/0.1057, allocations: 7.984 kB / 499.9 MB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1057, allocations: 0 / 499.9 MB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.1057, allocations: 0 / 499.9 MB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004804/0.1062, allocations: 309.3 kB / 0.4885 GB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.1062, allocations: 7.984 kB / 0.4885 GB, free: 8.609 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003193/0.1065, allocations: 59.91 kB / 0.4886 GB, free: 8.551 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.1066, allocations: 4 kB / 0.4886 GB, free: 8.547 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.611e-05/0.1066, allocations: 4 kB / 0.4886 GB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1066, allocations: 0 / 0.4886 GB, free: 8.543 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.1066, allocations: 4 kB / 0.4886 GB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005836/0.1072, allocations: 383.5 kB / 0.4889 GB, free: 8.145 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.875e-05/0.1073, allocations: 104.9 kB / 0.489 GB, free: 8.023 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.881e-05/0.1073, allocations: 4 kB / 0.489 GB, free: 8.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.1074, allocations: 15.98 kB / 0.4891 GB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.6e-05/0.1075, allocations: 23.97 kB / 0.4891 GB, free: 7.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.231e-05/0.1075, allocations: 4 kB / 0.4891 GB, free: 7.977 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001164/0.1077, allocations: 145 kB / 0.4892 GB, free: 7.836 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1077, allocations: 0 / 0.4892 GB, free: 7.836 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002943/0.108, allocations: 43.95 kB / 0.4893 GB, free: 7.793 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.0008899/0.1089, allocations: 0.9314 MB / 0.4902 GB, free: 6.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004151/0.1093, allocations: 204.4 kB / 0.4904 GB, free: 6.641 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.1093, allocations: 4 kB / 0.4904 GB, free: 6.637 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001734/0.1095, allocations: 99.83 kB / 0.4905 GB, free: 6.539 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003034/0.1098, allocations: 27.48 kB / 0.4905 GB, free: 6.516 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003206/0.113, allocations: 2.658 MB / 0.4931 GB, free: 3.707 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003795/0.1134, allocations: 0.7559 MB / 0.4938 GB, free: 2.926 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001047/0.1135, allocations: 26.28 kB / 0.4939 GB, free: 2.902 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.1136, allocations: 75.41 kB / 0.4939 GB, free: 2.828 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1136, allocations: 0 / 0.4939 GB, free: 2.828 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02656/0.1402, allocations: 4.654 MB / 0.4985 GB, free: 14.26 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.907/8.047, allocations: 0.5938 kB / 0.4985 GB, free: 14.26 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)