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.0008999/0.0008999, allocations: 98.48 kB / 16.02 MB, free: 76 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.0008478/0.0008478, allocations: 186.1 kB / 16.92 MB, free: 6.75 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.324/1.324, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2121/0.2121, allocations: 22.34 MB / 314.4 MB, free: 13.17 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003313/0.0003314, allocations: 8 kB / 383.3 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2774/0.2778, allocations: 55.97 MB / 439.2 MB, free: 39.42 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.001712/0.2796, allocations: 1.561 MB / 440.8 MB, free: 38.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008356/0.2804, allocations: 0.5106 MB / 441.3 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001167/0.2805, allocations: 0 / 441.3 MB, free: 37.94 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002947/0.2809, allocations: 22.06 kB / 441.3 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001948/0.2811, allocations: 39.42 kB / 441.4 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001636/0.2812, allocations: 50.83 kB / 441.4 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002418/0.2815, allocations: 201.7 kB / 441.6 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000117/0.2816, allocations: 33.91 kB / 441.6 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001604/0.2818, allocations: 75.62 kB / 441.7 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001526/0.2819, allocations: 82.38 kB / 441.8 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.853e-05/0.282, allocations: 5.875 kB / 441.8 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.145e-05/0.282, allocations: 8.969 kB / 441.8 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.799e-05/0.2821, allocations: 30.84 kB / 441.8 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.729e-05/0.2821, allocations: 86.81 kB / 441.9 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001103/0.2823, allocations: 111.4 kB / 442 MB, free: 37.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2823, allocations: 0 / 442 MB, free: 37.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2823, allocations: 0 / 442 MB, free: 37.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.2823, allocations: 0 / 442 MB, free: 37.61 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.0008183/0.2831, allocations: 472 kB / 442.5 MB, free: 37.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.2831, allocations: 13.53 kB / 442.5 MB, free: 37.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.444e-05/0.2832, allocations: 21.12 kB / 442.5 MB, free: 37.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003393/0.2835, allocations: 257.1 kB / 442.8 MB, free: 36.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.555e-05/0.2836, allocations: 15.23 kB / 442.8 MB, free: 36.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.883e-05/0.2836, allocations: 11.09 kB / 442.8 MB, free: 36.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001994/0.2838, allocations: 115 kB / 442.9 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.2838, allocations: 3.938 kB / 442.9 MB, free: 36.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.2838, allocations: 3.938 kB / 442.9 MB, free: 36.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.2839, allocations: 2.562 kB / 442.9 MB, free: 36.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000177/0.284, allocations: 96.38 kB / 443 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006457/0.2847, allocations: 472.6 kB / 443.5 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002904/0.285, allocations: 160 kB / 443.6 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001015/0.2851, allocations: 58.91 kB / 443.7 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.17e-05/0.2851, allocations: 2.812 kB / 443.7 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.864e-05/0.2852, allocations: 38.56 kB / 443.7 MB, free: 36.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.293e-06/0.2852, allocations: 4 kB / 443.7 MB, free: 36.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008909/0.2861, allocations: 0.5421 MB / 444.3 MB, free: 35.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.153e-05/0.2861, allocations: 57.39 kB / 444.3 MB, free: 35.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002718/0.2864, allocations: 201.6 kB / 444.5 MB, free: 35.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.281e-05/0.2864, allocations: 25.7 kB / 444.6 MB, free: 35.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.288e-05/0.2864, allocations: 110.2 kB / 444.7 MB, free: 35.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.612e-05/0.2865, allocations: 59.5 kB / 444.7 MB, free: 35.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.875e-05/0.2865, allocations: 22.95 kB / 444.7 MB, free: 35.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.526e-05/0.2866, allocations: 328.9 kB / 445.1 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.898e-05/0.2867, allocations: 51.44 kB / 445.1 MB, free: 35.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.455e-05/0.2868, allocations: 61.41 kB / 445.2 MB, free: 35.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006669/0.2875, allocations: 275.3 kB / 445.4 MB, free: 35.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.2875, allocations: 0 / 445.4 MB, free: 35.08 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.000462/0.2879, allocations: 377.1 kB / 445.8 MB, free: 34.78 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.288, allocations: 13.81 kB / 445.8 MB, free: 34.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.288, allocations: 0 / 445.8 MB, free: 34.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001578/0.2881, allocations: 52.53 kB / 445.9 MB, free: 34.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000162/0.2883, allocations: 33.72 kB / 445.9 MB, free: 34.74 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001678/0.29, allocations: 4.245 MB / 450.2 MB, free: 30.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001646/0.2902, allocations: 19.77 kB / 450.2 MB, free: 30.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.024e-05/0.2902, allocations: 2.875 kB / 450.2 MB, free: 30.4 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.000107/0.2903, allocations: 141 kB / 450.3 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.541e-05/0.2904, allocations: 14.78 kB / 450.3 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.92e-05/0.2904, allocations: 27.12 kB / 450.4 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.2904, allocations: 6.781 kB / 450.4 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.2904, allocations: 7.938 kB / 450.4 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.2904, allocations: 0 / 450.4 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005439/0.291, allocations: 0.495 MB / 450.9 MB, free: 29.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.291, allocations: 4 kB / 450.9 MB, free: 29.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001369/0.2911, allocations: 27.03 kB / 450.9 MB, free: 29.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000122/0.2913, allocations: 37.31 kB / 450.9 MB, free: 29.81 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.737e-05/0.2913, allocations: 10.75 kB / 450.9 MB, free: 29.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007325/0.292, allocations: 1.453 MB / 452.4 MB, free: 28.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.292, allocations: 0 / 452.4 MB, free: 28.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003774/0.2924, allocations: 346.9 kB / 452.7 MB, free: 28.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.426e-05/0.2925, allocations: 91.84 kB / 452.8 MB, free: 28.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.251e-05/0.2925, allocations: 10.81 kB / 452.8 MB, free: 28.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.2927, allocations: 9.219 kB / 452.8 MB, free: 28.03 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.096e-05/0.2927, allocations: 16.77 kB / 452.9 MB, free: 28.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.336e-06/0.2927, allocations: 2.844 kB / 452.9 MB, free: 28.03 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002106/0.2929, allocations: 161 kB / 453 MB, free: 27.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.293, allocations: 0 / 453 MB, free: 27.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003827/0.2933, allocations: 33.91 kB / 453.1 MB, free: 27.93 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 8.242e-05/0.2934, allocations: 104.4 kB / 453.2 MB, free: 27.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004114/0.2939, allocations: 352.3 kB / 453.5 MB, free: 27.56 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.2939, allocations: 6.531 kB / 453.5 MB, free: 27.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002088/0.2941, allocations: 181 kB / 453.7 MB, free: 27.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002886/0.2944, allocations: 18.98 kB / 453.7 MB, free: 27.42 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007996/0.2952, allocations: 0.6582 MB / 454.4 MB, free: 26.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001484/0.2953, allocations: 0.7285 MB / 455.1 MB, free: 26.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.795e-05/0.2954, allocations: 13.34 kB / 455.1 MB, free: 26.24 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2954, allocations: 0 / 455.1 MB, free: 26.24 MB / 350.1 MB Notification: Performance of Templates: time 0.00383/0.2992, allocations: 2.748 MB / 457.9 MB, free: 26.07 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)