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.001336/0.001336, allocations: 100.1 kB / 15.88 MB, free: 12 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.001223/0.001223, allocations: 199.3 kB / 16.79 MB, free: 6.809 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.293/1.293, allocations: 222.9 MB / 240.5 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1935/0.1935, allocations: 22.34 MB / 313 MB, free: 12.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 67.89 kB / 380.8 MB, free: 11.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2649, allocations: 54.93 MB / 435.7 MB, free: 39.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.002652/0.2676, allocations: 2.022 MB / 437.7 MB, free: 38.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002088/0.2697, allocations: 1.796 MB / 439.5 MB, free: 36.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000286/0.27, allocations: 9.75 kB / 439.5 MB, free: 36.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004287/0.2705, allocations: 136.9 kB / 439.7 MB, free: 36.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004189/0.2709, allocations: 193.9 kB / 439.9 MB, free: 36.74 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.0004825/0.2714, allocations: 357.5 kB / 440.2 MB, free: 36.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006431/0.272, allocations: 0.9893 MB / 441.2 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002133/0.2723, allocations: 156 kB / 441.3 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002918/0.2726, allocations: 342.6 kB / 441.7 MB, free: 35.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003132/0.2729, allocations: 377.8 kB / 442 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.248e-05/0.273, allocations: 35.11 kB / 442.1 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000134/0.2731, allocations: 57.58 kB / 442.1 MB, free: 35.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001727/0.2733, allocations: 203.5 kB / 442.3 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001659/0.2735, allocations: 265 kB / 442.6 MB, free: 35.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003538/0.2738, allocations: 0.5503 MB / 443.1 MB, free: 35.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2738, allocations: 0 / 443.1 MB, free: 35.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2738, allocations: 0 / 443.1 MB, free: 35.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.335e-05/0.2739, allocations: 2.875 kB / 443.1 MB, free: 35.32 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.002796/0.2767, allocations: 1.21 MB / 444.4 MB, free: 34.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.2767, allocations: 15.66 kB / 444.4 MB, free: 34.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001182/0.2768, allocations: 77.44 kB / 444.4 MB, free: 34.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001335/0.2782, allocations: 0.7348 MB / 445.2 MB, free: 34.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.724e-05/0.2782, allocations: 34.69 kB / 445.2 MB, free: 34.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.459e-05/0.2783, allocations: 42.88 kB / 445.3 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006063/0.2789, allocations: 451.8 kB / 445.7 MB, free: 33.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.2789, allocations: 3.844 kB / 445.7 MB, free: 33.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.484e-05/0.279, allocations: 14.75 kB / 445.7 MB, free: 33.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.279, allocations: 11.62 kB / 445.7 MB, free: 33.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000654/0.2796, allocations: 422.1 kB / 446.1 MB, free: 33.74 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001895/0.2815, allocations: 1.627 MB / 447.8 MB, free: 32.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005996/0.2821, allocations: 470.3 kB / 448.2 MB, free: 32.55 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002786/0.2824, allocations: 204.8 kB / 448.4 MB, free: 32.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.26e-05/0.2825, allocations: 10.42 kB / 448.4 MB, free: 32.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.553e-05/0.2825, allocations: 41.91 kB / 448.5 MB, free: 32.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.883e-06/0.2825, allocations: 0 / 448.5 MB, free: 32.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.0009634/0.2835, allocations: 0.6239 MB / 449.1 MB, free: 32.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.235e-05/0.2835, allocations: 57.34 kB / 449.2 MB, free: 32.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001433/0.285, allocations: 0.8769 MB / 450 MB, free: 31.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.973e-05/0.285, allocations: 36.33 kB / 450.1 MB, free: 31.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001429/0.2851, allocations: 290.5 kB / 450.4 MB, free: 31.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.533e-05/0.2852, allocations: 164.1 kB / 450.5 MB, free: 31.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001591/0.2854, allocations: 139.9 kB / 450.7 MB, free: 31.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.103e-05/0.2855, allocations: 382.4 kB / 451 MB, free: 30.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005749/0.2861, allocations: 295.8 kB / 451.3 MB, free: 30.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006005/0.2867, allocations: 414.4 kB / 451.7 MB, free: 30.65 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.0042/0.2909, allocations: 1.679 MB / 453.4 MB, free: 29.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.2909, allocations: 0 / 453.4 MB, free: 29.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001615/0.2925, allocations: 0.8275 MB / 454.2 MB, free: 29.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.2926, allocations: 5.719 kB / 454.2 MB, free: 29.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/0.2926, allocations: 4.094 kB / 454.2 MB, free: 29.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.329e-05/0.2926, allocations: 5.844 kB / 454.2 MB, free: 29.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009404/0.2936, allocations: 203.4 kB / 454.4 MB, free: 29.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.386e-05/0.2936, allocations: 12.45 kB / 454.4 MB, free: 29.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009424/0.2945, allocations: 175.3 kB / 454.6 MB, free: 29.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.473e-05/0.2946, allocations: 26.91 kB / 454.6 MB, free: 29.54 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 system: 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.000307/0.2949, allocations: 239.1 kB / 454.9 MB, free: 29.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001229/0.295, allocations: 68.33 kB / 454.9 MB, free: 29.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008423/0.2959, allocations: 0.5368 MB / 455.5 MB, free: 29.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.2959, allocations: 5.188 kB / 455.5 MB, free: 29.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.2959, allocations: 0 / 455.5 MB, free: 29.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.2959, allocations: 5.312 kB / 455.5 MB, free: 29.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005489/0.2965, allocations: 0.5959 MB / 456.1 MB, free: 28.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.2965, allocations: 4 kB / 456.1 MB, free: 28.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005425/0.297, allocations: 95.52 kB / 456.2 MB, free: 28.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.297, allocations: 1.312 kB / 456.2 MB, free: 28.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.697e-05/0.2971, allocations: 12.84 kB / 456.2 MB, free: 28.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.2971, allocations: 6.688 kB / 456.2 MB, free: 28.69 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2971, allocations: 0 / 456.2 MB, free: 28.69 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.2981, allocations: 0.8305 MB / 457 MB, free: 28.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.2983, allocations: 161.8 kB / 457.2 MB, free: 28.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.045e-05/0.2984, allocations: 13.34 kB / 457.2 MB, free: 28.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006645/0.299, allocations: 85.72 kB / 457.3 MB, free: 28.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.185e-05/0.2991, allocations: 38.92 kB / 457.3 MB, free: 28.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.716e-05/0.2992, allocations: 11.53 kB / 457.3 MB, free: 28.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001325/0.3005, allocations: 0.6551 MB / 458 MB, free: 27.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 3e-07/0.3005, allocations: 0 / 458 MB, free: 27.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000479/0.301, allocations: 119.6 kB / 458.1 MB, free: 27.86 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.0001522/0.3011, allocations: 119.8 kB / 458.2 MB, free: 27.76 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001127/0.3023, allocations: 0.593 MB / 458.8 MB, free: 27.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.3023, allocations: 0.75 kB / 458.8 MB, free: 27.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003356/0.3026, allocations: 229.4 kB / 459 MB, free: 27.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005619/0.3032, allocations: 91.62 kB / 459.1 MB, free: 27.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002045/0.3053, allocations: 1.554 MB / 460.7 MB, free: 26.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005434/0.3058, allocations: 0.9472 MB / 461.6 MB, free: 25.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002881/0.3061, allocations: 57.42 kB / 461.7 MB, free: 25.77 MB / 350.1 MB Notification: Performance of SimCode: time 1.814e-06/0.3061, allocations: 0 / 461.7 MB, free: 25.77 MB / 350.1 MB Notification: Performance of Templates: time 0.01455/0.3207, allocations: 8.116 MB / 469.8 MB, free: 24.45 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)