Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.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.FF_compensation_simple_lead_lag,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag") translateModel(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009637/0.0009637, allocations: 92.78 kB / 16.02 MB, free: 80 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.001106/0.001106, allocations: 181 kB / 16.92 MB, free: 6.652 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.32/1.32, allocations: 223.3 MB / 241 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1941/0.1941, allocations: 22.34 MB / 314.4 MB, free: 12.98 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003031/0.0003034, allocations: 8 kB / 383.3 MB, free: 10.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.2576, allocations: 55.99 MB / 439.2 MB, free: 39.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.001116/0.2588, allocations: 0.903 MB / 440.1 MB, free: 38.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001279/0.2601, allocations: 1.338 MB / 441.5 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.051e-05/0.2602, allocations: 0 / 441.5 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002934/0.2605, allocations: 71.44 kB / 441.6 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002029/0.2607, allocations: 89.03 kB / 441.6 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002345/0.2609, allocations: 165.4 kB / 441.8 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003346/0.2613, allocations: 456.5 kB / 442.2 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.2614, allocations: 52.84 kB / 442.3 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00016/0.2616, allocations: 168 kB / 442.5 MB, free: 37.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002235/0.2618, allocations: 200.8 kB / 442.7 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.152e-05/0.2619, allocations: 12.75 kB / 442.7 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.112e-05/0.2619, allocations: 12.66 kB / 442.7 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001059/0.262, allocations: 99.88 kB / 442.8 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.802e-05/0.2621, allocations: 142.1 kB / 442.9 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001515/0.2623, allocations: 222 kB / 443.1 MB, free: 37.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.856e-06/0.2623, allocations: 0 / 443.1 MB, free: 37.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2623, allocations: 0 / 443.1 MB, free: 37.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.2623, allocations: 0 / 443.1 MB, free: 37.14 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: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.001812/0.2641, allocations: 0.7811 MB / 443.9 MB, free: 36.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.171e-05/0.2641, allocations: 11.06 kB / 443.9 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.706e-05/0.2642, allocations: 31.75 kB / 444 MB, free: 36.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000951/0.2652, allocations: 460.4 kB / 444.4 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.2652, allocations: 9.844 kB / 444.4 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.823e-05/0.2652, allocations: 15.72 kB / 444.4 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002952/0.2655, allocations: 208.2 kB / 444.6 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.2656, allocations: 0 / 444.6 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.085e-05/0.2656, allocations: 8 kB / 444.6 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.2656, allocations: 6.281 kB / 444.7 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003277/0.2659, allocations: 211 kB / 444.9 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009993/0.2669, allocations: 0.707 MB / 445.6 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005546/0.2675, allocations: 305 kB / 445.9 MB, free: 35.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001688/0.2677, allocations: 125 kB / 446 MB, free: 35.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.066e-05/0.2677, allocations: 2.906 kB / 446 MB, free: 35.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.443e-05/0.2677, allocations: 38.5 kB / 446 MB, free: 35.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.302e-06/0.2677, allocations: 2.781 kB / 446 MB, free: 35.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001237/0.269, allocations: 0.5908 MB / 446.6 MB, free: 35.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.204e-05/0.269, allocations: 54.28 kB / 446.7 MB, free: 35.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009599/0.27, allocations: 488.1 kB / 447.2 MB, free: 35.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.142e-05/0.27, allocations: 29.7 kB / 447.2 MB, free: 35.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.873e-05/0.2701, allocations: 162.6 kB / 447.3 MB, free: 34.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.366e-05/0.2702, allocations: 86.19 kB / 447.4 MB, free: 34.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.833e-05/0.2702, allocations: 28.19 kB / 447.5 MB, free: 34.8 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.81e-05/0.2703, allocations: 349.8 kB / 447.8 MB, free: 34.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001519/0.2705, allocations: 105.9 kB / 447.9 MB, free: 34.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001632/0.2706, allocations: 133.7 kB / 448 MB, free: 34.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001937/0.2726, allocations: 0.7084 MB / 448.7 MB, free: 34.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.2726, allocations: 3.938 kB / 448.7 MB, free: 34.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006354/0.2732, allocations: 419.6 kB / 449.1 MB, free: 34.02 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.2733, allocations: 7.188 kB / 449.2 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.2733, allocations: 0 / 449.2 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002074/0.2735, allocations: 68.12 kB / 449.2 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000196/0.2737, allocations: 47.58 kB / 449.3 MB, free: 33.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001024/0.2747, allocations: 1.553 MB / 450.8 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004593/0.2752, allocations: 75.58 kB / 450.9 MB, free: 32.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.854e-05/0.2752, allocations: 9.438 kB / 450.9 MB, free: 32.56 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] K.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] H.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] H.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] P.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: 2 * 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 (27): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001772/0.2754, allocations: 176.5 kB / 451.1 MB, free: 32.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.52e-05/0.2755, allocations: 33.81 kB / 451.1 MB, free: 32.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.594e-05/0.2756, allocations: 50.11 kB / 451.2 MB, free: 32.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.2756, allocations: 0 / 451.2 MB, free: 32.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.2756, allocations: 6.344 kB / 451.2 MB, free: 32.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.2756, allocations: 3.188 kB / 451.2 MB, free: 32.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003133/0.2759, allocations: 378 kB / 451.5 MB, free: 32.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.2759, allocations: 3.938 kB / 451.5 MB, free: 32.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002292/0.2762, allocations: 33.84 kB / 451.6 MB, free: 32.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000164/0.2763, allocations: 62.53 kB / 451.6 MB, free: 32.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.256e-05/0.2764, allocations: 7 kB / 451.6 MB, free: 32.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009179/0.2773, allocations: 1.555 MB / 453.2 MB, free: 30.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2773, allocations: 0 / 453.2 MB, free: 30.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007389/0.278, allocations: 0.5874 MB / 453.8 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.048e-05/0.2781, allocations: 117.1 kB / 453.9 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.98e-05/0.2782, allocations: 10.56 kB / 453.9 MB, free: 30.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004808/0.2786, allocations: 73.42 kB / 454 MB, free: 30.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.612e-05/0.2787, allocations: 17.22 kB / 454 MB, free: 30.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.488e-05/0.2787, allocations: 5.25 kB / 454 MB, free: 30.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008511/0.2796, allocations: 382.6 kB / 454.4 MB, free: 30.06 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2796, allocations: 0 / 454.4 MB, free: 30.06 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003253/0.2799, allocations: 63.19 kB / 454.4 MB, free: 30.05 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (P.x_scaled[1],P.x_scaled[2],H.x_scaled[1],H.x_scaled[2],M.x_scaled[1],K.x_scaled[1],C.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 (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001192/0.2801, allocations: 111.2 kB / 454.5 MB, free: 29.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005841/0.2806, allocations: 401.2 kB / 454.9 MB, free: 29.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.2807, allocations: 0 / 454.9 MB, free: 29.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000305/0.281, allocations: 267.5 kB / 455.2 MB, free: 29.6 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004191/0.2814, allocations: 48.89 kB / 455.2 MB, free: 29.58 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001092/0.2825, allocations: 0.8623 MB / 456.1 MB, free: 29.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001958/0.2827, allocations: 0.8084 MB / 456.9 MB, free: 28.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.758e-05/0.2828, allocations: 24.47 kB / 456.9 MB, free: 28.37 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2828, allocations: 0 / 456.9 MB, free: 28.37 MB / 350.1 MB Notification: Performance of Templates: time 0.007402/0.2902, allocations: 4.864 MB / 461.8 MB, free: 28.05 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.makefile (rm -f AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.sim & ./AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag.pipe 2>&1)