Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.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.Primary_secondary_tertiary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary") translateModel(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00105/0.001049, allocations: 102.7 kB / 15.71 MB, free: 460 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.001724/0.001724, allocations: 173.1 kB / 16.58 MB, free: 6.863 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.566/1.566, allocations: 223.2 MB / 240.6 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.3065/0.3065, allocations: 22.35 MB / 314.1 MB, free: 13.13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003371/0.0003371, allocations: 8 kB / 382.6 MB, free: 10.58 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3538/0.3542, allocations: 55.97 MB / 438.6 MB, free: 39.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary): time 0.002654/0.3569, allocations: 2.107 MB / 440.7 MB, free: 38.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.3582, allocations: 0.7355 MB / 441.4 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001629/0.3584, allocations: 2.812 kB / 441.4 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004453/0.3589, allocations: 79.42 kB / 441.5 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002889/0.3592, allocations: 115.1 kB / 441.6 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003009/0.3595, allocations: 156.4 kB / 441.7 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004732/0.36, allocations: 459.9 kB / 442.2 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002224/0.3602, allocations: 105.1 kB / 442.3 MB, free: 37.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000235/0.3604, allocations: 197.9 kB / 442.5 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002717/0.3607, allocations: 204.8 kB / 442.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.557e-05/0.3608, allocations: 14.97 kB / 442.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.521e-05/0.3608, allocations: 14.06 kB / 442.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001042/0.3609, allocations: 89.23 kB / 442.8 MB, free: 36.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.708e-05/0.361, allocations: 81.73 kB / 442.9 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003519/0.3614, allocations: 278.5 kB / 443.2 MB, free: 36.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.208e-06/0.3614, allocations: 0 / 443.2 MB, free: 36.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.3614, allocations: 0 / 443.2 MB, free: 36.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.896e-06/0.3614, allocations: 0 / 443.2 MB, free: 36.81 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001763/0.3632, allocations: 0.7846 MB / 443.9 MB, free: 36.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.3633, allocations: 7.688 kB / 443.9 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.427e-05/0.3634, allocations: 47.06 kB / 444 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006976/0.3641, allocations: 409 kB / 444.4 MB, free: 35.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.428e-05/0.3641, allocations: 21.22 kB / 444.4 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.826e-05/0.3642, allocations: 41.16 kB / 444.5 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004431/0.3646, allocations: 301.3 kB / 444.7 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.3646, allocations: 0 / 444.7 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.809e-05/0.3647, allocations: 14.66 kB / 444.8 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.799e-06/0.3647, allocations: 11 kB / 444.8 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003908/0.3651, allocations: 215.8 kB / 445 MB, free: 35.72 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001401/0.3665, allocations: 1.038 MB / 446 MB, free: 35.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007009/0.3672, allocations: 385.2 kB / 446.4 MB, free: 34.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002227/0.3674, allocations: 149.4 kB / 446.5 MB, free: 34.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.888e-05/0.3675, allocations: 5.906 kB / 446.5 MB, free: 34.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.631e-05/0.3675, allocations: 30.56 kB / 446.6 MB, free: 34.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.823e-06/0.3675, allocations: 4 kB / 446.6 MB, free: 34.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.00177/0.3693, allocations: 1.103 MB / 447.7 MB, free: 34.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.282e-05/0.3693, allocations: 56.97 kB / 447.7 MB, free: 34.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006494/0.37, allocations: 442.7 kB / 448.2 MB, free: 33.86 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.24e-05/0.37, allocations: 33.7 kB / 448.2 MB, free: 33.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.3701, allocations: 201.6 kB / 448.4 MB, free: 33.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.417e-05/0.3702, allocations: 148.8 kB / 448.5 MB, free: 33.54 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.533e-05/0.3703, allocations: 8 kB / 448.6 MB, free: 33.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.081e-05/0.3704, allocations: 349.6 kB / 448.9 MB, free: 33.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001783/0.3705, allocations: 113.5 kB / 449 MB, free: 33.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.3707, allocations: 172.6 kB / 449.2 MB, free: 33.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002099/0.371, allocations: 125.9 kB / 449.3 MB, free: 33.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.371, allocations: 4 kB / 449.3 MB, free: 33 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.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=52) (initialization): time 0.0009881/0.372, allocations: 0.7973 MB / 450.1 MB, free: 32.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.372, allocations: 2.625 kB / 450.1 MB, free: 32.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.372, allocations: 5.75 kB / 450.1 MB, free: 32.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002953/0.3723, allocations: 99.97 kB / 450.2 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003274/0.3726, allocations: 87.92 kB / 450.3 MB, free: 32.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003458/0.3761, allocations: 7.305 MB / 457.6 MB, free: 24.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004012/0.3765, allocations: 43.47 kB / 457.6 MB, free: 24.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.663e-05/0.3766, allocations: 22.73 kB / 457.7 MB, free: 24.94 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: 6 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002319/0.3768, allocations: 162.4 kB / 457.8 MB, free: 24.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.21e-05/0.3769, allocations: 40.83 kB / 457.9 MB, free: 24.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.553e-05/0.377, allocations: 52.11 kB / 457.9 MB, free: 24.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.377, allocations: 5.031 kB / 457.9 MB, free: 24.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.377, allocations: 3.281 kB / 457.9 MB, free: 24.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.377, allocations: 3.938 kB / 457.9 MB, free: 24.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001208/0.3782, allocations: 0.8797 MB / 458.8 MB, free: 24.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.3783, allocations: 0 / 458.8 MB, free: 24.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000285/0.3786, allocations: 58.03 kB / 458.9 MB, free: 24.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002263/0.3788, allocations: 81.66 kB / 458.9 MB, free: 24.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.019e-05/0.3788, allocations: 10.28 kB / 458.9 MB, free: 24.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001336/0.3802, allocations: 1.706 MB / 460.7 MB, free: 22.6 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3802, allocations: 3.344 kB / 460.7 MB, free: 22.6 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008822/0.3811, allocations: 0.6153 MB / 461.3 MB, free: 22.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.287e-05/0.3812, allocations: 114.2 kB / 461.4 MB, free: 22.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.538e-05/0.3812, allocations: 11.66 kB / 461.4 MB, free: 22.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003237/0.3815, allocations: 37.61 kB / 461.4 MB, free: 22.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.481e-05/0.3816, allocations: 35.84 kB / 461.5 MB, free: 22.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.612e-05/0.3816, allocations: 7.312 kB / 461.5 MB, free: 22.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005448/0.3822, allocations: 332 kB / 461.8 MB, free: 21.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3822, allocations: 3.938 kB / 461.8 MB, free: 21.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005559/0.3828, allocations: 82.12 kB / 461.9 MB, free: 21.97 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 (31): * Single equations (assignments): 30 * 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 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001633/0.3829, allocations: 102.5 kB / 462 MB, free: 21.88 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007983/0.3837, allocations: 0.6367 MB / 462.6 MB, free: 21.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.3838, allocations: 0 / 462.6 MB, free: 21.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003204/0.3841, allocations: 293.3 kB / 462.9 MB, free: 21.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004253/0.3845, allocations: 65.81 kB / 463 MB, free: 21.22 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001576/0.3861, allocations: 1.242 MB / 464.2 MB, free: 20.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003438/0.3865, allocations: 0.8312 MB / 465 MB, free: 19.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.3866, allocations: 31.62 kB / 465.1 MB, free: 19.69 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3866, allocations: 0 / 465.1 MB, free: 19.69 MB / 350.1 MB Notification: Performance of Templates: time 0.01295/0.3996, allocations: 7.216 MB / 472.3 MB, free: 19.16 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.makefile make -j1 -f AES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiary.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_case_studies.Primary_secondary_tertiaryCalcHelperMain.o OMCppAES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiaryCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppAES_AES.Coursework.ElecSys_case_studies.Primary_secondary_tertiaryCalcHelperMain.o] Error 1