Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.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_power_frequency_control.PA_islanded_generator_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop") translateModel(AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 99.67 kB / 15.71 MB, free: 452 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.001707/0.001707, allocations: 175.1 kB / 16.58 MB, free: 6.422 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.597/1.597, allocations: 223.2 MB / 240.6 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.3146/0.3146, allocations: 22.36 MB / 314.1 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004246/0.0004246, allocations: 16 kB / 382.6 MB, free: 10.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4103/0.4107, allocations: 55.97 MB / 438.6 MB, free: 39.22 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop): time 0.002237/0.413, allocations: 2.166 MB / 440.7 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001196/0.4142, allocations: 0.841 MB / 441.6 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001698/0.4144, allocations: 5.281 kB / 441.6 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003104/0.4147, allocations: 52.7 kB / 441.6 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001831/0.4149, allocations: 74.41 kB / 441.7 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003421/0.4153, allocations: 151.6 kB / 441.8 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003325/0.4156, allocations: 399.2 kB / 442.2 MB, free: 36.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001753/0.4158, allocations: 96.72 kB / 442.3 MB, free: 36.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001637/0.416, allocations: 148.5 kB / 442.5 MB, free: 36.63 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001991/0.4162, allocations: 157.1 kB / 442.6 MB, free: 36.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.828e-05/0.4162, allocations: 12 kB / 442.6 MB, free: 36.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.57e-05/0.4163, allocations: 12 kB / 442.6 MB, free: 36.56 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.148e-05/0.4163, allocations: 72.2 kB / 442.7 MB, free: 36.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.744e-05/0.4164, allocations: 80.8 kB / 442.8 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000199/0.4166, allocations: 299.6 kB / 443.1 MB, free: 36.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.4166, allocations: 0 / 443.1 MB, free: 36.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.4166, allocations: 0 / 443.1 MB, free: 36.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.4166, allocations: 0 / 443.1 MB, free: 36.38 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001078/0.4177, allocations: 0.673 MB / 443.8 MB, free: 35.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.4178, allocations: 7.281 kB / 443.8 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.389e-05/0.4179, allocations: 46.78 kB / 443.8 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005057/0.4184, allocations: 361 kB / 444.2 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/0.4184, allocations: 17.56 kB / 444.2 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.737e-05/0.4184, allocations: 29.5 kB / 444.2 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004645/0.4189, allocations: 312.1 kB / 444.5 MB, free: 35.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.4189, allocations: 3.938 kB / 444.5 MB, free: 35.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.988e-05/0.419, allocations: 14.7 kB / 444.5 MB, free: 35.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.419, allocations: 9.062 kB / 444.5 MB, free: 35.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004062/0.4194, allocations: 235.9 kB / 444.8 MB, free: 35.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001265/0.4207, allocations: 1.041 MB / 445.8 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004714/0.4212, allocations: 298.7 kB / 446.1 MB, free: 34.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002087/0.4214, allocations: 139.4 kB / 446.2 MB, free: 34.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.953e-05/0.4214, allocations: 3.031 kB / 446.2 MB, free: 34.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.157e-05/0.4214, allocations: 38.28 kB / 446.3 MB, free: 34.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.383e-06/0.4215, allocations: 0 / 446.3 MB, free: 34.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.003972/0.4254, allocations: 1.369 MB / 447.7 MB, free: 33.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.87e-05/0.4255, allocations: 80.14 kB / 447.7 MB, free: 33.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004305/0.4259, allocations: 359.4 kB / 448.1 MB, free: 33.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.401e-05/0.426, allocations: 29.7 kB / 448.1 MB, free: 33.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.4261, allocations: 194.2 kB / 448.3 MB, free: 33.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.257e-05/0.4262, allocations: 119.6 kB / 448.4 MB, free: 33.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.52e-05/0.4262, allocations: 6.688 kB / 448.4 MB, free: 33.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.407e-05/0.4263, allocations: 346.3 kB / 448.8 MB, free: 32.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001954/0.4265, allocations: 112.9 kB / 448.9 MB, free: 32.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002166/0.4267, allocations: 166 kB / 449 MB, free: 32.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000222/0.4269, allocations: 129.6 kB / 449.2 MB, free: 32.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.4269, allocations: 0 / 449.2 MB, free: 32.66 MB / 350.1 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ G.Pcmd ; G.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=39) (initialization): time 0.001746/0.4287, allocations: 0.7213 MB / 449.9 MB, free: 32.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.537e-05/0.4287, allocations: 119.2 kB / 450 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.4287, allocations: 0 / 450 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001328/0.4301, allocations: 225.9 kB / 450.2 MB, free: 32.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003371/0.4304, allocations: 69.59 kB / 450.3 MB, free: 32.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004607/0.435, allocations: 4.875 MB / 455.2 MB, free: 27.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002557/0.4353, allocations: 27.19 kB / 455.2 MB, free: 27.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.162e-05/0.4353, allocations: 12.66 kB / 455.2 MB, free: 27.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.524e-06/0.4354, allocations: 4.625 kB / 455.2 MB, free: 27.59 MB / 350.1 MB Warning: The linear system: 1 : G.Pm = G.Pcmd 2 : G.Pm = G.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ G.Pcmd ; G.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable G.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001531/0.4369, allocations: 0.629 MB / 455.8 MB, free: 27.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.4369, allocations: 3 kB / 455.8 MB, free: 27.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001251/0.4382, allocations: 227.5 kB / 456.1 MB, free: 27.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002816/0.4385, allocations: 65.55 kB / 456.1 MB, free: 27.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004473/0.4429, allocations: 4.874 MB / 461 MB, free: 22.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002469/0.4432, allocations: 23.83 kB / 461 MB, free: 22.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.946e-05/0.4432, allocations: 12.09 kB / 461 MB, free: 22.7 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: G.deltag:VARIABLE(unit = "rad" fixed = true ) "generator angle wrt port" type: Real g.x_scaled[2]: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: 4 * Number of states: 0 () * Number of discrete variables: 1 (Cps.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002332/0.4435, allocations: 240 kB / 461.3 MB, free: 22.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.949e-05/0.4435, allocations: 35.41 kB / 461.3 MB, free: 22.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00126/0.4448, allocations: 0.4995 MB / 461.8 MB, free: 22.26 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.4448, allocations: 3.188 kB / 461.8 MB, free: 22.26 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.4448, allocations: 128 / 461.8 MB, free: 22.26 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.4448, allocations: 6.312 kB / 461.8 MB, free: 22.26 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001623/0.4465, allocations: 0.9576 MB / 462.8 MB, free: 21.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.4465, allocations: 0 / 462.8 MB, free: 21.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002425/0.4467, allocations: 54.72 kB / 462.8 MB, free: 21.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008621/0.4476, allocations: 185.4 kB / 463 MB, free: 21.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.784e-05/0.4476, allocations: 7.156 kB / 463 MB, free: 21.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002997/0.4506, allocations: 1.945 MB / 465 MB, free: 20.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.4507, allocations: 0 / 465 MB, free: 20.15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001515/0.4522, allocations: 0.7012 MB / 465.7 MB, free: 19.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001125/0.4523, allocations: 133.8 kB / 465.8 MB, free: 19.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.446e-05/0.4524, allocations: 10.72 kB / 465.8 MB, free: 19.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002624/0.4526, allocations: 33.56 kB / 465.8 MB, free: 19.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.711e-05/0.4527, allocations: 21.92 kB / 465.8 MB, free: 19.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.945e-05/0.4527, allocations: 10.34 kB / 465.9 MB, free: 19.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003491/0.4531, allocations: 261.7 kB / 466.1 MB, free: 19.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4531, allocations: 0 / 466.1 MB, free: 19.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007356/0.4538, allocations: 118.3 kB / 466.2 MB, free: 19.53 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (g.x_scaled[1],g.x_scaled[2],Cps.I.y,G.thetap,G.deltag,G.wg) * 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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001205/0.454, allocations: 105.9 kB / 466.3 MB, free: 19.44 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001189/0.4551, allocations: 0.9027 MB / 467.2 MB, free: 18.82 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.4552, allocations: 0 / 467.2 MB, free: 18.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00036/0.4555, allocations: 276.9 kB / 467.5 MB, free: 18.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004737/0.456, allocations: 72.55 kB / 467.6 MB, free: 18.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001569/0.4576, allocations: 1.071 MB / 468.6 MB, free: 17.94 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002994/0.4579, allocations: 0.8146 MB / 469.5 MB, free: 17.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.458, allocations: 25.84 kB / 469.5 MB, free: 17.21 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.458, allocations: 0 / 469.5 MB, free: 17.21 MB / 350.1 MB Notification: Performance of Templates: time 0.01212/0.4702, allocations: 6.494 MB / 476 MB, free: 16.74 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.makefile make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroop.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppAES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroopCalcHelperMain.o OMCppAES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroopCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppAES_AES.Coursework.ElecSys_power_frequency_control.PA_islanded_generator_loadDroopCalcHelperMain.o] Error 1