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: translateModel(AES.Coursework.Typical_control_structures.Decoupling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Decoupling") translateModel(AES.Coursework.Typical_control_structures.Decoupling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Decoupling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007904/0.0007905, allocations: 98.88 kB / 16.02 MB, free: 76 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.0008428/0.0008428, allocations: 185.5 kB / 16.92 MB, free: 6.703 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.333/1.333, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1978/0.1978, allocations: 22.34 MB / 314.4 MB, free: 13.2 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004087/0.0004088, allocations: 8.281 kB / 383.3 MB, free: 10.21 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3005/0.3009, allocations: 55.96 MB / 439.2 MB, free: 39.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.001745/0.3027, allocations: 1.652 MB / 440.9 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001869/0.3046, allocations: 1.78 MB / 442.6 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001704/0.3047, allocations: 11.06 kB / 442.7 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003928/0.3052, allocations: 137.5 kB / 442.8 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004234/0.3056, allocations: 193.1 kB / 443 MB, free: 36.7 MB / 350.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.0004717/0.3061, allocations: 352.5 kB / 443.3 MB, free: 36.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006957/0.3068, allocations: 1.003 MB / 444.3 MB, free: 36.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002134/0.307, allocations: 149.6 kB / 444.5 MB, free: 36.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000286/0.3073, allocations: 321.6 kB / 444.8 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000327/0.3076, allocations: 364.1 kB / 445.1 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.852e-05/0.3077, allocations: 25.5 kB / 445.2 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001188/0.3078, allocations: 47.28 kB / 445.2 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001749/0.308, allocations: 203.6 kB / 445.4 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001532/0.3082, allocations: 270.3 kB / 445.7 MB, free: 35.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003527/0.3085, allocations: 0.5284 MB / 446.2 MB, free: 35.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.3085, allocations: 3.219 kB / 446.2 MB, free: 35.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.3085, allocations: 0 / 446.2 MB, free: 35.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.3085, allocations: 0 / 446.2 MB, free: 35.35 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.002569/0.3111, allocations: 1.114 MB / 447.3 MB, free: 34.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.3112, allocations: 18.94 kB / 447.3 MB, free: 34.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001145/0.3113, allocations: 75.25 kB / 447.4 MB, free: 34.65 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001438/0.3127, allocations: 0.7295 MB / 448.1 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.328e-05/0.3128, allocations: 38.11 kB / 448.2 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.049e-05/0.3129, allocations: 48.08 kB / 448.2 MB, free: 34.21 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00063/0.3135, allocations: 454.2 kB / 448.7 MB, free: 33.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.3135, allocations: 0 / 448.7 MB, free: 33.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.688e-05/0.3136, allocations: 13.59 kB / 448.7 MB, free: 33.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.747e-06/0.3136, allocations: 8.781 kB / 448.7 MB, free: 33.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006457/0.3142, allocations: 422.7 kB / 449.1 MB, free: 33.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001921/0.3162, allocations: 1.646 MB / 450.8 MB, free: 32.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005987/0.3168, allocations: 480.2 kB / 451.2 MB, free: 32.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002682/0.3171, allocations: 199.6 kB / 451.4 MB, free: 32.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.629e-05/0.3171, allocations: 9.5 kB / 451.4 MB, free: 32.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.685e-05/0.3171, allocations: 37.31 kB / 451.5 MB, free: 32.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.804e-06/0.3171, allocations: 0 / 451.5 MB, free: 32.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.0009293/0.3181, allocations: 0.6253 MB / 452.1 MB, free: 32.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.277e-05/0.3181, allocations: 55.28 kB / 452.1 MB, free: 32.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001511/0.3196, allocations: 0.8941 MB / 453 MB, free: 31.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.262e-05/0.3197, allocations: 36.39 kB / 453.1 MB, free: 31.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000151/0.3198, allocations: 290.4 kB / 453.4 MB, free: 31.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.707e-05/0.3199, allocations: 165.7 kB / 453.5 MB, free: 31.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.694e-05/0.32, allocations: 75.41 kB / 453.6 MB, free: 31.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.07e-05/0.3201, allocations: 382.8 kB / 454 MB, free: 31.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005888/0.3207, allocations: 297.8 kB / 454.3 MB, free: 30.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00062/0.3213, allocations: 412.6 kB / 454.7 MB, free: 30.77 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.004349/0.3257, allocations: 1.722 MB / 456.4 MB, free: 30.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.3257, allocations: 3.938 kB / 456.4 MB, free: 30.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001686/0.3274, allocations: 0.8336 MB / 457.2 MB, free: 29.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.3274, allocations: 12.19 kB / 457.2 MB, free: 29.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.936e-06/0.3274, allocations: 2.688 kB / 457.2 MB, free: 29.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.923e-05/0.3275, allocations: 7 kB / 457.2 MB, free: 29.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009035/0.3284, allocations: 201.6 kB / 457.4 MB, free: 29.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.326e-05/0.3284, allocations: 6.406 kB / 457.4 MB, free: 29.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009934/0.3294, allocations: 185.5 kB / 457.6 MB, free: 29.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.438e-05/0.3295, allocations: 29.34 kB / 457.7 MB, free: 29.65 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 (C2.LOsat,C2.HIsat,C1.LOsat,C1.HIsat,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 (86): * Single equations (assignments): 86 * 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.0003492/0.3298, allocations: 244.9 kB / 457.9 MB, free: 29.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001104/0.3299, allocations: 63.95 kB / 458 MB, free: 29.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008354/0.3308, allocations: 0.5314 MB / 458.5 MB, free: 29.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-06/0.3308, allocations: 5.281 kB / 458.5 MB, free: 29.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.3308, allocations: 0 / 458.5 MB, free: 29.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.3308, allocations: 8.375 kB / 458.5 MB, free: 29.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005733/0.3314, allocations: 0.5938 MB / 459.1 MB, free: 28.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.3314, allocations: 0 / 459.1 MB, free: 28.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005381/0.3319, allocations: 98.55 kB / 459.2 MB, free: 28.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.052e-06/0.332, allocations: 2.125 kB / 459.2 MB, free: 28.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.974e-05/0.332, allocations: 16.36 kB / 459.2 MB, free: 28.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.332, allocations: 2.344 kB / 459.2 MB, free: 28.81 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.332, allocations: 4 kB / 459.2 MB, free: 28.8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/0.3331, allocations: 0.8266 MB / 460 MB, free: 28.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001329/0.3333, allocations: 158.8 kB / 460.2 MB, free: 28.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.733e-05/0.3333, allocations: 13.5 kB / 460.2 MB, free: 28.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006988/0.334, allocations: 99.88 kB / 460.3 MB, free: 28.23 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.757e-05/0.3341, allocations: 36.59 kB / 460.3 MB, free: 28.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.813e-05/0.3342, allocations: 11.53 kB / 460.4 MB, free: 28.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001492/0.3357, allocations: 0.6627 MB / 461 MB, free: 27.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3357, allocations: 1.188 kB / 461 MB, free: 27.99 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005535/0.3362, allocations: 120.1 kB / 461.1 MB, free: 27.97 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 (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.0001786/0.3364, allocations: 128.1 kB / 461.3 MB, free: 27.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001274/0.3377, allocations: 0.5893 MB / 461.9 MB, free: 27.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3377, allocations: 1.188 kB / 461.9 MB, free: 27.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003663/0.3381, allocations: 230.7 kB / 462.1 MB, free: 27.6 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000635/0.3387, allocations: 92.52 kB / 462.2 MB, free: 27.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002081/0.3408, allocations: 1.591 MB / 463.8 MB, free: 26.62 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004489/0.3413, allocations: 0.951 MB / 464.7 MB, free: 25.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002576/0.3416, allocations: 49.45 kB / 464.8 MB, free: 25.88 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3416, allocations: 0 / 464.8 MB, free: 25.88 MB / 350.1 MB Notification: Performance of Templates: time 0.0138/0.3554, allocations: 8.069 MB / 472.8 MB, free: 24.32 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Decoupling.makefile (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 & ./AES_AES.Coursework.Typical_control_structures.Decoupling -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Decoupling.pipe 2>&1)