Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_case_studies.foo.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.ElecSys_case_studies.foo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.foo") translateModel(AES.Coursework.ElecSys_case_studies.foo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.foo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006885/0.006885, allocations: 101.2 kB / 15.88 MB, free: 6.328 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.001415/0.001415, allocations: 195.6 kB / 16.79 MB, free: 6.254 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.374/1.374, allocations: 222.9 MB / 240.5 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2257/0.2257, allocations: 22.34 MB / 313 MB, free: 12.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001579/0.00158, allocations: 64.05 kB / 380.8 MB, free: 11.08 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2748/0.2764, allocations: 54.94 MB / 435.7 MB, free: 39.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.002398/0.2789, allocations: 1.908 MB / 437.6 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006415/0.2795, allocations: 0.5216 MB / 438.1 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.315e-05/0.2796, allocations: 0 / 438.1 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002372/0.2799, allocations: 22.23 kB / 438.1 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001241/0.28, allocations: 41.48 kB / 438.2 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001686/0.2802, allocations: 50.55 kB / 438.2 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001607/0.2804, allocations: 197.7 kB / 438.4 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.2805, allocations: 40.7 kB / 438.5 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001152/0.2806, allocations: 74.72 kB / 438.5 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001235/0.2807, allocations: 88.98 kB / 438.6 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.095e-05/0.2808, allocations: 12.62 kB / 438.6 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.665e-05/0.2808, allocations: 8.469 kB / 438.7 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.471e-05/0.2809, allocations: 30.75 kB / 438.7 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.929e-05/0.2809, allocations: 63.17 kB / 438.7 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.822e-05/0.281, allocations: 106.6 kB / 438.8 MB, free: 37.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.281, allocations: 4 kB / 438.9 MB, free: 37.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.82e-07/0.281, allocations: 3.781 kB / 438.9 MB, free: 37.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.281, allocations: 0 / 438.9 MB, free: 37.57 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0008457/0.2819, allocations: 0.49 MB / 439.3 MB, free: 37.15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.831e-05/0.2819, allocations: 12.38 kB / 439.4 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.578e-05/0.282, allocations: 17.12 kB / 439.4 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003399/0.2823, allocations: 249.9 kB / 439.6 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/0.2824, allocations: 13.81 kB / 439.6 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.601e-05/0.2824, allocations: 12.56 kB / 439.6 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001871/0.2826, allocations: 118.2 kB / 439.8 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.864e-06/0.2826, allocations: 0 / 439.8 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.2826, allocations: 10.78 kB / 439.8 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.2826, allocations: 2.594 kB / 439.8 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001716/0.2828, allocations: 82.98 kB / 439.9 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006194/0.2834, allocations: 476.7 kB / 440.3 MB, free: 36.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002889/0.2837, allocations: 163.8 kB / 440.5 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/0.2839, allocations: 64.27 kB / 440.5 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.156e-05/0.2839, allocations: 2.875 kB / 440.5 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.237e-05/0.2839, allocations: 33.44 kB / 440.6 MB, free: 36.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.913e-06/0.2839, allocations: 0 / 440.6 MB, free: 36.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008545/0.2848, allocations: 0.5409 MB / 441.1 MB, free: 35.9 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.025e-05/0.2848, allocations: 58.03 kB / 441.2 MB, free: 35.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002665/0.2851, allocations: 196.2 kB / 441.4 MB, free: 35.71 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.127e-05/0.2851, allocations: 25.7 kB / 441.4 MB, free: 35.68 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.487e-05/0.2851, allocations: 112.2 kB / 441.5 MB, free: 35.58 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.222e-05/0.2852, allocations: 61.84 kB / 441.6 MB, free: 35.53 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.693e-05/0.2852, allocations: 36.06 kB / 441.6 MB, free: 35.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.332e-05/0.2853, allocations: 326.8 kB / 441.9 MB, free: 35.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.786e-05/0.2854, allocations: 51.62 kB / 442 MB, free: 35.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.229e-05/0.2855, allocations: 65.17 kB / 442 MB, free: 35.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006873/0.2862, allocations: 262.7 kB / 442.3 MB, free: 35.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2862, allocations: 0 / 442.3 MB, free: 35.04 MB / 350.1 MB Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pm = Ge1.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ Ge1.Pm ; Ge1.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004364/0.2866, allocations: 397.8 kB / 442.7 MB, free: 34.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.2866, allocations: 7.125 kB / 442.7 MB, free: 34.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.2866, allocations: 2.469 kB / 442.7 MB, free: 34.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001509/0.2868, allocations: 52.67 kB / 442.7 MB, free: 34.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000165/0.287, allocations: 29.61 kB / 442.8 MB, free: 34.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001443/0.2884, allocations: 4.243 MB / 447 MB, free: 30.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001704/0.2886, allocations: 16.44 kB / 447 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.08e-05/0.2886, allocations: 5.844 kB / 447 MB, free: 30.34 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: Ge1.deltag:VARIABLE(unit = "rad" fixed = true ) "generator angle wrt port" type: Real 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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 8.898e-05/0.2887, allocations: 145.3 kB / 447.2 MB, free: 30.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.729e-05/0.2888, allocations: 13.88 kB / 447.2 MB, free: 30.2 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.51e-05/0.2888, allocations: 23.52 kB / 447.2 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.993e-06/0.2888, allocations: 2.656 kB / 447.2 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.2888, allocations: 4 kB / 447.2 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.2888, allocations: 3.938 kB / 447.2 MB, free: 30.17 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005033/0.2893, allocations: 0.493 MB / 447.7 MB, free: 29.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2893, allocations: 0 / 447.7 MB, free: 29.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001395/0.2895, allocations: 23.67 kB / 447.7 MB, free: 29.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001207/0.2896, allocations: 51.91 kB / 447.8 MB, free: 29.76 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.2896, allocations: 7.312 kB / 447.8 MB, free: 29.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007204/0.2904, allocations: 1.448 MB / 449.2 MB, free: 28.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.2904, allocations: 0 / 449.2 MB, free: 28.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003774/0.2908, allocations: 340 kB / 449.6 MB, free: 28.1 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.303e-05/0.2908, allocations: 97.94 kB / 449.7 MB, free: 27.99 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.476e-05/0.2908, allocations: 3.938 kB / 449.7 MB, free: 27.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001917/0.291, allocations: 24.55 kB / 449.7 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.118e-05/0.2911, allocations: 16.7 kB / 449.7 MB, free: 27.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.786e-06/0.2911, allocations: 2.938 kB / 449.7 MB, free: 27.97 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002038/0.2913, allocations: 160.4 kB / 449.9 MB, free: 27.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2913, allocations: 0 / 449.9 MB, free: 27.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003847/0.2917, allocations: 32.5 kB / 449.9 MB, free: 27.87 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Ge1.thetap,Ge1.deltag,Ge1.wg,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 (13): * Single equations (assignments): 12 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 7.74e-05/0.2918, allocations: 101.5 kB / 450 MB, free: 27.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003844/0.2922, allocations: 353.2 kB / 450.3 MB, free: 27.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2922, allocations: 3.938 kB / 450.4 MB, free: 27.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002083/0.2924, allocations: 186.1 kB / 450.5 MB, free: 27.37 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002904/0.2927, allocations: 21.7 kB / 450.6 MB, free: 27.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000757/0.2935, allocations: 0.5878 MB / 451.1 MB, free: 26.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001306/0.2936, allocations: 0.7293 MB / 451.9 MB, free: 26.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.899e-05/0.2937, allocations: 13.25 kB / 451.9 MB, free: 26.21 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2937, allocations: 0 / 451.9 MB, free: 26.21 MB / 350.1 MB Notification: Performance of Templates: time 0.003763/0.2975, allocations: 2.756 MB / 454.6 MB, free: 26.03 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ElecSys_case_studies.foo.makefile (rm -f AES_AES.Coursework.ElecSys_case_studies.foo.pipe ; mkfifo AES_AES.Coursework.ElecSys_case_studies.foo.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_case_studies.foo.pipe >> ../files/AES_AES.Coursework.ElecSys_case_studies.foo.sim & ./AES_AES.Coursework.ElecSys_case_studies.foo -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_case_studies.foo.pipe 2>&1)