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.001077/0.001077, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001307/0.001308, allocations: 195.9 kB / 16.26 MB, free: 6.629 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.327/1.327, allocations: 222.9 MB / 239.9 MB, free: 4.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1931/0.1931, allocations: 22.36 MB / 312.4 MB, free: 12.57 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 63.89 kB / 380.3 MB, free: 10.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2436, allocations: 54.95 MB / 435.2 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.002662/0.2463, allocations: 1.903 MB / 437.1 MB, free: 38.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006883/0.247, allocations: 0.5134 MB / 437.7 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.365e-05/0.2471, allocations: 3.938 kB / 437.7 MB, free: 37.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002594/0.2474, allocations: 23.02 kB / 437.7 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001317/0.2475, allocations: 37.31 kB / 437.7 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001234/0.2476, allocations: 57.97 kB / 437.8 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001733/0.2478, allocations: 204.9 kB / 438 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001305/0.248, allocations: 38.44 kB / 438 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001406/0.2481, allocations: 90.95 kB / 438.1 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001291/0.2482, allocations: 89.14 kB / 438.2 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.563e-05/0.2483, allocations: 10.09 kB / 438.2 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.39e-05/0.2483, allocations: 14.06 kB / 438.2 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.64e-05/0.2484, allocations: 42.73 kB / 438.3 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.736e-05/0.2484, allocations: 70.84 kB / 438.3 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001259/0.2486, allocations: 141 kB / 438.5 MB, free: 37.58 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.2486, allocations: 0 / 438.5 MB, free: 37.58 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2486, allocations: 0 / 438.5 MB, free: 37.58 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.2486, allocations: 6.625 kB / 438.5 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.0008404/0.2494, allocations: 498.2 kB / 439 MB, free: 37.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.115e-05/0.2495, allocations: 12.56 kB / 439 MB, free: 37.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.458e-05/0.2495, allocations: 16.53 kB / 439 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003286/0.2499, allocations: 262.5 kB / 439.2 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.32e-05/0.2499, allocations: 5.656 kB / 439.2 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.702e-05/0.2499, allocations: 12.12 kB / 439.3 MB, free: 36.9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001929/0.2501, allocations: 124.9 kB / 439.4 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.2501, allocations: 0 / 439.4 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.396e-05/0.2502, allocations: 4 kB / 439.4 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.2502, allocations: 7.375 kB / 439.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001705/0.2503, allocations: 93.44 kB / 439.5 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006282/0.251, allocations: 469 kB / 439.9 MB, free: 36.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002731/0.2513, allocations: 154.8 kB / 440.1 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.47e-05/0.2514, allocations: 64.58 kB / 440.1 MB, free: 36.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.337e-05/0.2514, allocations: 6.875 kB / 440.2 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.239e-05/0.2514, allocations: 30.56 kB / 440.2 MB, free: 36.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.2514, allocations: 4 kB / 440.2 MB, free: 36.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008326/0.2523, allocations: 0.5353 MB / 440.7 MB, free: 35.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.845e-05/0.2523, allocations: 54.09 kB / 440.8 MB, free: 35.85 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002572/0.2525, allocations: 199.4 kB / 441 MB, free: 35.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.205e-05/0.2526, allocations: 29.7 kB / 441 MB, free: 35.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.41e-05/0.2526, allocations: 110.5 kB / 441.1 MB, free: 35.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.172e-05/0.2527, allocations: 59.44 kB / 441.2 MB, free: 35.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.532e-05/0.2527, allocations: 34.84 kB / 441.2 MB, free: 35.51 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.288e-05/0.2527, allocations: 327.4 kB / 441.5 MB, free: 35.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.679e-05/0.2528, allocations: 56.28 kB / 441.6 MB, free: 35.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.999e-05/0.2529, allocations: 69.48 kB / 441.6 MB, free: 35.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006442/0.2536, allocations: 266 kB / 441.9 MB, free: 35.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.2536, allocations: 0 / 441.9 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.000434/0.254, allocations: 381.6 kB / 442.3 MB, free: 34.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.2541, allocations: 13.38 kB / 442.3 MB, free: 34.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.2541, allocations: 3.188 kB / 442.3 MB, free: 34.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001452/0.2542, allocations: 47.19 kB / 442.3 MB, free: 34.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.2544, allocations: 36.05 kB / 442.4 MB, free: 34.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001554/0.256, allocations: 4.64 MB / 447 MB, free: 29.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00017/0.2561, allocations: 9.516 kB / 447 MB, free: 29.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.317e-05/0.2562, allocations: 13.28 kB / 447 MB, free: 29.95 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.0001109/0.2563, allocations: 139.2 kB / 447.2 MB, free: 29.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.592e-05/0.2563, allocations: 12.81 kB / 447.2 MB, free: 29.81 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.642e-05/0.2564, allocations: 26.48 kB / 447.2 MB, free: 29.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.2564, allocations: 4.062 kB / 447.2 MB, free: 29.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.656e-06/0.2564, allocations: 3.938 kB / 447.2 MB, free: 29.79 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.2564, allocations: 0 / 447.2 MB, free: 29.79 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005128/0.2569, allocations: 0.4998 MB / 447.7 MB, free: 29.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.2569, allocations: 0 / 447.7 MB, free: 29.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001352/0.2571, allocations: 28.5 kB / 447.7 MB, free: 29.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001102/0.2572, allocations: 41.25 kB / 447.8 MB, free: 29.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.745e-05/0.2572, allocations: 7.094 kB / 447.8 MB, free: 29.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007493/0.258, allocations: 1.616 MB / 449.4 MB, free: 27.76 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.258, allocations: 0 / 449.4 MB, free: 27.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003561/0.2583, allocations: 341.6 kB / 449.7 MB, free: 27.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.211e-05/0.2584, allocations: 94.89 kB / 449.8 MB, free: 27.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.2584, allocations: 6.969 kB / 449.8 MB, free: 27.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001837/0.2586, allocations: 20.08 kB / 449.9 MB, free: 27.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.401e-05/0.2586, allocations: 16.75 kB / 449.9 MB, free: 27.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.965e-06/0.2587, allocations: 2.875 kB / 449.9 MB, free: 27.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001989/0.2589, allocations: 163.8 kB / 450 MB, free: 27.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2589, allocations: 0 / 450 MB, free: 27.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003625/0.2592, allocations: 33.28 kB / 450.1 MB, free: 27.32 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.573e-05/0.2593, allocations: 93.84 kB / 450.2 MB, free: 27.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004036/0.2597, allocations: 371.5 kB / 450.5 MB, free: 26.95 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2597, allocations: 4.062 kB / 450.5 MB, free: 26.95 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002021/0.2599, allocations: 189 kB / 450.7 MB, free: 26.81 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002925/0.2602, allocations: 20.19 kB / 450.7 MB, free: 26.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007393/0.261, allocations: 0.5654 MB / 451.3 MB, free: 26.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00013/0.2611, allocations: 0.7247 MB / 452 MB, free: 25.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.573e-05/0.2612, allocations: 17.75 kB / 452 MB, free: 25.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.371e-05/0.2613, allocations: 15.44 kB / 452.1 MB, free: 25.68 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2613, allocations: 0 / 452.1 MB, free: 25.68 MB / 350.1 MB Notification: Performance of Templates: time 0.004077/0.2654, allocations: 1.926 MB / 454 MB, free: 25.54 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)