Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Decoupling.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.Decoupling,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Decoupling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Decoupling,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Decoupling",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.0008465/0.0008465, allocations: 86.09 kB / 15.06 MB, free: 1.09 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.000875/0.0008751, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 223.3 MB / 240 MB, free: 5.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2339/0.2339, allocations: 22.36 MB / 313.4 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003417/0.0003419, allocations: 12 kB / 382 MB, free: 10.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3292/0.3295, allocations: 55.97 MB / 438 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.001694/0.3313, allocations: 1.542 MB / 439.6 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001937/0.3332, allocations: 1.758 MB / 441.3 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002201/0.3335, allocations: 8.969 kB / 441.3 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004227/0.3339, allocations: 130.5 kB / 441.5 MB, free: 36.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004104/0.3343, allocations: 171 kB / 441.6 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004465/0.3348, allocations: 269.1 kB / 441.9 MB, free: 36.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007215/0.3355, allocations: 0.8918 MB / 442.8 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002146/0.3357, allocations: 124.3 kB / 442.9 MB, free: 36.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003473/0.3361, allocations: 372.5 kB / 443.3 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000377/0.3365, allocations: 362.2 kB / 443.6 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.996e-05/0.3365, allocations: 19.84 kB / 443.6 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001267/0.3367, allocations: 49.58 kB / 443.7 MB, free: 35.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001652/0.3369, allocations: 180.6 kB / 443.9 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.078e-05/0.3369, allocations: 116.2 kB / 444 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003936/0.3373, allocations: 0.5401 MB / 444.5 MB, free: 35.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.3374, allocations: 3.938 kB / 444.5 MB, free: 35.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.3374, allocations: 0 / 444.5 MB, free: 35.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.3374, allocations: 3.938 kB / 444.5 MB, free: 35.54 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.00248/0.3399, allocations: 1.142 MB / 445.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.3399, allocations: 8.5 kB / 445.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.846e-05/0.34, allocations: 73.55 kB / 445.7 MB, free: 34.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001111/0.3401, allocations: 76.31 kB / 445.8 MB, free: 34.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001368/0.3415, allocations: 0.7331 MB / 446.6 MB, free: 34.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.585e-05/0.3415, allocations: 32.94 kB / 446.6 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.095e-05/0.3416, allocations: 45.34 kB / 446.6 MB, free: 34.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006732/0.3423, allocations: 452.8 kB / 447.1 MB, free: 34.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.503e-05/0.3423, allocations: 0 / 447.1 MB, free: 34.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.655e-05/0.3424, allocations: 14.53 kB / 447.1 MB, free: 34.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.442e-05/0.3424, allocations: 19.03 kB / 447.1 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000676/0.3431, allocations: 421.1 kB / 447.5 MB, free: 33.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002165/0.3452, allocations: 1.655 MB / 449.2 MB, free: 32.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006679/0.3459, allocations: 467.2 kB / 449.6 MB, free: 32.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003001/0.3462, allocations: 206.8 kB / 449.8 MB, free: 32.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.812e-05/0.3463, allocations: 9.062 kB / 449.8 MB, free: 32.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.117e-05/0.3463, allocations: 37.94 kB / 449.9 MB, free: 32.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.473e-06/0.3463, allocations: 0 / 449.9 MB, free: 32.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001068/0.3474, allocations: 0.6223 MB / 450.5 MB, free: 32.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.383e-05/0.3475, allocations: 56.66 kB / 450.6 MB, free: 32.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001499/0.349, allocations: 0.9113 MB / 451.5 MB, free: 32.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.758e-05/0.349, allocations: 33.7 kB / 451.5 MB, free: 31.97 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001715/0.3492, allocations: 311.9 kB / 451.8 MB, free: 31.71 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.05e-05/0.3493, allocations: 159.6 kB / 452 MB, free: 31.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.314e-05/0.3493, allocations: 16 kB / 452 MB, free: 31.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.833e-05/0.3494, allocations: 381 kB / 452.3 MB, free: 31.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002641/0.3497, allocations: 188.2 kB / 452.5 MB, free: 31.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003056/0.35, allocations: 305.7 kB / 452.8 MB, free: 30.98 MB / 350.1 MB Notification: The given system is mixed-determined. [index = 2] Notification: Performance of analyzeInitialSystem (initialization): time 0.00295/0.3529, allocations: 1.14 MB / 454 MB, free: 30.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.353, allocations: 4.969 kB / 454 MB, free: 30.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008097/0.3538, allocations: 0.6137 MB / 454.6 MB, free: 30.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.3538, allocations: 6.156 kB / 454.6 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.3538, allocations: 3.188 kB / 454.6 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.058e-05/0.3538, allocations: 6.094 kB / 454.6 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006279/0.3545, allocations: 155.3 kB / 454.8 MB, free: 30.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.3545, allocations: 6.469 kB / 454.8 MB, free: 30.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005634/0.3551, allocations: 137.3 kB / 454.9 MB, free: 30.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.182e-05/0.3551, allocations: 18.72 kB / 454.9 MB, free: 30.29 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: C2.xfb:VARIABLE(fixed = true ) type: Real C1.xfb:VARIABLE(fixed = true ) type: Real Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: D.Fcs2.y = D.Fcs2.y_start D.Fcs1.y = D.Fcs1.y_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 (C1.HIsat,C1.LOsat,C2.HIsat,C2.LOsat,C2.iNoDec,C2.iNoInc,C2.iTS,C1.iNoDec,C1.iNoInc,C1.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002712/0.3554, allocations: 238.2 kB / 455.1 MB, free: 30.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.196e-05/0.3555, allocations: 64.95 kB / 455.2 MB, free: 30.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008191/0.3563, allocations: 0.543 MB / 455.7 MB, free: 29.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.3563, allocations: 4.875 kB / 455.8 MB, free: 29.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.962e-06/0.3563, allocations: 1.25 kB / 455.8 MB, free: 29.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.3564, allocations: 0 / 455.8 MB, free: 29.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006004/0.357, allocations: 0.6143 MB / 456.4 MB, free: 29.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.357, allocations: 1.188 kB / 456.4 MB, free: 29.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005176/0.3575, allocations: 90.36 kB / 456.5 MB, free: 29.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.3575, allocations: 2.5 kB / 456.5 MB, free: 29.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.695e-05/0.3575, allocations: 20.55 kB / 456.5 MB, free: 29.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.3576, allocations: 5.375 kB / 456.5 MB, free: 29.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3576, allocations: 0 / 456.5 MB, free: 29.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001069/0.3586, allocations: 0.8312 MB / 457.3 MB, free: 29.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.3588, allocations: 159.3 kB / 457.5 MB, free: 28.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.497e-05/0.3589, allocations: 17 kB / 457.5 MB, free: 28.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005703/0.3594, allocations: 102.8 kB / 457.6 MB, free: 28.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.101e-05/0.3595, allocations: 34.05 kB / 457.6 MB, free: 28.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-05/0.3596, allocations: 12.53 kB / 457.6 MB, free: 28.83 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001269/0.3608, allocations: 0.6905 MB / 458.3 MB, free: 28.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3608, allocations: 0 / 458.3 MB, free: 28.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004559/0.3613, allocations: 110.5 kB / 458.4 MB, free: 28.58 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 14 (P.P11.x_scaled[1],P.P12.x_scaled[1],P.P21.x_scaled[1],P.P22.x_scaled[1],D.D12.x_scaled[1],D.D21.x_scaled[1],C1.xfb,C1.xBias,C1.u,C1.csfil,C2.xfb,C2.xBias,C2.u,C2.csfil) * Number of discrete variables: 4 (C1.HIsat,C1.LOsat,C2.HIsat,C2.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001284/0.3626, allocations: 1.386 MB / 459.8 MB, free: 27.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007762/0.3634, allocations: 485.4 kB / 460.3 MB, free: 27.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3634, allocations: 3.938 kB / 460.3 MB, free: 27.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003282/0.3637, allocations: 225.6 kB / 460.5 MB, free: 27.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005384/0.3643, allocations: 95.67 kB / 460.6 MB, free: 27.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008696/0.373, allocations: 5.065 MB / 465.7 MB, free: 25.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004736/0.3735, allocations: 0.9565 MB / 466.6 MB, free: 24.37 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003847/0.3739, allocations: 118.2 kB / 466.7 MB, free: 24.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003341/0.3742, allocations: 245.2 kB / 467 MB, free: 24.17 MB / 350.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3742, allocations: 4 kB / 467 MB, free: 24.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02783/0.4021, allocations: 12.17 MB / 479.2 MB, free: 19.79 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001409/0.4023, allocations: 176.5 kB / 479.3 MB, free: 19.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.989/2.391, allocations: 0 / 479.3 MB, free: 19.55 MB / 350.1 MB (rm -f AES_AES.Coursework.Typical_control_structures.Decoupling.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Decoupling.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Decoupling.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Decoupling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Decoupling_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Decoupling.fmu > AES_AES.Coursework.Typical_control_structures.Decoupling.pipe 2>&1) Environment - environmentSimulation: