Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(PowerSystems.Examples.Wind.WindTurbine_PSGR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR") translateModel(PowerSystems.Examples.Wind.WindTurbine_PSGR,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009538/0.0009538, allocations: 92.84 kB / 17.31 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 173.8 kB / 18.21 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.794/1.794, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1924/0.1924, allocations: 38.05 MB / 310.7 MB, free: 5.922 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005396/0.0005396, allocations: 12 kB / 377.8 MB, free: 2.734 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3191, allocations: 56.34 MB / 434.1 MB, free: 18.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Wind.WindTurbine_PSGR): time 0.0115/0.3306, allocations: 12.42 MB / 446.6 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01234/0.343, allocations: 7.827 MB / 454.4 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002238/0.3453, allocations: 79.44 kB / 454.5 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02049/0.3658, allocations: 12.5 MB / 467 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003565/0.3694, allocations: 1.051 MB / 468 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002197/0.3717, allocations: 0.5811 MB / 468.6 MB, free: 124 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007635/0.3793, allocations: 5.557 MB / 474.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002962/0.3823, allocations: 1.316 MB / 475.5 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002484/0.3848, allocations: 0.875 MB / 476.3 MB, free: 8.305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00332/0.3882, allocations: 1.425 MB / 477.8 MB, free: 6.875 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008806/0.3891, allocations: 76 kB / 477.8 MB, free: 6.801 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001892/0.391, allocations: 455.2 kB / 478.3 MB, free: 6.355 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001402/0.3924, allocations: 0.8181 MB / 479.1 MB, free: 5.535 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001892/0.3943, allocations: 0.8876 MB / 480 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002959/0.3973, allocations: 1.866 MB / 481.9 MB, free: 2.766 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.401e-06/0.3973, allocations: 0 / 481.9 MB, free: 2.766 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.936e-06/0.3973, allocations: 0 / 481.9 MB, free: 2.766 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001055/0.3974, allocations: 4 kB / 481.9 MB, free: 2.762 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: 397 * Number of variables: 397 Notification: Performance of Generate backend data structure: time 0.005456/0.4029, allocations: 1.827 MB / 483.7 MB, free: 0.875 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/0.403, allocations: 8.031 kB / 483.7 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002202/0.4052, allocations: 334.3 kB / 484 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002847/0.408, allocations: 1.237 MB / 485.3 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001013/0.4082, allocations: 102.7 kB / 485.4 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006442/0.4088, allocations: 231.8 kB / 485.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003948/0.4128, allocations: 2.153 MB / 487.7 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.734e-05/0.4128, allocations: 11.84 kB / 487.8 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001535/0.413, allocations: 59.98 kB / 487.8 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006474/0.4137, allocations: 178.6 kB / 488 MB, free: 12.42 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003047/0.4167, allocations: 1.771 MB / 489.8 MB, free: 10.64 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01308/0.4298, allocations: 8.628 MB / 498.4 MB, free: 1.594 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002856/0.4327, allocations: 1.828 MB / 0.4885 GB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001376/0.4341, allocations: 0.7779 MB / 0.4893 GB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.488e-05/0.4342, allocations: 13 kB / 0.4893 GB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.602e-05/0.4342, allocations: 43.56 kB / 0.4893 GB, free: 14.8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 3.607e-06/0.4342, allocations: 0 / 0.4893 GB, free: 14.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01142/0.4457, allocations: 5.491 MB / 0.4947 GB, free: 9.148 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.195e-05/0.4458, allocations: 98.36 kB / 0.4948 GB, free: 9.035 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001379/0.4472, allocations: 1.045 MB / 0.4958 GB, free: 7.977 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.453e-05/0.4473, allocations: 57.62 kB / 0.4958 GB, free: 7.914 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000595/0.4479, allocations: 0.7599 MB / 0.4966 GB, free: 7.141 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004551/0.4483, allocations: 0.4968 MB / 0.4971 GB, free: 6.637 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002032/0.4485, allocations: 153.6 kB / 0.4972 GB, free: 6.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.4487, allocations: 305.1 kB / 0.4975 GB, free: 6.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001167/0.4498, allocations: 0.7222 MB / 0.4982 GB, free: 5.457 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001538/0.4514, allocations: 1.193 MB / 0.4994 GB, free: 4.066 MB / 382.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.01209/0.4635, allocations: 5.002 MB / 0.5043 GB, free: 14.86 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-05/0.4635, allocations: 4 kB / 0.5043 GB, free: 14.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.007766/0.4713, allocations: 3.611 MB / 0.5078 GB, free: 11.16 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.082e-05/0.4714, allocations: 12 kB / 0.5078 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.216e-05/0.4715, allocations: 12 kB / 0.5078 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00385/0.4753, allocations: 1.268 MB / 0.509 GB, free: 9.855 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001366/0.4767, allocations: 323.5 kB / 0.5094 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2826/0.7593, allocations: 14.67 MB / 0.5237 GB, free: 82.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001565/0.761, allocations: 79.42 kB / 0.5238 GB, free: 82.29 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001561/0.7611, allocations: 74.62 kB / 0.5238 GB, free: 82.29 MB / 398.1 MB Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization sytem: inverter2.switch_dq0[1] = 1.224744871391589 * cos(select2.alpha0) * select2.v0 5.051577893736758e-05 * $DER.generator.i_s[3] = 0.0 infBus.V = 15000.0 * infBus.v0 line.omega[1] = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 3 (system.initime,trafo.tap_2_internal,trafo.tap_1_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (155): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,23), (21,20)} Notification: Performance of prepare postOptimizeDAE: time 0.001044/0.7622, allocations: 0.5121 MB / 0.5243 GB, free: 82.14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002395/0.7624, allocations: 140.1 kB / 0.5245 GB, free: 82.14 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004092/0.7665, allocations: 2.163 MB / 0.5266 GB, free: 81.05 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.377e-05/0.7666, allocations: 12.38 kB / 0.5266 GB, free: 81.05 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.7666, allocations: 4.125 kB / 0.5266 GB, free: 81.05 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.027e-05/0.7666, allocations: 6.938 kB / 0.5266 GB, free: 81.05 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005948/0.7726, allocations: 3.854 MB / 0.5304 GB, free: 79.31 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.697e-06/0.7726, allocations: 9.531 kB / 0.5304 GB, free: 79.31 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001666/0.7743, allocations: 323.5 kB / 0.5307 GB, free: 79.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005481/0.7748, allocations: 211.2 kB / 0.5309 GB, free: 79.21 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001139/0.7749, allocations: 51.59 kB / 0.5309 GB, free: 79.19 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004611/0.7796, allocations: 7.311 MB / 0.5381 GB, free: 72.32 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/0.7796, allocations: 10.31 kB / 0.5381 GB, free: 72.31 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003873/0.7835, allocations: 2.845 MB / 0.5409 GB, free: 70.95 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000521/0.784, allocations: 330.8 kB / 0.5412 GB, free: 70.81 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001693/0.7842, allocations: 42.31 kB / 0.5412 GB, free: 70.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007252/0.7849, allocations: 64.17 kB / 0.5413 GB, free: 70.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002285/0.7851, allocations: 100.3 kB / 0.5414 GB, free: 70.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.381e-05/0.7852, allocations: 42.39 kB / 0.5414 GB, free: 70.75 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0007869/0.786, allocations: 0.69 MB / 0.5421 GB, free: 70.48 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.786, allocations: 0 / 0.5421 GB, free: 70.48 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001733/0.7878, allocations: 0.508 MB / 0.5426 GB, free: 70.42 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 25 (inertia.phi,inertia.w,generator.i_s[1],generator.i_s[2],generator.i_s[3],generator.i_rd[1],generator.i_rq[1],meterDC.pav,inverter2.vDC1,line.v[1,2],line.v[1,3],line.v[2,2],line.v[2,3],line.v[3,1],line.v[3,2],line.v[3,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[2,1],line.i[2,2],line.i[2,3],line.i[3,1],line.i[3,2],line.i[3,3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 120 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003627/0.7881, allocations: 173.7 kB / 0.5428 GB, free: 70.3 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003993/0.7921, allocations: 2.825 MB / 0.5455 GB, free: 68.93 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.7922, allocations: 7.5 kB / 0.5455 GB, free: 68.93 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001607/0.7938, allocations: 1.376 MB / 0.5469 GB, free: 67.49 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001722/0.7955, allocations: 303.5 kB / 0.5472 GB, free: 67.21 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007264/0.8028, allocations: 6.219 MB / 0.5532 GB, free: 60.99 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001002/0.8038, allocations: 1.552 MB / 0.5547 GB, free: 59.41 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005156/0.8043, allocations: 111.4 kB / 0.5548 GB, free: 59.3 MB / 398.1 MB Notification: Performance of SimCode: time 2.825e-06/0.8044, allocations: 3.938 kB / 0.5549 GB, free: 59.29 MB / 398.1 MB Notification: Performance of Templates: time 0.05588/0.8602, allocations: 51.43 MB / 0.6051 GB, free: 7.785 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.makefile make -j1 -f PowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGR.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -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/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppPowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGRCalcHelperMain.o OMCppPowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGRCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppPowerSystems_PowerSystems.Examples.Wind.WindTurbine_PSGRCalcHelperMain.o] Error 1