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.0009581/0.0009582, allocations: 108.8 kB / 15.99 MB, free: 6.359 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.0009994/0.0009994, allocations: 189.2 kB / 16.91 MB, free: 6.195 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.2/1.2, allocations: 222.9 MB / 240.6 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08536/0.08536, allocations: 22.33 MB / 313.1 MB, free: 9.031 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 68.16 kB / 380.9 MB, free: 41.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07146/0.07269, allocations: 54.95 MB / 435.9 MB, free: 13.44 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_simple_lead_lag): time 0.002204/0.07492, allocations: 1.26 MB / 437.1 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001384/0.07633, allocations: 1.35 MB / 438.5 MB, free: 10.81 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.242e-05/0.07642, allocations: 3.938 kB / 438.5 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002905/0.07672, allocations: 67.66 kB / 438.5 MB, free: 10.74 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002078/0.07694, allocations: 95.64 kB / 438.6 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002461/0.0772, allocations: 147.8 kB / 438.8 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004001/0.07761, allocations: 479.1 kB / 439.3 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001242/0.07774, allocations: 65.06 kB / 439.3 MB, free: 9.969 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001908/0.07794, allocations: 195.3 kB / 439.5 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002482/0.07819, allocations: 223.2 kB / 439.7 MB, free: 9.559 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.474e-05/0.07824, allocations: 24 kB / 439.7 MB, free: 9.535 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.695e-05/0.07829, allocations: 31.94 kB / 439.8 MB, free: 9.504 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001285/0.07842, allocations: 111.7 kB / 439.9 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001063/0.07853, allocations: 135.1 kB / 440 MB, free: 9.262 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001868/0.07873, allocations: 223.6 kB / 440.2 MB, free: 9.043 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.07874, allocations: 0 / 440.2 MB, free: 9.043 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.07874, allocations: 0 / 440.2 MB, free: 9.043 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.07875, allocations: 0 / 440.2 MB, free: 9.043 MB / 318.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.001917/0.08067, allocations: 0.8061 MB / 441 MB, free: 8.188 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.745e-05/0.08071, allocations: 12.03 kB / 441.1 MB, free: 8.176 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.414e-05/0.08078, allocations: 32.56 kB / 441.1 MB, free: 8.145 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009815/0.08177, allocations: 467.7 kB / 441.5 MB, free: 7.648 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.701e-05/0.08179, allocations: 12.38 kB / 441.6 MB, free: 7.637 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.859e-05/0.08184, allocations: 12.38 kB / 441.6 MB, free: 7.625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000306/0.08215, allocations: 209.4 kB / 441.8 MB, free: 7.414 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.08217, allocations: 0 / 441.8 MB, free: 7.414 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.856e-05/0.08219, allocations: 4 kB / 441.8 MB, free: 7.41 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.0822, allocations: 4 kB / 441.8 MB, free: 7.406 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003537/0.08256, allocations: 211.8 kB / 442 MB, free: 7.199 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001046/0.08362, allocations: 0.7109 MB / 442.7 MB, free: 6.438 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005731/0.0842, allocations: 294.4 kB / 443 MB, free: 6.141 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001856/0.0844, allocations: 128.8 kB / 443.1 MB, free: 6.012 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.104e-05/0.08443, allocations: 0 / 443.1 MB, free: 6.012 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.9e-05/0.08445, allocations: 42.5 kB / 443.2 MB, free: 5.961 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.011e-06/0.08446, allocations: 0 / 443.2 MB, free: 5.961 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001264/0.08573, allocations: 0.5872 MB / 443.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.14e-05/0.08577, allocations: 55.41 kB / 443.8 MB, free: 5.281 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001001/0.08677, allocations: 476.3 kB / 444.3 MB, free: 4.801 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.08681, allocations: 29.7 kB / 444.3 MB, free: 4.766 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.616e-05/0.08691, allocations: 164.4 kB / 444.4 MB, free: 4.602 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.374e-05/0.08698, allocations: 90.73 kB / 444.5 MB, free: 4.512 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.161e-05/0.08705, allocations: 49.64 kB / 444.6 MB, free: 4.457 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.08717, allocations: 354.7 kB / 444.9 MB, free: 4.102 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001643/0.08734, allocations: 107.8 kB / 445 MB, free: 3.996 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001787/0.08752, allocations: 130.2 kB / 445.2 MB, free: 3.863 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002025/0.08956, allocations: 0.6983 MB / 445.9 MB, free: 3.16 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.08957, allocations: 0 / 445.9 MB, free: 3.16 MB / 318.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006661/0.09024, allocations: 414.9 kB / 446.3 MB, free: 2.746 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.09026, allocations: 8 kB / 446.3 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.09028, allocations: 8.016 kB / 446.3 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002085/0.09049, allocations: 64.73 kB / 446.3 MB, free: 2.664 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000199/0.0907, allocations: 51.91 kB / 446.4 MB, free: 2.613 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001306/0.09201, allocations: 1.653 MB / 448.1 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004467/0.09247, allocations: 79.83 kB / 448.1 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.052e-05/0.0925, allocations: 12 kB / 448.1 MB, free: 0.7344 MB / 318.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.000186/0.09269, allocations: 175.6 kB / 448.3 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.778e-05/0.09276, allocations: 31.62 kB / 448.3 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.917e-05/0.09285, allocations: 47.17 kB / 448.4 MB, free: 492 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.09286, allocations: 7.938 kB / 448.4 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.09287, allocations: 3.938 kB / 448.4 MB, free: 480 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.09287, allocations: 0 / 448.4 MB, free: 480 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000356/0.09324, allocations: 377.3 kB / 448.8 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.09325, allocations: 0 / 448.8 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002211/0.09347, allocations: 31.98 kB / 448.8 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001857/0.09367, allocations: 64.8 kB / 448.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.41e-05/0.0937, allocations: 8 kB / 448.9 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001214/0.09492, allocations: 1.657 MB / 450.5 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.09493, allocations: 0 / 450.5 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008141/0.09575, allocations: 0.592 MB / 451.1 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.77e-05/0.09584, allocations: 116.7 kB / 451.2 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.433e-05/0.09589, allocations: 4 kB / 451.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004614/0.09636, allocations: 67.89 kB / 451.3 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.298e-05/0.09642, allocations: 19.97 kB / 451.3 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.09645, allocations: 8 kB / 451.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008471/0.0973, allocations: 378.8 kB / 451.7 MB, free: 12.93 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.593e-06/0.09731, allocations: 0 / 451.7 MB, free: 12.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005092/0.09782, allocations: 71.81 kB / 451.8 MB, free: 12.86 MB / 334.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 9.424e-05/0.09792, allocations: 103.5 kB / 451.9 MB, free: 12.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006632/0.09859, allocations: 434.4 kB / 452.3 MB, free: 12.31 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.09861, allocations: 8 kB / 452.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003325/0.09894, allocations: 254.6 kB / 452.6 MB, free: 12.04 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003838/0.09934, allocations: 63.47 kB / 452.6 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.1005, allocations: 0.8375 MB / 453.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003029/0.1008, allocations: 0.8028 MB / 454.3 MB, free: 10.28 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.241e-05/0.1009, allocations: 27.42 kB / 454.3 MB, free: 10.25 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1009, allocations: 3.938 kB / 454.3 MB, free: 10.25 MB / 334.1 MB Notification: Performance of Templates: time 0.006166/0.1071, allocations: 4.9 MB / 459.2 MB, free: 5.34 MB / 334.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)