Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_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_two_generators_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop") translateModel(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009565/0.0009622, 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.001292/0.001292, allocations: 180.6 kB / 16.58 MB, free: 6.875 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.57/1.57, allocations: 223.2 MB / 240.6 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2599/0.2599, allocations: 22.35 MB / 314.1 MB, free: 13.14 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003676/0.0003676, allocations: 8 kB / 382.6 MB, free: 10.57 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3918/0.3922, allocations: 55.97 MB / 438.5 MB, free: 39.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop): time 0.002834/0.3951, allocations: 2.179 MB / 440.7 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001417/0.3966, allocations: 0.7678 MB / 441.5 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001776/0.3968, allocations: 3.062 kB / 441.5 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004577/0.3972, allocations: 72.41 kB / 441.6 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002718/0.3975, allocations: 113.1 kB / 441.7 MB, free: 37.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003178/0.3978, allocations: 167.8 kB / 441.8 MB, free: 36.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005082/0.3984, allocations: 485.4 kB / 442.3 MB, free: 36.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002281/0.3986, allocations: 105 kB / 442.4 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002557/0.3989, allocations: 206.6 kB / 442.6 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002945/0.3992, allocations: 218.4 kB / 442.8 MB, free: 36.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.908e-05/0.3992, allocations: 18.22 kB / 442.9 MB, free: 36.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.525e-05/0.3993, allocations: 14.69 kB / 442.9 MB, free: 36.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001144/0.3994, allocations: 89.02 kB / 443 MB, free: 36.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.847e-05/0.3995, allocations: 83.52 kB / 443 MB, free: 36.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002987/0.3998, allocations: 300.7 kB / 443.3 MB, free: 36.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.81e-06/0.3998, allocations: 3.938 kB / 443.3 MB, free: 36.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3998, allocations: 0 / 443.3 MB, free: 36.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.3998, allocations: 0 / 443.3 MB, free: 36.33 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001731/0.4016, allocations: 0.7896 MB / 444.1 MB, free: 35.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.4016, allocations: 9.125 kB / 444.1 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.768e-05/0.4017, allocations: 48.22 kB / 444.2 MB, free: 35.76 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006996/0.4024, allocations: 425 kB / 444.6 MB, free: 35.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.013e-05/0.4025, allocations: 27.47 kB / 444.6 MB, free: 35.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.441e-05/0.4025, allocations: 36.45 kB / 444.7 MB, free: 35.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004716/0.403, allocations: 315.8 kB / 445 MB, free: 35.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.14e-05/0.403, allocations: 0 / 445 MB, free: 35.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.522e-05/0.4031, allocations: 10.91 kB / 445 MB, free: 35.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.4031, allocations: 9.438 kB / 445 MB, free: 35.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000382/0.4035, allocations: 234.5 kB / 445.2 MB, free: 35.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001401/0.4049, allocations: 1.077 MB / 446.3 MB, free: 34.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007327/0.4056, allocations: 422.2 kB / 446.7 MB, free: 34.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002382/0.4059, allocations: 156.4 kB / 446.9 MB, free: 34.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.195e-05/0.4059, allocations: 10.33 kB / 446.9 MB, free: 34.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.391e-05/0.4059, allocations: 34.89 kB / 446.9 MB, free: 34.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.262e-06/0.406, allocations: 0 / 446.9 MB, free: 34.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.002621/0.4086, allocations: 1.208 MB / 448.1 MB, free: 33.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.956e-05/0.4086, allocations: 57.25 kB / 448.2 MB, free: 33.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006401/0.4093, allocations: 436.2 kB / 448.6 MB, free: 33.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.331e-05/0.4093, allocations: 32.33 kB / 448.6 MB, free: 33.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.4094, allocations: 207.8 kB / 448.8 MB, free: 33.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.772e-05/0.4095, allocations: 149.9 kB / 449 MB, free: 33.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.776e-05/0.4096, allocations: 10.75 kB / 449 MB, free: 33.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.841e-05/0.4097, allocations: 352.8 kB / 449.3 MB, free: 32.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001973/0.4099, allocations: 113.6 kB / 449.4 MB, free: 32.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002194/0.4101, allocations: 172.2 kB / 449.6 MB, free: 32.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002282/0.4103, allocations: 145.8 kB / 449.7 MB, free: 32.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.4103, allocations: 0 / 449.7 MB, free: 32.5 MB / 350.1 MB Warning: The linear system: 1 : Ge2.Pm = Ge2.Pcmd 2 : Ge2.Pm = Ge2.Pcmd [ 1.0 , -1.0 ; 1.0 , -1.0 ] * [ Ge2.Pm ; Ge2.Pcmd ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge2.Pcmd since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Warning: The linear system: 1 : Ge1.Pm = Ge1.Pcmd 2 : Ge1.Pm = Ge1.Pcmd [ -1.0 , 1.0 ; -1.0 , 1.0 ] * [ Ge1.Pcmd ; Ge1.Pm ] = [ 0.0 ; 0.0 ] might be structurally or numerically singular for variable Ge1.Pm since U(2,2) = 0.0. It might be hard to solve. Compilation continues anyway. Notification: Performance of matching and sorting (n=54) (initialization): time 0.001925/0.4123, allocations: 0.9641 MB / 450.7 MB, free: 31.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.4123, allocations: 9.906 kB / 450.7 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.4123, allocations: 0 / 450.7 MB, free: 31.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001383/0.4137, allocations: 281.8 kB / 451 MB, free: 31.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003192/0.414, allocations: 83.55 kB / 451.1 MB, free: 31.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005864/0.4199, allocations: 7.962 MB / 459 MB, free: 24.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004554/0.4204, allocations: 49.72 kB / 459.1 MB, free: 24.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.789e-05/0.4204, allocations: 14.66 kB / 459.1 MB, free: 24.24 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: Ge2.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: 5 * Number of states: 0 () * Number of discrete variables: 1 (Cs.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 39 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0002378/0.4207, allocations: 167 kB / 459.3 MB, free: 24.1 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.094e-05/0.4207, allocations: 40.34 kB / 459.3 MB, free: 24.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001271/0.422, allocations: 0.5571 MB / 459.9 MB, free: 23.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.422, allocations: 6 kB / 459.9 MB, free: 23.85 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/0.422, allocations: 6.578 kB / 459.9 MB, free: 23.85 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.4221, allocations: 0 / 459.9 MB, free: 23.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00167/0.4237, allocations: 1.042 MB / 460.9 MB, free: 23.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.94e-06/0.4238, allocations: 3.953 kB / 460.9 MB, free: 23.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002812/0.424, allocations: 70.94 kB / 461 MB, free: 23.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009803/0.425, allocations: 227.9 kB / 461.2 MB, free: 23.24 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.412e-05/0.4251, allocations: 14.25 kB / 461.2 MB, free: 23.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003322/0.4284, allocations: 2.201 MB / 463.4 MB, free: 21.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.4284, allocations: 0 / 463.4 MB, free: 21.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001679/0.4301, allocations: 0.7793 MB / 464.2 MB, free: 21.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000122/0.4302, allocations: 117.6 kB / 464.3 MB, free: 21.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.308e-05/0.4303, allocations: 11.16 kB / 464.3 MB, free: 21.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003624/0.4307, allocations: 37.86 kB / 464.4 MB, free: 21.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.27e-05/0.4308, allocations: 41.64 kB / 464.4 MB, free: 21.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.559e-05/0.4308, allocations: 11.28 kB / 464.4 MB, free: 21.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000625/0.4314, allocations: 332.2 kB / 464.7 MB, free: 20.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4315, allocations: 0 / 464.7 MB, free: 20.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006566/0.4321, allocations: 97.12 kB / 464.8 MB, free: 20.91 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (G1.x_scaled[1],G2.x_scaled[1],Cs.y,Ge1.deltag,Ge1.wg,Ge2.thetap,Ge2.deltag,Ge2.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 (32): * 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: 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 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001753/0.4323, allocations: 102.2 kB / 464.9 MB, free: 20.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001067/0.4334, allocations: 0.6772 MB / 465.6 MB, free: 20.36 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.4334, allocations: 0 / 465.6 MB, free: 20.36 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004883/0.4339, allocations: 320.2 kB / 465.9 MB, free: 20.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004951/0.4344, allocations: 52.91 kB / 466 MB, free: 20.14 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002007/0.4364, allocations: 1.296 MB / 467.3 MB, free: 19.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000374/0.4368, allocations: 0.841 MB / 468.1 MB, free: 18.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/0.4369, allocations: 28.59 kB / 468.1 MB, free: 18.58 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.4369, allocations: 0 / 468.1 MB, free: 18.58 MB / 350.1 MB Notification: Performance of Templates: time 0.01544/0.4524, allocations: 7.556 MB / 475.7 MB, free: 18 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroop.makefile make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_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_two_generators_loadDroopCalcHelperMain.o OMCppAES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroopCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppAES_AES.Coursework.ElecSys_power_frequency_control.PA_two_generators_loadDroopCalcHelperMain.o] Error 1