Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.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_cascadeLoops,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_SplitRange_cascadeLoops",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_SplitRange_cascadeLoops",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.001457/0.001462, 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.001672/0.001672, allocations: 194.7 kB / 16.53 MB, free: 6.664 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.446/1.446, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1958/0.1958, allocations: 22.34 MB / 312.7 MB, free: 12.52 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 55.91 kB / 380.9 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.2759, allocations: 54.94 MB / 435.9 MB, free: 39.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops): time 0.002929/0.2789, allocations: 2.003 MB / 437.9 MB, free: 38.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009443/0.2798, allocations: 0.6824 MB / 438.6 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001043/0.2799, allocations: 2.625 kB / 438.6 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003173/0.2803, allocations: 81.38 kB / 438.6 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002097/0.2805, allocations: 96.42 kB / 438.7 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002687/0.2808, allocations: 159.6 kB / 438.9 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003791/0.2812, allocations: 451.3 kB / 439.3 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001698/0.2813, allocations: 78.86 kB / 439.4 MB, free: 37.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001692/0.2815, allocations: 183.3 kB / 439.6 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002367/0.2818, allocations: 204.8 kB / 439.8 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.508e-05/0.2818, allocations: 29.69 kB / 439.8 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.577e-05/0.2819, allocations: 26.84 kB / 439.8 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000118/0.282, allocations: 102.4 kB / 439.9 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.2821, allocations: 135.6 kB / 440.1 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002269/0.2823, allocations: 280 kB / 440.3 MB, free: 36.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.2824, allocations: 0 / 440.3 MB, free: 36.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2824, allocations: 0 / 440.3 MB, free: 36.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.2824, allocations: 0 / 440.3 MB, free: 36.93 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001741/0.2841, allocations: 0.7714 MB / 441.1 MB, free: 36.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.2842, allocations: 10.5 kB / 441.1 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.493e-05/0.2842, allocations: 45.62 kB / 441.2 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.17e-05/0.2843, allocations: 37.97 kB / 441.2 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008224/0.2851, allocations: 424.1 kB / 441.6 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.72e-05/0.2851, allocations: 12.52 kB / 441.6 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.029e-05/0.2852, allocations: 18.84 kB / 441.6 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002906/0.2855, allocations: 204 kB / 441.8 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.2855, allocations: 2.531 kB / 441.9 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.987e-05/0.2855, allocations: 4 kB / 441.9 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.2855, allocations: 3.562 kB / 441.9 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003111/0.2859, allocations: 206.6 kB / 442.1 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000984/0.2869, allocations: 0.6991 MB / 442.8 MB, free: 35.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006433/0.2875, allocations: 311.2 kB / 443.1 MB, free: 35.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000185/0.2877, allocations: 124.1 kB / 443.2 MB, free: 35.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.562e-05/0.2877, allocations: 10.86 kB / 443.2 MB, free: 35.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.839e-05/0.2878, allocations: 38.5 kB / 443.2 MB, free: 35.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.433e-06/0.2878, allocations: 0 / 443.2 MB, free: 35.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0006371/0.2884, allocations: 365.5 kB / 443.6 MB, free: 35.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.553e-05/0.2885, allocations: 54.25 kB / 443.6 MB, free: 35.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008083/0.2893, allocations: 427 kB / 444.1 MB, free: 34.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.989e-05/0.2893, allocations: 28.42 kB / 444.1 MB, free: 34.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.047e-05/0.2894, allocations: 165.7 kB / 444.2 MB, free: 34.74 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.689e-05/0.2895, allocations: 86.31 kB / 444.3 MB, free: 34.67 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.505e-05/0.2895, allocations: 48.34 kB / 444.4 MB, free: 34.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.38e-05/0.2896, allocations: 340.9 kB / 444.7 MB, free: 34.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001538/0.2898, allocations: 95.72 kB / 444.8 MB, free: 34.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001459/0.2899, allocations: 103.7 kB / 444.9 MB, free: 34.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0022/0.2921, allocations: 0.659 MB / 445.6 MB, free: 34.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.2922, allocations: 4 kB / 445.6 MB, free: 34.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004498/0.2926, allocations: 340.9 kB / 445.9 MB, free: 33.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.2926, allocations: 7.781 kB / 445.9 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.531e-05/0.2927, allocations: 0 / 445.9 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.2927, allocations: 0 / 445.9 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002639/0.2929, allocations: 62.08 kB / 446 MB, free: 33.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.171e-06/0.293, allocations: 0 / 446 MB, free: 33.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003658/0.2933, allocations: 61.2 kB / 446 MB, free: 33.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.203e-05/0.2934, allocations: 6 kB / 446 MB, free: 33.9 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 CA1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] CA2.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 (31): * Single equations (assignments): 31 * 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.0002065/0.2936, allocations: 172.3 kB / 446.2 MB, free: 33.76 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.942e-05/0.2936, allocations: 34.09 kB / 446.2 MB, free: 33.74 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005469/0.2942, allocations: 334 kB / 446.6 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.2942, allocations: 2.875 kB / 446.6 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.2942, allocations: 0 / 446.6 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.124e-06/0.2942, allocations: 3.375 kB / 446.6 MB, free: 33.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003344/0.2946, allocations: 366.3 kB / 446.9 MB, free: 33.33 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.2946, allocations: 3.938 kB / 446.9 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002896/0.2949, allocations: 51.89 kB / 447 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.2949, allocations: 0 / 447 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.453e-05/0.2949, allocations: 6.875 kB / 447 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.594e-06/0.2949, allocations: 2.812 kB / 447 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.2949, allocations: 0 / 447 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005883/0.2955, allocations: 0.5173 MB / 447.5 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.948e-05/0.2956, allocations: 120.7 kB / 447.6 MB, free: 32.92 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.684e-05/0.2956, allocations: 9.922 kB / 447.6 MB, free: 32.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004013/0.2961, allocations: 57.62 kB / 447.7 MB, free: 32.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.067e-05/0.2961, allocations: 12.83 kB / 447.7 MB, free: 32.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.672e-05/0.2961, allocations: 12.59 kB / 447.7 MB, free: 32.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006878/0.2968, allocations: 327.9 kB / 448 MB, free: 32.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2968, allocations: 0 / 448 MB, free: 32.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002804/0.2971, allocations: 59.78 kB / 448.1 MB, free: 32.75 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,CA2.x_scaled[1],CA1.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 (26): * Single equations (assignments): 26 * 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.000726/0.2979, allocations: 1.062 MB / 449.2 MB, free: 31.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004592/0.2983, allocations: 291.4 kB / 449.4 MB, free: 31.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.2983, allocations: 0 / 449.4 MB, free: 31.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001726/0.2985, allocations: 129.4 kB / 449.6 MB, free: 31.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004317/0.299, allocations: 70.14 kB / 449.6 MB, free: 31.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00445/0.3034, allocations: 3.375 MB / 453 MB, free: 29.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002154/0.3036, allocations: 0.8016 MB / 453.8 MB, free: 29.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001901/0.3038, allocations: 60.97 kB / 453.9 MB, free: 29.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001577/0.304, allocations: 102.6 kB / 454 MB, free: 29.11 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.304, allocations: 0 / 454 MB, free: 29.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02238/0.3264, allocations: 6.03 MB / 460 MB, free: 28.51 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.81/9.136, allocations: 12.52 kB / 460 MB, free: 28.5 MB / 350.1 MB (rm -f AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe ; mkfifo AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe >> ../files/AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_actuation_schemes_SplitRange_cascadeLoops_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_actuation_schemes_SplitRange_cascadeLoops.fmu > AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe 2>&1)