Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.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_actuation_schemes.SplitRange_equalising,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_SplitRange_equalising",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_actuation_schemes.SplitRange_equalising,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_SplitRange_equalising",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.00155/0.00155, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001758/0.001758, allocations: 194.6 kB / 16.53 MB, free: 6.699 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.309/1.309, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.188/0.188, allocations: 22.35 MB / 312.7 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 55.91 kB / 380.9 MB, free: 10.42 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.2613, allocations: 54.94 MB / 435.9 MB, free: 39.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.SplitRange_equalising): time 0.002428/0.2637, allocations: 1.932 MB / 437.8 MB, free: 38.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00084/0.2646, allocations: 0.664 MB / 438.5 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.023e-05/0.2647, allocations: 2.438 kB / 438.5 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002726/0.265, allocations: 83.47 kB / 438.5 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001956/0.2652, allocations: 99.19 kB / 438.6 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002215/0.2654, allocations: 144.2 kB / 438.8 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002972/0.2657, allocations: 432.2 kB / 439.2 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000119/0.2658, allocations: 63.23 kB / 439.3 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.266, allocations: 172.3 kB / 439.4 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002042/0.2662, allocations: 189.6 kB / 439.6 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.168e-05/0.2663, allocations: 22.69 kB / 439.6 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.964e-05/0.2663, allocations: 22.38 kB / 439.7 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001021/0.2664, allocations: 95.73 kB / 439.8 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.793e-05/0.2665, allocations: 121.1 kB / 439.9 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001846/0.2667, allocations: 266 kB / 440.1 MB, free: 37.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2667, allocations: 4 kB / 440.1 MB, free: 37.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2667, allocations: 0 / 440.1 MB, free: 37.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.2667, allocations: 2.938 kB / 440.1 MB, free: 37.07 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001617/0.2683, allocations: 0.741 MB / 440.9 MB, free: 36.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.2684, allocations: 14.28 kB / 440.9 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.193e-05/0.2684, allocations: 47.3 kB / 440.9 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.437e-05/0.2685, allocations: 34.31 kB / 441 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000791/0.2693, allocations: 417.2 kB / 441.4 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.137e-05/0.2693, allocations: 9.031 kB / 441.4 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.611e-05/0.2693, allocations: 17.89 kB / 441.4 MB, free: 36.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002492/0.2696, allocations: 179.2 kB / 441.6 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.2696, allocations: 0 / 441.6 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/0.2696, allocations: 4 kB / 441.6 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.2697, allocations: 2.812 kB / 441.6 MB, free: 36.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000282/0.2699, allocations: 185.6 kB / 441.8 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008837/0.2708, allocations: 0.6462 MB / 442.4 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004295/0.2713, allocations: 252 kB / 442.7 MB, free: 35.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001475/0.2714, allocations: 105.7 kB / 442.8 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.2715, allocations: 14.92 kB / 442.8 MB, free: 35.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.224e-05/0.2715, allocations: 37.56 kB / 442.8 MB, free: 35.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.353e-06/0.2715, allocations: 0 / 442.8 MB, free: 35.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.000538/0.272, allocations: 336.7 kB / 443.1 MB, free: 35.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.927e-05/0.2721, allocations: 58.16 kB / 443.2 MB, free: 35.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007682/0.2728, allocations: 421.7 kB / 443.6 MB, free: 35.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.662e-05/0.2729, allocations: 32.67 kB / 443.6 MB, free: 35.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.211e-05/0.2729, allocations: 151 kB / 443.8 MB, free: 34.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.158e-05/0.273, allocations: 84.91 kB / 443.9 MB, free: 34.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.357e-05/0.2731, allocations: 39.08 kB / 443.9 MB, free: 34.87 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.511e-05/0.2731, allocations: 345.7 kB / 444.3 MB, free: 34.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001399/0.2733, allocations: 92.39 kB / 444.3 MB, free: 34.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001251/0.2734, allocations: 88.66 kB / 444.4 MB, free: 34.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002138/0.2755, allocations: 0.6222 MB / 445.1 MB, free: 34.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2756, allocations: 3.938 kB / 445.1 MB, free: 34.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004041/0.276, allocations: 317.5 kB / 445.4 MB, free: 34.2 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.314e-05/0.276, allocations: 9.594 kB / 445.4 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.276, allocations: 0 / 445.4 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.276, allocations: 6.844 kB / 445.4 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002384/0.2763, allocations: 42.14 kB / 445.4 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.2763, allocations: 2.969 kB / 445.4 MB, free: 34.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003657/0.2766, allocations: 60.06 kB / 445.5 MB, free: 34.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.833e-05/0.2767, allocations: 5.656 kB / 445.5 MB, free: 34.18 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 variables: Act1.y:VARIABLE(flow=false start = Act1.y_start fixed = true ) "Connector of Real output signal" type: Real Act2.y:VARIABLE(flow=false start = Act2.y_start fixed = true ) "Connector of Real output signal" type: Real FA1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] FA2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cfb.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001659/0.2768, allocations: 177 kB / 445.7 MB, free: 34.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.589e-05/0.2769, allocations: 31.72 kB / 445.7 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005085/0.2774, allocations: 312.7 kB / 446 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.2774, allocations: 2.875 kB / 446 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.2774, allocations: 0 / 446 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.2775, allocations: 0 / 446 MB, free: 33.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000326/0.2778, allocations: 350.1 kB / 446.3 MB, free: 33.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.2778, allocations: 0 / 446.3 MB, free: 33.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002853/0.2781, allocations: 43.67 kB / 446.4 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.2781, allocations: 3.938 kB / 446.4 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.936e-05/0.2781, allocations: 14.3 kB / 446.4 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.2781, allocations: 11.56 kB / 446.4 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2781, allocations: 0 / 446.4 MB, free: 33.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006219/0.2788, allocations: 498.5 kB / 446.9 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.587e-05/0.2788, allocations: 107.4 kB / 447 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.92e-05/0.2789, allocations: 14.08 kB / 447 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004067/0.2793, allocations: 51.41 kB / 447.1 MB, free: 33.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.539e-05/0.2794, allocations: 15.02 kB / 447.1 MB, free: 33.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.519e-05/0.2794, allocations: 9.25 kB / 447.1 MB, free: 33.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007023/0.2801, allocations: 331.6 kB / 447.4 MB, free: 33.09 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2801, allocations: 0 / 447.4 MB, free: 33.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002873/0.2804, allocations: 48.81 kB / 447.5 MB, free: 33.08 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Process.x_scaled[1],Process.x_scaled[2],Cfb.x_scaled[1],Act1.y,Act2.y,FA2.x_scaled[1],FA1.x_scaled[1]) * Number of discrete variables: 0 () * 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.0007035/0.2811, allocations: 1.037 MB / 448.5 MB, free: 32.28 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003909/0.2815, allocations: 262.6 kB / 448.8 MB, free: 32.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2815, allocations: 0 / 448.8 MB, free: 32.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001564/0.2817, allocations: 124.7 kB / 448.9 MB, free: 32.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004229/0.2821, allocations: 56.25 kB / 448.9 MB, free: 32.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004482/0.2866, allocations: 3.297 MB / 452.2 MB, free: 30.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001903/0.2868, allocations: 0.7908 MB / 453 MB, free: 29.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001588/0.287, allocations: 64.02 kB / 453.1 MB, free: 29.57 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001373/0.2871, allocations: 97.06 kB / 453.2 MB, free: 29.5 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2871, allocations: 0 / 453.2 MB, free: 29.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0786/0.3657, allocations: 5.85 MB / 459 MB, free: 28.9 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.6, allocations: 8.75 kB / 459 MB, free: 28.89 MB / 350.1 MB (rm -f AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.pipe ; mkfifo AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.pipe >> ../files/AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_actuation_schemes_SplitRange_equalising_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_actuation_schemes_SplitRange_equalising.fmu > AES_AES.Coursework.Typical_actuation_schemes.SplitRange_equalising.pipe 2>&1)