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.0009735/0.0009729, allocations: 100.1 kB / 15.71 MB, free: 448 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.001212/0.001212, allocations: 172.9 kB / 16.59 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.543/1.543, allocations: 223.3 MB / 240.6 MB, free: 5.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2825/0.2825, allocations: 22.36 MB / 314.1 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004056/0.0004058, allocations: 8 kB / 382.6 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4019/0.4024, allocations: 55.98 MB / 438.6 MB, free: 39.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_case_studies.foo): time 0.002221/0.4047, allocations: 1.529 MB / 440.1 MB, free: 38.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008222/0.4055, allocations: 488.5 kB / 440.6 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.701e-05/0.4056, allocations: 6.719 kB / 440.6 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003051/0.4059, allocations: 27.7 kB / 440.6 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001469/0.4061, allocations: 37.91 kB / 440.6 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001416/0.4062, allocations: 41.84 kB / 440.7 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002278/0.4065, allocations: 184.5 kB / 440.9 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001258/0.4066, allocations: 29.42 kB / 440.9 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001396/0.4068, allocations: 88.05 kB / 441 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001544/0.4069, allocations: 76.81 kB / 441.1 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.761e-05/0.407, allocations: 5.125 kB / 441.1 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.373e-05/0.407, allocations: 8.688 kB / 441.1 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.431e-05/0.4071, allocations: 31.75 kB / 441.1 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.982e-05/0.4071, allocations: 47.2 kB / 441.1 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001323/0.4072, allocations: 112.7 kB / 441.3 MB, free: 37.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.4073, allocations: 0 / 441.3 MB, free: 37.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4073, allocations: 0 / 441.3 MB, free: 37.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.4073, allocations: 0 / 441.3 MB, free: 37.48 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.0008683/0.4081, allocations: 478 kB / 441.7 MB, free: 37.08 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.4082, allocations: 10.69 kB / 441.7 MB, free: 37.08 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.391e-05/0.4083, allocations: 15.91 kB / 441.7 MB, free: 37.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003758/0.4086, allocations: 253.1 kB / 442 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.935e-05/0.4087, allocations: 6.125 kB / 442 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.221e-05/0.4087, allocations: 9.75 kB / 442 MB, free: 36.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002355/0.409, allocations: 118.5 kB / 442.1 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.409, allocations: 0 / 442.1 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.814e-05/0.409, allocations: 6.969 kB / 442.1 MB, free: 36.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.409, allocations: 6.844 kB / 442.1 MB, free: 36.76 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001864/0.4092, allocations: 88.55 kB / 442.2 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007459/0.41, allocations: 466.8 kB / 442.7 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003189/0.4103, allocations: 158.2 kB / 442.8 MB, free: 36.31 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/0.4104, allocations: 70.39 kB / 442.9 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.619e-05/0.4104, allocations: 0 / 442.9 MB, free: 36.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.769e-05/0.4105, allocations: 33.22 kB / 442.9 MB, free: 36.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.162e-06/0.4105, allocations: 0 / 442.9 MB, free: 36.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001022/0.4115, allocations: 0.541 MB / 443.5 MB, free: 35.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.579e-05/0.4116, allocations: 55.41 kB / 443.5 MB, free: 35.78 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002864/0.4119, allocations: 205.4 kB / 443.7 MB, free: 35.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.69e-05/0.4119, allocations: 29.7 kB / 443.8 MB, free: 35.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.75e-05/0.412, allocations: 109.8 kB / 443.9 MB, free: 35.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.902e-05/0.412, allocations: 64.69 kB / 443.9 MB, free: 35.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.525e-06/0.412, allocations: 3.594 kB / 443.9 MB, free: 35.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.279e-05/0.4121, allocations: 333.2 kB / 444.3 MB, free: 35.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.65e-05/0.4122, allocations: 41.97 kB / 444.3 MB, free: 35.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001003/0.4123, allocations: 69 kB / 444.4 MB, free: 35.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001117/0.4124, allocations: 62.56 kB / 444.4 MB, free: 35.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.62e-07/0.4124, allocations: 0 / 444.4 MB, free: 35.06 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.0005272/0.413, allocations: 385.7 kB / 444.8 MB, free: 34.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.413, allocations: 7.562 kB / 444.8 MB, free: 34.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.413, allocations: 3.422 kB / 444.8 MB, free: 34.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001896/0.4132, allocations: 48.25 kB / 444.9 MB, free: 34.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000179/0.4134, allocations: 34.55 kB / 444.9 MB, free: 34.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001923/0.4153, allocations: 4.232 MB / 449.1 MB, free: 30.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000151/0.4155, allocations: 19.06 kB / 449.1 MB, free: 30.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.27e-05/0.4155, allocations: 6.938 kB / 449.2 MB, free: 30.38 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 (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 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001288/0.4156, allocations: 134.2 kB / 449.3 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.582e-05/0.4157, allocations: 17.59 kB / 449.3 MB, free: 30.24 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.683e-05/0.4157, allocations: 20.56 kB / 449.3 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-06/0.4157, allocations: 6.656 kB / 449.3 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.4158, allocations: 0 / 449.3 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.4158, allocations: 0 / 449.3 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005737/0.4163, allocations: 0.5056 MB / 449.8 MB, free: 29.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.4164, allocations: 0 / 449.8 MB, free: 29.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001343/0.4165, allocations: 22.53 kB / 449.9 MB, free: 29.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001158/0.4166, allocations: 43.33 kB / 449.9 MB, free: 29.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.032e-05/0.4166, allocations: 14.34 kB / 449.9 MB, free: 29.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008432/0.4175, allocations: 1.452 MB / 451.4 MB, free: 28.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.4175, allocations: 3.938 kB / 451.4 MB, free: 28.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003923/0.4179, allocations: 329.7 kB / 451.7 MB, free: 28.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.889e-05/0.418, allocations: 90.97 kB / 451.8 MB, free: 28.04 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.385e-05/0.418, allocations: 6.969 kB / 451.8 MB, free: 28.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001617/0.4182, allocations: 27.84 kB / 451.8 MB, free: 28.03 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.403e-05/0.4182, allocations: 9.609 kB / 451.8 MB, free: 28.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.704e-06/0.4182, allocations: 3.188 kB / 451.8 MB, free: 28.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002054/0.4184, allocations: 157.4 kB / 452 MB, free: 27.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4184, allocations: 3.938 kB / 452 MB, free: 27.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003797/0.4188, allocations: 38.84 kB / 452 MB, free: 27.92 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 (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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001149/0.419, allocations: 95.78 kB / 452.1 MB, free: 27.83 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004731/0.4194, allocations: 351.1 kB / 452.5 MB, free: 27.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4194, allocations: 2.844 kB / 452.5 MB, free: 27.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002359/0.4197, allocations: 193.8 kB / 452.6 MB, free: 27.42 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003129/0.42, allocations: 18.03 kB / 452.7 MB, free: 27.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001009/0.421, allocations: 0.64 MB / 453.3 MB, free: 26.96 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002362/0.4213, allocations: 0.7235 MB / 454 MB, free: 26.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.916e-05/0.4213, allocations: 18.89 kB / 454 MB, free: 26.26 MB / 350.1 MB Notification: Performance of SimCode: time 4.7e-07/0.4214, allocations: 3.938 kB / 454.1 MB, free: 26.26 MB / 350.1 MB Notification: Performance of Templates: time 0.004745/0.4261, allocations: 2.736 MB / 456.8 MB, free: 26.08 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ElecSys_case_studies.foo.makefile make -j1 -f AES_AES.Coursework.ElecSys_case_studies.foo.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.fooCalcHelperMain.o OMCppAES_AES.Coursework.ElecSys_case_studies.fooCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppAES_AES.Coursework.ElecSys_case_studies.fooCalcHelperMain.o] Error 1