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.001252/0.001252, allocations: 108 kB / 15.61 MB, free: 152 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.001541/0.001541, allocations: 195.8 kB / 16.53 MB, free: 6.699 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.422/1.422, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2144/0.2144, allocations: 22.35 MB / 312.7 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002096/0.002096, allocations: 63.91 kB / 380.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3058/0.3079, allocations: 54.95 MB / 435.8 MB, free: 39.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.002607/0.3106, allocations: 1.852 MB / 437.6 MB, free: 38.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007841/0.3114, allocations: 0.5186 MB / 438.1 MB, free: 38.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.621e-05/0.3115, allocations: 2.594 kB / 438.1 MB, free: 38.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002418/0.3117, allocations: 20.88 kB / 438.2 MB, free: 38.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001335/0.3119, allocations: 48.97 kB / 438.2 MB, free: 38.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001266/0.312, allocations: 56 kB / 438.3 MB, free: 38.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001709/0.3122, allocations: 211.6 kB / 438.5 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.3123, allocations: 30.12 kB / 438.5 MB, free: 38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001205/0.3124, allocations: 93.36 kB / 438.6 MB, free: 37.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001348/0.3126, allocations: 95.03 kB / 438.7 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.967e-05/0.3126, allocations: 11.62 kB / 438.7 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.824e-05/0.3127, allocations: 12.69 kB / 438.7 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.32e-05/0.3127, allocations: 35.12 kB / 438.7 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.301e-05/0.3128, allocations: 73.52 kB / 438.8 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001314/0.3129, allocations: 142.5 kB / 438.9 MB, free: 37.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3129, allocations: 0 / 438.9 MB, free: 37.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3129, allocations: 2.688 kB / 438.9 MB, free: 37.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.313, allocations: 0 / 438.9 MB, free: 37.79 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.0008737/0.3138, allocations: 0.494 MB / 439.4 MB, free: 37.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.17e-05/0.3139, allocations: 8.531 kB / 439.4 MB, free: 37.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.534e-05/0.3139, allocations: 21.25 kB / 439.5 MB, free: 37.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003435/0.3143, allocations: 261.2 kB / 439.7 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.311e-05/0.3143, allocations: 9.938 kB / 439.7 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.003e-05/0.3143, allocations: 12.78 kB / 439.7 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001952/0.3145, allocations: 115 kB / 439.9 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.3146, allocations: 3.938 kB / 439.9 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.476e-05/0.3146, allocations: 4 kB / 439.9 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.3146, allocations: 3 kB / 439.9 MB, free: 37.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001755/0.3148, allocations: 95.59 kB / 440 MB, free: 37 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006742/0.3154, allocations: 467.6 kB / 440.4 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002987/0.3158, allocations: 161.7 kB / 440.6 MB, free: 36.58 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.997e-05/0.3159, allocations: 58.81 kB / 440.6 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.028e-05/0.3159, allocations: 2.594 kB / 440.6 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.324e-05/0.3159, allocations: 37.06 kB / 440.7 MB, free: 36.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.232e-06/0.3159, allocations: 0 / 440.7 MB, free: 36.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008773/0.3168, allocations: 0.5443 MB / 441.2 MB, free: 36.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.951e-05/0.3168, allocations: 54 kB / 441.3 MB, free: 36.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000261/0.3171, allocations: 193 kB / 441.5 MB, free: 35.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.235e-05/0.3171, allocations: 28.45 kB / 441.5 MB, free: 35.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.858e-05/0.3172, allocations: 116.5 kB / 441.6 MB, free: 35.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.444e-05/0.3172, allocations: 56.33 kB / 441.7 MB, free: 35.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.855e-05/0.3173, allocations: 38.8 kB / 441.7 MB, free: 35.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.825e-05/0.3173, allocations: 324.9 kB / 442 MB, free: 35.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.484e-05/0.3174, allocations: 51.69 kB / 442.1 MB, free: 35.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.883e-05/0.3175, allocations: 67.12 kB / 442.1 MB, free: 35.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006459/0.3182, allocations: 273.4 kB / 442.4 MB, free: 35.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.3182, allocations: 0 / 442.4 MB, free: 35.24 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.0004471/0.3186, allocations: 376 kB / 442.8 MB, free: 34.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.3186, allocations: 18.03 kB / 442.8 MB, free: 34.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.3187, allocations: 0 / 442.8 MB, free: 34.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001736/0.3188, allocations: 50.34 kB / 442.8 MB, free: 34.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001701/0.319, allocations: 35.14 kB / 442.9 MB, free: 34.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001988/0.321, allocations: 4.646 MB / 447.5 MB, free: 30.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001686/0.3212, allocations: 20.47 kB / 447.5 MB, free: 30.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.027e-05/0.3212, allocations: 5.75 kB / 447.5 MB, free: 30.14 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 0.0001022/0.3213, allocations: 138.9 kB / 447.7 MB, free: 30.01 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.835e-05/0.3214, allocations: 21.09 kB / 447.7 MB, free: 30 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.334e-05/0.3214, allocations: 20.22 kB / 447.7 MB, free: 29.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.3214, allocations: 3.094 kB / 447.7 MB, free: 29.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.3214, allocations: 3.938 kB / 447.7 MB, free: 29.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.3214, allocations: 7.516 kB / 447.7 MB, free: 29.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005115/0.322, allocations: 0.4969 MB / 448.2 MB, free: 29.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.322, allocations: 0 / 448.2 MB, free: 29.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000137/0.3221, allocations: 23.06 kB / 448.2 MB, free: 29.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001175/0.3222, allocations: 40.11 kB / 448.3 MB, free: 29.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.3223, allocations: 10.3 kB / 448.3 MB, free: 29.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007651/0.323, allocations: 1.616 MB / 449.9 MB, free: 27.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.323, allocations: 4 kB / 449.9 MB, free: 27.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003957/0.3234, allocations: 342.5 kB / 450.2 MB, free: 27.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.72e-05/0.3235, allocations: 92.69 kB / 450.3 MB, free: 27.63 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.47e-05/0.3235, allocations: 6.469 kB / 450.3 MB, free: 27.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001803/0.3237, allocations: 13.23 kB / 450.4 MB, free: 27.62 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.474e-05/0.3238, allocations: 16.7 kB / 450.4 MB, free: 27.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.155e-06/0.3238, allocations: 3.094 kB / 450.4 MB, free: 27.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002078/0.324, allocations: 156.8 kB / 450.5 MB, free: 27.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.324, allocations: 4 kB / 450.5 MB, free: 27.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003789/0.3244, allocations: 34.94 kB / 450.6 MB, free: 27.52 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.879e-05/0.3245, allocations: 102.3 kB / 450.7 MB, free: 27.42 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004221/0.3249, allocations: 365.1 kB / 451 MB, free: 27.15 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3249, allocations: 3.5 kB / 451 MB, free: 27.15 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002086/0.3251, allocations: 193.7 kB / 451.2 MB, free: 27.01 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003004/0.3254, allocations: 22.16 kB / 451.2 MB, free: 27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000738/0.3262, allocations: 0.5034 MB / 451.7 MB, free: 26.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001361/0.3263, allocations: 0.7266 MB / 452.5 MB, free: 25.95 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.452e-05/0.3264, allocations: 29.59 kB / 452.5 MB, free: 25.94 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.024e-05/0.3265, allocations: 13.97 kB / 452.5 MB, free: 25.93 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.3265, allocations: 0 / 452.5 MB, free: 25.93 MB / 350.1 MB Notification: Performance of Templates: time 0.004173/0.3306, allocations: 1.93 MB / 454.4 MB, free: 25.79 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)